]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
perf maps: Mark module DSOs with kernel type
authorJiri Olsa <jolsa@kernel.org>
Mon, 10 Feb 2020 14:32:15 +0000 (15:32 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 11 Feb 2020 19:41:49 +0000 (16:41 -0300)
We add kernel module map into machine->kmaps, so it needs to be created
as 'struct kmap', which is dependent on its dso having kernel type.

Reported-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Tested-by: Kim Phillips <kim.phillips@amd.com>
Tested-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/20200210143218.24948-2-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/machine.c

index c8c5410315e817c2b9533eb8df718dc1bf98915f..e3e5490f6de5ed59c0460ed03d94b3b5b07bfbf7 100644 (file)
@@ -686,6 +686,7 @@ static struct dso *machine__findnew_module_dso(struct machine *machine,
 
                dso__set_module_info(dso, m, machine);
                dso__set_long_name(dso, strdup(filename), true);
+               dso->kernel = DSO_TYPE_KERNEL;
        }
 
        dso__get(dso);