[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230628082337.1857302-1-georgmueller@gmx.net>
Date: Wed, 28 Jun 2023 10:23:19 +0200
From: Georg Müller <georgmueller@....net>
To: Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...hat.com>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Jiri Olsa <jolsa@...nel.org>,
Namhyung Kim <namhyung@...nel.org>,
Ian Rogers <irogers@...gle.com>,
Adrian Hunter <adrian.hunter@...el.com>,
"Masami Hiramatsu (Google)" <mhiramat@...nel.org>
Cc: Georg Müller <georgmueller@....net>,
regressions@...ts.linux.dev,
Arnaldo Carvalho de Melo <acme@...hat.com>,
linux-perf-users@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH v2 0/2] perf probe: fix regression introduced by switch to die_get_decl_file
When switching from dwarf_decl_file() to die_get_decl_file(), a regression
was introduced when having a binary where the DWARF info is split to
multiple CUs. It is not possible to add probes to certain functions.
These patches introduce a testcase which shows the current regression
and a fix for the issue
Signed-off-by: Georg Müller <georgmueller@....net>
Link: https://lore.kernel.org/r/5a00d5a5-7be7-ef8a-4044-9a16249fff25@gmx.net/
---
Changes in v2:
- Add testcase
Georg Müller (2):
perf probe: add test for regression introduced by switch to
die_get_decl_file
perf probe: read DWARF files from the correct CU
.../shell/test_uprobe_from_different_cu.sh | 77 +++++++++++++++++++
tools/perf/util/dwarf-aux.c | 4 +-
2 files changed, 80 insertions(+), 1 deletion(-)
create mode 100755 tools/perf/tests/shell/test_uprobe_from_different_cu.sh
--
2.41.0
Powered by blists - more mailing lists