]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
perf auxtrace: Fix address filter symbol name match for modules
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 26 Oct 2022 07:27:36 +0000 (10:27 +0300)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 28 Nov 2022 14:18:09 +0000 (15:18 +0100)
commit3ff7a7eca7f743830e568ec3ed5358151542337a
tree4f48060b9b69616c73dcf617b107d48947257f55
parent9b772ce0406b9a35a4f968adcb58b040cade12c8
perf auxtrace: Fix address filter symbol name match for modules

BugLink: https://bugs.launchpad.net/bugs/1997981
commit cba04f3136b658583adb191556f99d087589c1cc upstream.

For modules, names from kallsyms__parse() contain the module name which
meant that module symbols did not match exactly by name.

Fix by matching the name string up to the separating tab character.

Fixes: 1b36c03e356936d6 ("perf record: Add support for using symbols in address filters")
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20221026072736.2982-1-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
tools/perf/util/auxtrace.c