2 # Copyright (C) 2006-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
10 PKG_NAME:=kmemtrace-user
13 PKG_REV:=92878e602489d6a6ffd6e50b94f425c3149c86bd
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=git://repo.or.cz/kmemtrace-user.git
17 PKG_SOURCE_SUBDIR:=kmemtrace-user-$(PKG_VERSION)
18 PKG_SOURCE_VERSION:=$(PKG_REV)
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
23 include $(INCLUDE_DIR)/package.mk
25 define Package/kmemtrace-user
28 TITLE:=trace slab allocator functions
29 URL:=http://repo.or.cz/w/kmemtrace-user.git
35 define Package/kmemtrace-user/description
36 kmemtrace provides tracing for slab allocator functions, such as
37 kmalloc, kfree, kmem_cache_alloc, kmem_cache_free etc.. Collected
38 data is then fed to the userspace application in order to analyse
39 allocation hotspots, internal fragmentation and so on, making it
40 possible to see how well an allocator performs, as well as debug
41 and profile kernel code.
44 define Build/Configure
45 (cd $(PKG_BUILD_DIR); ./autogen.sh; ./configure );
46 $(call Build/Configure/Default)
50 define Package/kmemtrace-user/install
51 $(INSTALL_DIR) $(1)/usr/sbin
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/kmemtrace-check $(1)/usr/sbin/
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/kmemtrace-report $(1)/usr/sbin/
54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/kmemtrace-show $(1)/usr/sbin/
55 $(INSTALL_BIN) $(PKG_BUILD_DIR)/kmemtraced $(1)/usr/sbin/
58 $(eval $(call BuildPackage,kmemtrace-user))