diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/events/core.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/events/core.c b/kernel/events/core.c index 67e3b9c9a7d4..47996766e3da 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c | |||
@@ -5266,6 +5266,12 @@ static void perf_event_mmap_event(struct perf_mmap_event *mmap_event) | |||
5266 | 5266 | ||
5267 | goto got_name; | 5267 | goto got_name; |
5268 | } else { | 5268 | } else { |
5269 | if (vma->vm_ops && vma->vm_ops->name) { | ||
5270 | name = (char *) vma->vm_ops->name(vma); | ||
5271 | if (name) | ||
5272 | goto cpy_name; | ||
5273 | } | ||
5274 | |||
5269 | name = (char *)arch_vma_name(vma); | 5275 | name = (char *)arch_vma_name(vma); |
5270 | if (name) | 5276 | if (name) |
5271 | goto cpy_name; | 5277 | goto cpy_name; |