mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: Binoy Jayan <binoy.jayan@linaro.org>
Cc: Daniel Wagner <daniel.wagner@bmw-carit.de>,
	Ingo Molnar <mingo@redhat.com>, Arnd Bergmann <arnd@arndb.de>,
	linaro-kernel@lists.linaro.org, Carsten Emde <C.Emde@osadl.org>,
	Linux kernel mailing list <linux-kernel@vger.kernel.org>,
	Masami <masami.hiramatsu@linaro.org>
Subject: Re: [PATCH v3 2/3] tracing: Add trace_irqsoff tracepoints
Date: Tue, 30 Aug 2016 09:52:38 -0400	[thread overview]
Message-ID: <20160830095238.57d4e781@gandalf.local.home> (raw)
In-Reply-To: <CAHv-k_9zS5yEF2cxf3gVEEX7C9qjdWUbZBebC=UFmPM6OUo8dA@mail.gmail.com>

On Tue, 30 Aug 2016 15:11:26 +0530
Binoy Jayan <binoy.jayan@linaro.org> wrote:

> On 29 August 2016 at 15:13, Daniel Wagner <daniel.wagner@bmw-carit.de> 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'

What about using "CPU" (all caps)? Look at
kernel/trace/trace_events_filter.c for FILTER_CPU.

Lets not add fields when we can fix the generic code to process these.

Thanks!

-- Steve

  reply	other threads:[~2016-08-30 13:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-29  6:55 [PATCH v3 0/3] *** Latency histograms - IRQSOFF,PREEMPTOFF *** Binoy Jayan
2016-08-29  6:55 ` [PATCH v3 1/3] tracing: Deference pointers without RCU checks Binoy Jayan
2016-08-29  6:55 ` [PATCH v3 2/3] tracing: Add trace_irqsoff tracepoints Binoy Jayan
2016-08-29  9:43   ` Daniel Wagner
2016-08-30  9:41     ` Binoy Jayan
2016-08-30 13:52       ` Steven Rostedt [this message]
2016-08-30 14:01         ` Daniel Wagner
2016-08-30 14:20           ` Daniel Wagner
2016-08-30 15:02             ` Daniel Wagner
2016-08-30 21:06               ` Steven Rostedt
2016-08-31  6:05               ` Binoy Jayan
2016-08-29  6:55 ` [PATCH v3 3/3] tracing: Histogram for missed timer offsets Binoy Jayan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160830095238.57d4e781@gandalf.local.home \
    --to=rostedt@goodmis.org \
    --cc=C.Emde@osadl.org \
    --cc=arnd@arndb.de \
    --cc=binoy.jayan@linaro.org \
    --cc=daniel.wagner@bmw-carit.de \
    --cc=linaro-kernel@lists.linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=masami.hiramatsu@linaro.org \
    --cc=mingo@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®