[PATCH -tip 3/3] [BUGFIX] perf probe: Set need_dwarf if lazy matching is used

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Masami Hiramatsu
Date: Friday, March 12, 2010 - 4:22 pm

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: Ingo Molnar <mingo@elte.hu>
---

 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 53181db..7c004b6 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,
 
 	/* Parse probe point */
 	parse_perf_probe_probepoint(argv[0], pp);
-	if (pp->file || pp->line)
+	if (pp->file || pp->line || pp->lazy_line)
 		*need_dwarf = true;
 
 	/* Copy arguments and ensure return probe has no C argument */


-- 
Masami Hiramatsu
e-mail: mhiramat@redhat.com
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH -tip 3/3] [BUGFIX] perf probe: Set need_dwarf if la ..., Masami Hiramatsu, (Fri Mar 12, 4:22 pm)
[tip:perf/urgent] perf probe: Fix probe_point buffer overrun, tip-bot for Masami H ..., (Sat Mar 13, 5:26 am)
[tip:perf/urgent] perf probe: Fix need_dwarf flag if lazy ..., tip-bot for Masami H ..., (Sat Mar 13, 5:26 am)
[PATCH -tip v3] kprobes: Hide CONFIG_OPTPROBES and set if ..., Masami Hiramatsu, (Mon Mar 15, 10:00 am)
[tip:perf/core] kprobes: Hide CONFIG_OPTPROBES and set if ..., tip-bot for Masami H ..., (Tue Mar 16, 7:47 am)