lkml.org 
[lkml]   [2014]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC 0/5] perf: Allow leader sampling on inherited events
On Sat, Aug 23, 2014 at 02:55:32PM -0400, Jen-Cheng(Tommy) Huang wrote:
> Hi Jiri,
>
> 1. Thank you so much for providing the patch.
> I am trying to test out the patch.
> (I got the source using "git checkout -b perf
> remotes/origin/perf/core_format_group"
> after clone)
> However, the perf in your repo seems having issues with sample_read :S.
> (:S works fine with my original perf that comes with the kernel.)
> When I do
> perf record -e '{instructions,cycles}:S' /bin/ls
>
> The following error is shown
> Error:
> The sys_perf_event_open() syscall returned with 22 (Invalid argument) for
> event (instructions).
> /bin/dmesg may provide additional information.
> No CONFIG_PERF_EVENTS=y kernel support configured?
>
> This error does not occur without :S.
> perf record -e '{instructions,cycles}' /bin/ls
> This shows no errors.

have u boot the new kernel? there're 2 kernel patches
within the patchset

but right, the perf code should detect the kernel change
and keep old behaviour if it's not detected..

>
> 2. Another issue I have is to show the sample value using 'perf script'.
> Currently, I am using perf report -D to show the sample read values, the
> format is not what I need. Could you give me some hints on where to modify
> to show the sample values using perf script?

there's no support in perf script to display the sample
read values.. I'll check if that could be added

thanks,
jirka


\
 
 \ /
  Last update: 2014-08-23 22:21    [W:0.046 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site