aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/event.c')
-rw-r--r--tools/perf/util/event.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/perf/util/event.c b/tools/perf/util/event.c
index 6e3a846aed0e..bb788c109fe6 100644
--- a/tools/perf/util/event.c
+++ b/tools/perf/util/event.c
@@ -209,8 +209,10 @@ static int perf_event__synthesize_mmap_events(struct perf_tool *tool,
209 &event->mmap.start, &event->mmap.len, prot, 209 &event->mmap.start, &event->mmap.len, prot,
210 &event->mmap.pgoff, 210 &event->mmap.pgoff,
211 execname); 211 execname);
212 212 /*
213 if (n != 5) 213 * Anon maps don't have the execname.
214 */
215 if (n < 4)
214 continue; 216 continue;
215 /* 217 /*
216 * Just like the kernel, see __perf_event_mmap in kernel/perf_event.c 218 * Just like the kernel, see __perf_event_mmap in kernel/perf_event.c