]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf symbol: Simplify kernel module checking
authorNamhyung Kim <namhyung@kernel.org>
Fri, 21 Jun 2024 17:05:26 +0000 (10:05 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 25 Jun 2024 18:06:20 +0000 (11:06 -0700)
commite988a5b53ebd40c2fafc86250e95d69929796fbd
tree2821b5f2ebc02f83cb84b53de02a4db9fb20811c
parentcb39d05e67dc24985ff9f5150e71040fa4d60ab8
perf symbol: Simplify kernel module checking

In dso__load(), it checks if the dso is a kernel module by looking the
symtab type.  Actually dso has 'is_kmod' field to check that easily and
dso__set_module_info() set the symtab type and the is_kmod bit.  So it
should have the same result to check the is_kmod bit.

Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240621170528.608772-3-namhyung@kernel.org
tools/perf/util/symbol.c