[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180205100743.4420c0e6@gandalf.local.home>
Date: Mon, 5 Feb 2018 10:07:43 -0500
From: Steven Rostedt <rostedt@...dmis.org>
To: Juri Lelli <juri.lelli@...hat.com>
Cc: Alexei Starovoitov <alexei.starovoitov@...il.com>,
Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
linux-kernel <linux-kernel@...r.kernel.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Ingo Molnar <mingo@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Thomas Gleixner <tglx@...utronix.de>,
Peter Zijlstra <peterz@...radead.org>,
Masami Hiramatsu <mhiramat@...nel.org>,
Tom Zanussi <tom.zanussi@...ux.intel.com>,
linux-rt-users <linux-rt-users@...r.kernel.org>,
linux-trace-users <linux-trace-users@...r.kernel.org>,
acme <acme@...nel.org>, Clark Williams <williams@...hat.com>,
Jiri Olsa <jolsa@...hat.com>, bristot <bristot@...hat.com>,
Jonathan Corbet <corbet@....net>,
Namhyung Kim <namhyung@...nel.org>,
Dietmar Eggemann <dietmar.eggemann@....com>,
Patrick Bellasi <patrick.bellasi@....com>,
Morten Rasmussen <morten.rasmussen@....com>
Subject: Re: [PATCH 00/18] [ANNOUNCE] Dynamically created function based
events
On Mon, 5 Feb 2018 14:53:55 +0100
Juri Lelli <juri.lelli@...hat.com> wrote:
> First impression is that this is going to be definitely useful if
>
> - it's possibile to hook at function end (e.g., replenish_dl_entity above
> carries more useful information _after_ it did its job)
The one issue is that you will only have access to one argument at the
end. And that will be the return value. How useful would that be?
Hmm, actually, if we incorporate Tom Zanussi's histogram patches (which
I'll start reviewing this week for inclusion), we could add the pseudo
events to carry necessary data.
> - inside functions? not really sure it's actually going to be needed, but I
> was wondering if it's possible at all :); with tracepoints it's for example
> easy to collect detailed information about which branches has been taken etc.
This will not be something to handle anything other than function
calls. You have three options for dealing with inside a function.
- add another function that can be traced with this, inside the
function
- use kprobes
- add a tracepoint
>
> I'm going to play with this more. Just wanted to give back a quick positive
> feedback.
Thanks!
>
> I'm also adding Arm folks to the discussion, as they (and I :) have been
> asking to add tracepoints to scheduler code in the past [1].
You will need to implement the arch_get_func_args() for ARM too.
-- Steve
Powered by blists - more mailing lists