[Buildroot] [PATCH] perf: new package

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Fri Jan 4 08:22:43 UTC 2013


Dear Kaiwan Billimoria,

On Fri, 4 Jan 2013 11:35:56 +0530, Kaiwan Billimoria wrote:

> Just checking / asking:
> 1. what about the kernel patch to be applied such that kernel build
> for perf is successful (i sent in the patch yesterday)

It apparently wasn't needed to build perf on a 3.7 kernel.

> 2. In my patch (linux.mk), I make a validity check to confirm that the
> kernel version is >= 2.6.31 (as perf is only supported from that ver
> onward). Should we keep that check?

For now, I did not introduce it, due to the fact that the kernel
versions for which perf is usable are not clear yet. According to you,
it's 2.6.31, according to me it's 3.7. Once we figure that out, we can
introduce a version check if needed.

> 3. You mention :
> > the NO_LIBELF variable, which allows to get rid of the libelf dependency,
> > has only been introduced between 3.6 and 3.7.
> I did test my patches on the 3.2.21 vanilla kernel and it seems to work okay..

Here is the tools/perf/Makefile from 3.2.21 :
https://git.kernel.org/?p=linux/kernel/git/bwh/linux-3.2.y.git;a=blob;f=tools/perf/Makefile;h=b98e3075646b43f8f3218f45289f65068ea7ef31;hb=8499e79e9ee4c946ae38fd12e5d3afe8b68f2dfd

As you can see, it does not understand the NO_LIBELF variable, but
requires the libelf library to be present. So I'm not sure how you
manage to build perf without libelf with 3.2.21.

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com



More information about the buildroot mailing list