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
34 define Package
/kmemtrace-user
/description
35 kmemtrace provides tracing for slab allocator functions
, such
as
36 kmalloc
, kfree
, kmem_cache_alloc
, kmem_cache_free etc.. Collected
37 data is then fed to the userspace application in order to analyse
38 allocation hotspots
, internal fragmentation and so on
, making it
39 possible to see how well an allocator performs
, as well
as debug
40 and profile kernel code.
43 define Build
/Configure
44 (cd
$(PKG_BUILD_DIR
); .
/autogen.sh
; .
/configure
);
45 $(call Build
/Configure
/Default
)
49 define Package
/kmemtrace-user
/install
50 $(INSTALL_DIR
) $(1)/usr
/sbin
51 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/kmemtrace-check
$(1)/usr
/sbin
/
52 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/kmemtrace-report
$(1)/usr
/sbin
/
53 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/kmemtrace-show
$(1)/usr
/sbin
/
54 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/kmemtraced
$(1)/usr
/sbin
/
57 $(eval
$(call BuildPackage
,kmemtrace-user
))