diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2021-02-16 17:52:16 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2021-02-16 17:52:16 +0300 |
commit | c1bd8a2b9fbc304995fb03356f878579e50d3dd8 (patch) | |
tree | c5599739225f20c52f56c189bed786d68de64368 /tools/perf/util/probe-event.c | |
parent | a89dbc9b988f3ba8700df3c58614744de0c5043f (diff) | |
parent | 105f75ebf9519c239c96f9b16e16520f45fea72b (diff) | |
download | linux-c1bd8a2b9fbc304995fb03356f878579e50d3dd8.tar.xz |
Merge branch 'perf/urgent' into perf/core
To get some fixes that didn't made into 5.11.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/probe-event.c')
-rw-r--r-- | tools/perf/util/probe-event.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c index 137f19c5b686..a9cff3a50ddf 100644 --- a/tools/perf/util/probe-event.c +++ b/tools/perf/util/probe-event.c @@ -894,6 +894,16 @@ static int try_to_find_probe_trace_events(struct perf_probe_event *pev, struct debuginfo *dinfo; int ntevs, ret = 0; + /* Workaround for gcc #98776 issue. + * Perf failed to add kretprobe event with debuginfo of vmlinux which is + * compiled by gcc with -fpatchable-function-entry option enabled. The + * same issue with kernel module. The retprobe doesn`t need debuginfo. + * This workaround solution use map to query the probe function address + * for retprobe event. + */ + if (pev->point.retprobe) + return 0; + dinfo = open_debuginfo(pev->target, pev->nsi, !need_dwarf); if (!dinfo) { if (need_dwarf) |