[2/3] perf: add perf-trace feature

Submitted by tom.zanussi@linux.intel.com on Feb. 27, 2013, 3 p.m.

Details

Message ID 60e36bd6e9918321d80fbffe4a4ca7f0ff49c389.1361976853.git.tom.zanussi@linux.intel.com
State New
Headers show

Commit Message

tom.zanussi@linux.intel.com Feb. 27, 2013, 3 p.m.
From: Tom Zanussi <tom.zanussi@linux.intel.com>

Add a new feature named 'perf-trace'.  Adding this into the
PERF_FEATURES variable in perf.inc will enable 'perf trace' support on
the target.  'perf trace' is meant to be perf's 'strace on steroids'
utility, and it also adds libaudit to the image, if perf is included
in an image.

If 'perf-trace' isn't named as a feature (the default), 'perf trace'
support will be disabled and unavailable.

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
---
 meta/recipes-kernel/perf/perf_3.4.bb | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/meta/recipes-kernel/perf/perf_3.4.bb b/meta/recipes-kernel/perf/perf_3.4.bb
index e89a7c3..dad7c86 100644
--- a/meta/recipes-kernel/perf/perf_3.4.bb
+++ b/meta/recipes-kernel/perf/perf_3.4.bb
@@ -9,7 +9,7 @@  as well."
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
 
-PR = "r8"
+PR = "r9"
 
 require perf.inc
 
@@ -17,6 +17,7 @@  BUILDPERF_libc-uclibc = "no"
 
 TUI_DEPENDS = "${@perf_feature_enabled('perf-tui', 'libnewt', '',d)}"
 SCRIPTING_DEPENDS = "${@perf_feature_enabled('perf-scripting', 'perl python', '',d)}"
+TRACE_DEPENDS = "${@perf_feature_enabled('perf-trace', 'libaudit', '',d)}"
 
 DEPENDS = "virtual/kernel \
            virtual/${MLPREFIX}libc \
@@ -24,6 +25,7 @@  DEPENDS = "virtual/kernel \
            ${MLPREFIX}binutils \
            ${TUI_DEPENDS} \
            ${SCRIPTING_DEPENDS} \
+           ${TRACE_DEPENDS} \
            bison flex \
           "
 
@@ -54,6 +56,7 @@  B = "${WORKDIR}/${BPN}-${PV}"
 
 SCRIPTING_DEFINES = "${@perf_feature_enabled('perf-scripting', '', 'NO_LIBPERL=1 NO_LIBPYTHON=1',d)}"
 TUI_DEFINES = "${@perf_feature_enabled('perf-tui', '', 'NO_NEWT=1',d)}"
+TRACE_DEFINES = "${@perf_feature_enabled('perf-trace', '', 'NO_LIBAUDIT=1',d)}"
 
 export LDFLAGS = "-ldl -lutil"
 EXTRA_OEMAKE = \
@@ -64,7 +67,7 @@  EXTRA_OEMAKE = \
 		CC="${CC}" \
 		AR="${AR}" \
 		perfexecdir=${libexecdir} \
-		NO_GTK2=1 ${TUI_DEFINES} NO_DWARF=1 ${SCRIPTING_DEFINES} \
+		NO_GTK2=1 ${TUI_DEFINES} NO_DWARF=1 ${SCRIPTING_DEFINES} ${TRACE_DEFINES} \
 		'
 
 # We already pass the correct arguments to our compiler for the CFLAGS (if we