Bug 1553 - Tracing: perf trace scripting support
Summary: Tracing: perf trace scripting support
Status: VERIFIED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Low enhancement
Target Milestone: 1.3 M3
Assignee: Tom Zanussi
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2011-10-03 06:29 UTC by Richard Purdie
Modified: 2012-10-17 09:36 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Purdie 2011-10-03 06:29:33 UTC
Basically this means allowing perf to be built with the Perl and Python bindings, which turned out to be a headache last time.
Comment 1 Tom Zanussi 2011-10-06 11:39:51 UTC
The problem I had previously was enabling the Perl and Python bindings.

The perf Makefile expects the output of the target's python-config –cflags and –ldflags invocation e.g.:

python-config --cflags –ldflags:
-I/usr/include/python2.6 -I/usr/include/python2.6 -fno-strict-aliasing -DNDEBUG

python-config –ldflags:
-L/usr/lib/python2.6/config -lpthread -ldl -lutil -lm -lpython2.6

Similarly for Perl e.g. we need the output of perl -MExtUtils::Embed -e ccopts run on the target.

Obviously we can't run it on the target during build-time, so I need to figure how to get the same thing at build time.
Comment 2 Richard Purdie 2011-10-06 16:07:59 UTC
python-config should be manipulated by our binconfig.bbclass to provide the right values. The perl situation is more tricky...
Comment 3 Darren Hart 2012-01-18 11:50:53 UTC
Moving to post 1.2, but will try and bring it in if possible.
Comment 4 Tom Zanussi 2012-07-16 17:12:01 UTC
Implemented and pulled into poky/master and the linux-yocto 3.0/3.2/3.4 kernels.

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=2dac207e392cd9d94a0812d9bba350e1d8c322eb
Comment 5 Alexandru Palalau 2012-10-17 09:36:08 UTC
Verified on master branch, commit ID 83448c4b318ce60a54aae24a9a247456fa94caaf