lkml.org 
[lkml]   [2013]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 12/15] perf tools: allow non-matching sample types
On 25/06/13 18:56, David Ahern wrote:
> On 6/24/13 7:16 AM, Adrian Hunter wrote:
>> Sample types need not be identical to determine
>> the sample id from the event. Only the position
>> of the sample id needs to be the same.
>>
>> Compatible sample types are ones in which the bits
>> defined by PERF_COMPAT_MASK are the same.
>> 'perf_evlist__config()' forces sample types to be
>> compatible on that basis.
>
> Something is still missing to support different sample_types for events.
> Consider the case (S/W event + tracepoint):
> perf record -e cs -c1 -e sched:sched_switch -a -- sleep 1
> perf script
>
> This patch addresses the sample_type mismatch error message, but I get no
> event samples in the output. Besides the usual header I get:
>
> No trace sample to read. Did you call 'perf record -R'?

Fixed in V2

>
> It's a 16-cpu box with 5 VMs running. I know there should be at least a few
> samples in 1 second.
>
> Stephane: are you looking at allowing sample_types per event?
>
> David
>
>



\
 
 \ /
  Last update: 2013-06-27 12:21    [W:0.175 / U:1.608 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site