juhosg 8886dca03c packages: add sysprof tool
Add sysprof - preformance profiler
for Linux - to the development tools.

Patches for mips/arm are from openembedded
code.

sysprof-cli <outfile> get required events/stack frames.
Next outfile can be loaded/displayed on PC using
sysprof.

Tool using:
- PERF events
- /proc/kallsyms for kernel symbols

You should compile kernel with profiling enabled,
debug information, symbol table information.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@38466 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-10-20 15:58:09 +00:00

45 lines
941 B
Makefile

#
# Copyright (C) 2009-2013 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=sysprof
PKG_VERSION:=1.2.0
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://sysprof.com
PKG_MD5SUM:=a81808d847732f8dafb59d26ec2eebbf
PKG_BUILD_DEPENDS:= glib2
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/kernel.mk
define Package/sysprof
SECTION:=devel
CATEGORY:=Development
TITLE:=Sysprof System Profiler
URL:=http://sysprof.com
DEPENDS:=+glib2
endef
define Package/sysprof/description
Sysprof is a statistical, system-wide profiler for Linux
endef
define Package/sysprof/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sysprof-cli $(1)/usr/bin/
endef
$(eval $(call BuildPackage,sysprof))