Skip to contentSkip to conversation

perf, tools: Handle JITed code in shared memory

PATCH New Andi Kleen 2 participants 2 messages Apr 25, 2013 – May 31, 2013 perf events

lore
Share & tools
lore

Andi Kleen

author
#0 lore raw

PATCH 1/1 perf, tools: Handle JITed code in shared memory

From: Andi Kleen <[email protected]>

Need to check for /dev/zero.

Most likely more strings are missing too.

---
 tools/perf/util/map.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
tools/perf/util/map.c +1 -0
index 6fcb9de..8bcdf9e 100644
@@ -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)");
 }
 
Signature · 1 line
1.7.7.6
#1 lore raw

[tip:perf/core] perf tools: Handle JITed code in shared memory

perf tools: Handle JITed code in shared memory
Commit-ID:  89365e6c9ad4c0e090e4c6a4b67a3ce319381d89
Gitweb:     http://git.kernel.org/tip/89365e6c9ad4c0e090e4c6a4b67a3ce319381d89
Author:     Andi Kleen <[email protected]>
AuthorDate: Wed, 24 Apr 2013 17:03:02 -0700
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Tue, 28 May 2013 16:23:58 +0300

perf tools: Handle JITed code in shared memory

Need to check for /dev/zero.

Most likely more strings are missing too.

---
 tools/perf/util/map.c | 1 +
 1 file changed, 1 insertion(+)
tools/perf/util/map.c +1 -0
index 6fcb9de..8bcdf9e 100644
@@ -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)");
 }