[PATCH 019/100] perf tools: Handle JITed code in shared memory
Luis Henriques
luis.henriques at canonical.com
Fri Oct 11 10:40:49 UTC 2013
3.5.7.23 -stable review patch. If anyone has any objections, please let me know.
------------------
From: Andi Kleen <ak at linux.intel.com>
commit 89365e6c9ad4c0e090e4c6a4b67a3ce319381d89 upstream.
Need to check for /dev/zero.
Most likely more strings are missing too.
Signed-off-by: Andi Kleen <ak at 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 at redhat.com>
Cc: Vinson Lee <vlee at freedesktop.org>
Signed-off-by: Luis Henriques <luis.henriques at canonical.com>
---
tools/perf/util/map.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/perf/util/map.c b/tools/perf/util/map.c
index 81072b6..34d8298 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)");
}
--
1.8.3.2
More information about the kernel-team
mailing list