]> git.baikalelectronics.ru Git - 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)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 26 Oct 2022 13:49:42 +0000 (10:49 -0300)
commit532279ba2d8d58b35c07452f4a1ec4a51e2e127e
tree3eed438ddd893528dcb093665fa6e5648f0dda90
parent10555902f5ed555e58d8062b47fe5d8fa0f8bc75
perf auxtrace: Fix address filter symbol name match for modules

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: 8f6ac25ee9d2a694 ("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>
tools/perf/util/auxtrace.c