Re: [PATCH v3 2/3] tracing: Add trace_irqsoff tracepoints

From: Binoy Jayan
Date: Tue Aug 30 2016 - 05:41:35 EST


On 29 August 2016 at 15:13, Daniel Wagner <daniel.wagner@xxxxxxxxxxxx> wrote:
> Hi Binoy,
>
> Some minor nitpicking.
>
> As Steven already pointed out, the cpu field is available in all traces.
> It's one of the predefined fields (see
> kernel/trace/trace_events.c/trace_define_generic_fields()). Just drop it.
>

Hi Daniel,

Thank you for looking at the patch again. When I do not use cpu as a field,
I am not able to make it part of the key or value fields. I can only
use cpu in the
filter predicate.

For example, the following trigger does not seem to work:
'hist:key=ltype,cpu:val=latency:sort=ltype,cpu if ltype==0'

But the following works:
'hist:key=ltype,latency:val=hitcount:sort=latency if cpu==1'

-Binoy