summaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2013-04-24 17:03:02 -0700
committerBen Hutchings <ben@decadent.org.uk>2013-10-26 21:06:12 +0100
commit7ed1d8009cc6f1b534ed94388cb7980b4a55797e (patch)
tree8047c5d6ecb688f6c56965dd0ab200a2f0e81c03 /tools/perf
parent49a58f5fa9d71155be5b6211030c281084f336a3 (diff)
downloadlinux-stable-7ed1d8009cc6f1b534ed94388cb7980b4a55797e.tar.gz
linux-stable-7ed1d8009cc6f1b534ed94388cb7980b4a55797e.tar.bz2
linux-stable-7ed1d8009cc6f1b534ed94388cb7980b4a55797e.zip
perf tools: Handle JITed code in shared memory
commit 89365e6c9ad4c0e090e4c6a4b67a3ce319381d89 upstream. Need to check for /dev/zero. Most likely more strings are missing too. Signed-off-by: Andi Kleen <ak@linux.intel.com> Link: http://lkml.kernel.org/r/1366848182-30449-1-git-send-email-andi@firstfloor.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/util/map.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/map.c b/tools/perf/util/map.c
index 42dffa07f819..f7a7b9d1d4c0 100644
--- a/tools/perf/util/map.c
+++ b/tools/perf/util/map.c
@@ -16,6 +16,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)");
}