[OE-core] [PATCH 2/3] perf: add perf-trace feature

tom.zanussi at linux.intel.com tom.zanussi at linux.intel.com
Wed Feb 27 15:00:50 UTC 2013


From: Tom Zanussi <tom.zanussi at 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 at linux.intel.com>
---
 meta/recipes-kernel/perf/perf_3.4.bb | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

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
-- 
1.7.11.4





More information about the Openembedded-core mailing list