All of lore.kernel.org
 help / color / mirror / Atom feed
* How to Set up Perf tool
@ 2013-11-01 16:40 Amit Tomer
  2013-11-01 18:52 ` Bruce Ashfield
  0 siblings, 1 reply; 3+ messages in thread
From: Amit Tomer @ 2013-11-01 16:40 UTC (permalink / raw)
  To: yocto@yoctoproject.org

We have a requirement here to set up the perf tool through our Yocto
frame work.

As Perf source comes with linux kernel under tools/perf ,so it should be
compiled with kernel recipe itself.

But after bitbake of our kernel recipe,we couldn't find any binary
related to perf.
we made sure that below variable should be set in kernel config file

CONFIG_HAVE_PERF_EVENTS=y
CONFIG_PERF_EVENTS=y

Do we need to make any change to our kernel recipe file as well??

Can anyone let us know how we should set Perf tool.

Thanks


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to Set up Perf tool
  2013-11-01 16:40 How to Set up Perf tool Amit Tomer
@ 2013-11-01 18:52 ` Bruce Ashfield
  2013-11-01 20:19   ` Amit Tomer
  0 siblings, 1 reply; 3+ messages in thread
From: Bruce Ashfield @ 2013-11-01 18:52 UTC (permalink / raw)
  To: Amit Tomer, yocto@yoctoproject.org

On 13-11-01 12:40 PM, Amit Tomer wrote:
> We have a requirement here to set up the perf tool through our Yocto
> frame work.
>
> As Perf source comes with linux kernel under tools/perf ,so it should be
> compiled with kernel recipe itself.
>
> But after bitbake of our kernel recipe,we couldn't find any binary
> related to perf.
> we made sure that below variable should be set in kernel config file
>
> CONFIG_HAVE_PERF_EVENTS=y
> CONFIG_PERF_EVENTS=y
>
> Do we need to make any change to our kernel recipe file as well??
>
> Can anyone let us know how we should set Perf tool.

It depends on the version of the the project and the kernel you are
using, but there's a separate perf recipe, and has been for quite a
while.

That perf builds out of the staged kernel source, which is put
in place as part of the kernel build.

Try an old fashioned: bitbake perf

And see what you get. If you want it to be built and installed into
your rootfs, you'll need to arrange to get it into your image's
installed package list.

Bruce


>
> Thanks
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to Set up Perf tool
  2013-11-01 18:52 ` Bruce Ashfield
@ 2013-11-01 20:19   ` Amit Tomer
  0 siblings, 0 replies; 3+ messages in thread
From: Amit Tomer @ 2013-11-01 20:19 UTC (permalink / raw)
  To: Bruce Ashfield; +Cc: yocto@yoctoproject.org

Thanks Brauce

We worked it out and Perf recipe as you said perf.bb is there in
poky/meta/recipe-kernel.
Also,we installed it our rootfs and it working good.

Thanks
Amit


On Sat, Nov 2, 2013 at 12:22 AM, Bruce Ashfield
<bruce.ashfield@windriver.com> wrote:
> On 13-11-01 12:40 PM, Amit Tomer wrote:
>>
>> We have a requirement here to set up the perf tool through our Yocto
>> frame work.
>>
>> As Perf source comes with linux kernel under tools/perf ,so it should be
>> compiled with kernel recipe itself.
>>
>> But after bitbake of our kernel recipe,we couldn't find any binary
>> related to perf.
>> we made sure that below variable should be set in kernel config file
>>
>> CONFIG_HAVE_PERF_EVENTS=y
>> CONFIG_PERF_EVENTS=y
>>
>> Do we need to make any change to our kernel recipe file as well??
>>
>> Can anyone let us know how we should set Perf tool.
>
>
> It depends on the version of the the project and the kernel you are
> using, but there's a separate perf recipe, and has been for quite a
> while.
>
> That perf builds out of the staged kernel source, which is put
> in place as part of the kernel build.
>
> Try an old fashioned: bitbake perf
>
> And see what you get. If you want it to be built and installed into
> your rootfs, you'll need to arrange to get it into your image's
> installed package list.
>
> Bruce
>
>
>>
>> Thanks
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-11-01 20:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-01 16:40 How to Set up Perf tool Amit Tomer
2013-11-01 18:52 ` Bruce Ashfield
2013-11-01 20:19   ` Amit Tomer

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.