mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
perf maps: Mark module DSOs with kernel type
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>
This commit is contained in:
parent
c452833387
commit
02213cec64
1 changed files with 1 additions and 0 deletions
|
@ -686,6 +686,7 @@ static struct dso *machine__findnew_module_dso(struct machine *machine,
|
||||||
|
|
||||||
dso__set_module_info(dso, m, machine);
|
dso__set_module_info(dso, m, machine);
|
||||||
dso__set_long_name(dso, strdup(filename), true);
|
dso__set_long_name(dso, strdup(filename), true);
|
||||||
|
dso->kernel = DSO_TYPE_KERNEL;
|
||||||
}
|
}
|
||||||
|
|
||||||
dso__get(dso);
|
dso__get(dso);
|
||||||
|
|
Loading…
Reference in a new issue