diff options
author | Masami Hiramatsu <mhiramat@redhat.com> | 2009-10-27 16:43:19 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-10-29 03:47:49 -0400 |
commit | b0ef07324310d66f660a311d4a8d669eda74f801 (patch) | |
tree | 76ca8d6947e9238254fe8b5b7264ba51bd24d618 /tools/perf/util/probe-finder.h | |
parent | 253977b0d87fbb793f12b1661a763ae264028ccf (diff) |
perf/probes: Support function entry relative line number
Add function-entry relative line number specifying support to
perf-probe. This allows users to define probes by line number
from entry of the function.
e.g.
perf probe schedule:16
Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Jim Keniston <jkenisto@us.ibm.com>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Frank Ch. Eigler <fche@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jason Baron <jbaron@redhat.com>
Cc: K.Prasad <prasad@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
LKML-Reference: <20091027204319.30545.30678.stgit@harusame>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/probe-finder.h')
-rw-r--r-- | tools/perf/util/probe-finder.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/probe-finder.h b/tools/perf/util/probe-finder.h index 240d6cb3cc2e..bdebca6697d2 100644 --- a/tools/perf/util/probe-finder.h +++ b/tools/perf/util/probe-finder.h | |||
@@ -41,7 +41,9 @@ struct probe_finder { | |||
41 | /* For function searching */ | 41 | /* For function searching */ |
42 | Dwarf_Addr addr; /* Address */ | 42 | Dwarf_Addr addr; /* Address */ |
43 | Dwarf_Unsigned fno; /* File number */ | 43 | Dwarf_Unsigned fno; /* File number */ |
44 | Dwarf_Unsigned lno; /* Line number */ | ||
44 | Dwarf_Off inl_offs; /* Inline offset */ | 45 | Dwarf_Off inl_offs; /* Inline offset */ |
46 | Dwarf_Die cu_die; /* Current CU */ | ||
45 | 47 | ||
46 | /* For variable searching */ | 48 | /* For variable searching */ |
47 | Dwarf_Addr cu_base; /* Current CU base address */ | 49 | Dwarf_Addr cu_base; /* Current CU base address */ |