Skip to content

Commit

Permalink
perf probe: Fix need_dwarf flag if lazy matching is used
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Masami Hiramatsu authored and Ingo Molnar committed Mar 13, 2010
1 parent 594087a commit fc6ceea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/perf/util/probe-event.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit fc6ceea

Please sign in to comment.