public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@kernel.org>
To: Drew Richardson <drew.richardson@arm.com>
Cc: Ingo Molnar <mingo@redhat.com>,
	Peter Zijlstra <peterz@infradead.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Pawel Moll <Pawel.Moll@arm.com>,
	Christoph Hellwig <hch@infradead.org>
Subject: Re: [PATCH] Export sched tracepoints for use by kernel modules
Date: Tue, 22 Apr 2014 20:26:13 +0200	[thread overview]
Message-ID: <20140422182613.GA16359@gmail.com> (raw)
In-Reply-To: <20140422145338.GA4591@dreric01-Precision-T1600>


* Drew Richardson <drew.richardson@arm.com> wrote:

> > > +EXPORT_TRACEPOINT_SYMBOL_GPL(sched_stat_sleep);
> > > +EXPORT_TRACEPOINT_SYMBOL_GPL(sched_stat_iowait);
> > > +EXPORT_TRACEPOINT_SYMBOL_GPL(sched_stat_blocked);
> > > +EXPORT_TRACEPOINT_SYMBOL_GPL(sched_stat_runtime);
> > > +EXPORT_TRACEPOINT_SYMBOL_GPL(sched_pi_setprio);
> > > +#ifdef CONFIG_DETECT_HUNG_TASK
> > > +EXPORT_TRACEPOINT_SYMBOL_GPL(sched_process_hang);
> > > +#endif /* CONFIG_DETECT_HUNG_TASK */
> > > +EXPORT_TRACEPOINT_SYMBOL_GPL(sched_move_numa);
> > > +EXPORT_TRACEPOINT_SYMBOL_GPL(sched_stick_numa);
> > > +EXPORT_TRACEPOINT_SYMBOL_GPL(sched_swap_numa);
> > 
> > Which in-tree kernel module is using these?
> > 
> > Thanks,
> > 
> > 	Ingo
> > 
> 
> Gator (http://git.linaro.org/arm/ds5/gator.git), an out of tree 
> kernel module, uses sched_process_fork, sched_switch and 
> sched_process_free. Along with exporting those tracepoints I thought 
> it would be helpful to export all the tracepoints from 
> trace/events/sched.h.

So, 'Gator' seems to be a rather ugly out of tree driver, ABI and 
daemon slapped on top of perf events, duplicating part of perf events 
functionality for no apparent good technical reason, just to enable a 
binary-only profiler called 'ARM Streamline Analyzer'.

What does the 'gator' driver offer that perf events does not offer in 
itself? If there's any sensible feature in there then it should be 
added to the mainline kernel not as an add on driver and filesystem, 
but as part of perf events subsystem itself.

Thanks,

	Ingo

      reply	other threads:[~2014-04-22 18:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-22 14:23 [PATCH] Export sched tracepoints for use by kernel modules Drew Richardson
2014-04-22 14:45 ` Ingo Molnar
2014-04-22 14:53   ` Drew Richardson
2014-04-22 18:26     ` 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=20140422182613.GA16359@gmail.com \
    --to=mingo@kernel.org \
    --cc=Pawel.Moll@arm.com \
    --cc=drew.richardson@arm.com \
    --cc=hch@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.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