Messages in this thread Patch in this message | | | From | Andi Kleen <> | Subject | [PATCH] perf, tools: Handle JITed code in shared memory | Date | Wed, 24 Apr 2013 17:03:02 -0700 |
| |
From: Andi Kleen <ak@linux.intel.com>
Need to check for /dev/zero.
Most likely more strings are missing too.
Signed-off-by: Andi Kleen <ak@linux.intel.com> --- tools/perf/util/map.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/tools/perf/util/map.c b/tools/perf/util/map.c index 6fcb9de..8bcdf9e 100644 --- a/tools/perf/util/map.c +++ b/tools/perf/util/map.c @@ -21,6 +21,7 @@ const char *map_type__name[MAP__NR_TYPES] = { static inline int is_anon_memory(const char *filename) { return !strcmp(filename, "//anon") || + !strcmp(filename, "/dev/zero (deleted)") || !strcmp(filename, "/anon_hugepage (deleted)"); } -- 1.7.7.6
| |