Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

0 views
Skip to first unread message

Masami Hiramatsu

unread,
Mar 12, 2010, 6:20:02 PM3/12/10
to
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 <mhir...@redhat.com>
Cc: Ingo Molnar <mi...@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: mhir...@redhat.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majo...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

tip-bot for Masami Hiramatsu

unread,
Mar 13, 2010, 7:30:02 AM3/13/10
to
Commit-ID: fc6ceea045031658d0b59af562369eae980b4370
Gitweb: http://git.kernel.org/tip/fc6ceea045031658d0b59af562369eae980b4370
Author: Masami Hiramatsu <mhir...@redhat.com>
AuthorDate: Fri, 12 Mar 2010 18:22:24 -0500
Committer: Ingo Molnar <mi...@elte.hu>
CommitDate: Sat, 13 Mar 2010 08:32:22 +0100

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 <mhir...@redhat.com>
Cc: systemtap <syst...@sources.redhat.com>
Cc: DLE <dle-d...@lists.sourceforge.net>
LKML-Reference: <20100312232224....@localhost6.localdomain6>
Signed-off-by: Ingo Molnar <mi...@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 */
--

0 new messages