mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH -tip  0/2] Perf Probe updates
@ 2013-10-11  7:10 Masami Hiramatsu
  2013-10-11  7:10 ` [PATCH -tip 1/2] perf probe: Support "$vars" meta argument syntax for local variables Masami Hiramatsu
  2013-10-11  7:10 ` [PATCH -tip 2/2] perf probe: Find fentry mcount fuzzed parameter location Masami Hiramatsu
  0 siblings, 2 replies; 5+ messages in thread
From: Masami Hiramatsu @ 2013-10-11  7:10 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo
  Cc: Ingo Molnar, Paul Mackerras, lkml, Peter Zijlstra

Here is a cuple of patches to update perf probe for supporting
meta arguments for local variables.

With this updates we can use $vars as a probe event argument
for all available local variables at that address.

And also, I've found an issue about variable location.
With -fentry, since the variable available address range has
skipped the mcount call instruction at the function entry,
`perf probe --vars a_function_with_mcount` always failed to
find available variables. This also disabled $vars at the
function entry which is for tracing function parameters.

The second patch tries to fix this issue by searching
variables from the entry address of the function. Note
that this works only for function parameters (not for auto
varibales, because those are not initialized yet at the
function entry).

Thank you,

---

Masami Hiramatsu (2):
      perf probe: Support "$vars" meta argument syntax for local variables
      perf probe: Find fentry mcount fuzzed parameter location


 tools/perf/util/probe-event.c  |    1 
 tools/perf/util/probe-finder.c |  133 +++++++++++++++++++++++++++++++++++-----
 tools/perf/util/probe-finder.h |    1 
 3 files changed, 119 insertions(+), 16 deletions(-)

-- 



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-10-25 10:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-11  7:10 [PATCH -tip 0/2] Perf Probe updates Masami Hiramatsu
2013-10-11  7:10 ` [PATCH -tip 1/2] perf probe: Support "$vars" meta argument syntax for local variables Masami Hiramatsu
2013-10-25 10:31   ` [tip:perf/core] " tip-bot for Masami Hiramatsu
2013-10-11  7:10 ` [PATCH -tip 2/2] perf probe: Find fentry mcount fuzzed parameter location Masami Hiramatsu
2013-10-25 10:31   ` [tip:perf/core] " tip-bot for Masami Hiramatsu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome