mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
perf machine: Allow for extra kernel maps
Identify extra kernel maps by name so that they can be distinguished from the kernel map and module maps. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Andy Lutomirski <luto@kernel.org> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Joerg Roedel <joro@8bytes.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: x86@kernel.org Link: http://lkml.kernel.org/r/1526986485-6562-8-git-send-email-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
4d004365e2
commit
5759a6820a
5 changed files with 34 additions and 12 deletions
|
@ -487,7 +487,7 @@ int perf_event__synthesize_modules(struct perf_tool *tool,
|
|||
for (pos = maps__first(maps); pos; pos = map__next(pos)) {
|
||||
size_t size;
|
||||
|
||||
if (__map__is_kernel(pos))
|
||||
if (!__map__is_kmodule(pos))
|
||||
continue;
|
||||
|
||||
size = PERF_ALIGN(pos->dso->long_name_len + 1, sizeof(u64));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue