mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
perf machine: Fix the search for the kernel DSO on the unified list
When unifying the user_dsos and kernel_dsos a bug was introduced by
inverting the check for dso->kernel, fix it.
Fixes: 3d39ac5386 ("perf machine: No need to have two DSOs lists")
Cc: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
1 parent
9ecae065f3
commit
0443f36b0d
1 file changed
+1
-1
@@ -1149,7 +1149,7 @@ static int machine__process_kernel_mmap_event(struct machine *machine,
|
||||
struct dso *dso;
|
||||
|
||||
list_for_each_entry(dso, &machine->dsos.head, node) {
|
||||
if (dso->kernel && is_kernel_module(dso->long_name))
|
||||
if (!dso->kernel || is_kernel_module(dso->long_name))
|
||||
continue;
|
||||
|
||||
kernel = dso;
|
||||
|
||||
Reference in new issue
Block a user