diff options
| author | Masami Hiramatsu <mhiramat@redhat.com> | 2010-03-12 18:22:24 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2010-03-13 02:32:22 -0500 |
| commit | fc6ceea045031658d0b59af562369eae980b4370 (patch) | |
| tree | f1658e729ecc52febf6729f146d6ee6892a28aea | |
| parent | 594087a04eea544356f9c52e83c1a9bc380ce80f (diff) | |
perf probe: Fix need_dwarf flag if lazy matching is used
Set need_dwarf if lazy matching pattern is specified, because
lazy matching requires real source path for which we must use
debuginfo.
Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Cc: systemtap <systemtap@sources.redhat.com>
Cc: DLE <dle-develop@lists.sourceforge.net>
LKML-Reference: <20100312232224.2017.54550.stgit@localhost6.localdomain6>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
| -rw-r--r-- | tools/perf/util/probe-event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c index 53181dbfe4a8..7c004b6ef24f 100644 --- a/tools/perf/util/probe-event.c +++ b/tools/perf/util/probe-event.c | |||
| @@ -242,7 +242,7 @@ void parse_perf_probe_event(const char *str, struct probe_point *pp, | |||
| 242 | 242 | ||
| 243 | /* Parse probe point */ | 243 | /* Parse probe point */ |
| 244 | parse_perf_probe_probepoint(argv[0], pp); | 244 | parse_perf_probe_probepoint(argv[0], pp); |
| 245 | if (pp->file || pp->line) | 245 | if (pp->file || pp->line || pp->lazy_line) |
| 246 | *need_dwarf = true; | 246 | *need_dwarf = true; |
| 247 | 247 | ||
| 248 | /* Copy arguments and ensure return probe has no C argument */ | 248 | /* Copy arguments and ensure return probe has no C argument */ |
