linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@kernel.org>
To: Pawel Moll <pawel.moll@arm.com>
Cc: David Ahern <dsahern@gmail.com>,
	Arnaldo Carvalho de Melo <acme@ghostprotocols.net>,
	Richard Cochran <richardcochran@gmail.com>,
	Steven Rostedt <rostedt@goodmis.org>,
	Ingo Molnar <mingo@redhat.com>,
	Peter Zijlstra <peterz@infradead.org>,
	Paul Mackerras <paulus@samba.org>,
	John Stultz <john.stultz@linaro.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-api@vger.kernel.org" <linux-api@vger.kernel.org>
Subject: Re: [RFC 2/2] perf: Marker software event and ioctl
Date: Tue, 16 Sep 2014 19:58:34 +0200	[thread overview]
Message-ID: <20140916175834.GA13970@gmail.com> (raw)
In-Reply-To: <1410885463.12376.24.camel@hornet>


* Pawel Moll <pawel.moll@arm.com> wrote:

> On Tue, 2014-09-16 at 08:44 +0100, Ingo Molnar wrote:
> > I think adding an ioctl to inject user-provided data into the 
> > event stream is sensible, as long as there's a separate 'user 
> > generated data' event for it, etc.
> > 
> > The main usecase I could see would be to introduce a 
> > perf_printf() variant, supported by 'perf trace' by default, to 
> > add various tracable printouts to apps.
> > 
> > Timestamps generated by apps would be another usecase. It would 
> > probably be wise to add a 32-bit (or 64-bit) message type ID, 
> > plus a length field, with a message type registry somewhere in 
> > tools/perf/ (and reference implementation for each new subtype), 
> > to keep things organized yet flexible going forward.
> 
> Right, so this is pretty much what I got talking to Arnaldo...
> 
> >       { u64 type; /* 0 means zero-terminated string in data */
> >         u32 size;
> >         char data[size]; } && PERF_SAMPLE_MARKER
> 
> ... with one type - 0 - defined as a "universal" string (so any 
> possible tool knows what to do about it), the rest being left 
> to userspace (this "registry" you mention).
> 
> Before I proceed any further, is the term "marker" acceptable? 
> Maybe a "printf" instead? Or a "log"? As we know naming is 
> often single most discussed subject when it comes to new things 
> in the kernel ;-)

Well, it's a user-space generated trace/event entry, so lets call 
it that?

Thanks,

	Ingo

      reply	other threads:[~2014-09-16 17:58 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-12 11:48 [RFC 0/2] Yet another take at user/kernel time correlation problem Pawel Moll
2014-09-12 11:48 ` [RFC 1/2] perf: Add sampling of the raw monotonic clock Pawel Moll
2014-09-12 11:48 ` [RFC 2/2] perf: Marker software event and ioctl Pawel Moll
2014-09-12 12:43   ` Christopher Covington
2014-09-12 12:57     ` Pawel Moll
2014-09-12 13:49       ` Arnaldo Carvalho de Melo
2014-09-12 13:58         ` Pawel Moll
2014-09-12 16:19           ` Arnaldo Carvalho de Melo
2014-09-15 17:27             ` Pawel Moll
2014-09-15 18:31               ` Arnaldo Carvalho de Melo
2014-09-16 16:33                 ` Pawel Moll
2014-09-12 14:00       ` Christopher Covington
2014-09-12 17:37   ` David Ahern
2014-09-12 20:44     ` Arnaldo Carvalho de Melo
2014-09-14 15:43       ` David Ahern
2014-09-15 17:18         ` Pawel Moll
2014-09-16  7:44         ` Ingo Molnar
2014-09-16 16:37           ` Pawel Moll
2014-09-16 17:58             ` Ingo Molnar [this message]

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=20140916175834.GA13970@gmail.com \
    --to=mingo@kernel.org \
    --cc=acme@ghostprotocols.net \
    --cc=dsahern@gmail.com \
    --cc=john.stultz@linaro.org \
    --cc=linux-api@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=paulus@samba.org \
    --cc=pawel.moll@arm.com \
    --cc=peterz@infradead.org \
    --cc=richardcochran@gmail.com \
    --cc=rostedt@goodmis.org \
    /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;
as well as URLs for NNTP newsgroup(s).