All of lore.kernel.org
 help / color / mirror / Atom feed
From: tom.zanussi@linux.intel.com
To: openembedded-core@lists.openembedded.org
Cc: Tom Zanussi <tom.zanussi@linux.intel.com>
Subject: [PATCH 2/3] perf: add perf-trace feature
Date: Wed, 27 Feb 2013 09:00:50 -0600	[thread overview]
Message-ID: <60e36bd6e9918321d80fbffe4a4ca7f0ff49c389.1361976853.git.tom.zanussi@linux.intel.com> (raw)
In-Reply-To: <4a4c5cf843e4c4ff22843b8e6097786e88a06bd1.1361976853.git.tom.zanussi@linux.intel.com>
In-Reply-To: <cover.1361976853.git.tom.zanussi@linux.intel.com>

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(-)

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




  parent reply	other threads:[~2013-02-27 15:18 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-27 15:00 [PATCH 0/3] add libaudit and enable 'perf trace' tom.zanussi
2013-02-27 15:00 ` [PATCH 1/3] libaudit: new package tom.zanussi
2013-02-28  4:32   ` Saul Wold
2013-02-28  4:45     ` Tom Zanussi
2013-02-28 18:57       ` Saul Wold
2013-02-28 19:44         ` Tom Zanussi
2013-02-28 21:01           ` Richard Purdie
2013-02-28 21:14             ` Tom Zanussi
2013-03-01 23:00               ` Burton, Ross
2013-03-01 22:45             ` Colin Walters
2013-02-27 15:00 ` tom.zanussi [this message]
2013-02-27 15:00 ` [PATCH 3/3] perf: enable perf-trace feature tom.zanussi
2013-02-27 18:00 ` [PATCH 0/3] add libaudit and enable 'perf trace' Trevor Woerner
     [not found]   ` <1361988753.1704.4.camel@empanada>
2013-02-27 18:22     ` Trevor Woerner
2013-02-27 19:53   ` Tom Zanussi
2013-02-27 18:10 ` Trevor Woerner
2013-02-27 19:54   ` Tom Zanussi
2015-08-15 23:33 ` Christian Ascheberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=60e36bd6e9918321d80fbffe4a4ca7f0ff49c389.1361976853.git.tom.zanussi@linux.intel.com \
    --to=tom.zanussi@linux.intel.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.