[ 3.5.y.z extended stable ] Patch "perf tools: Handle JITed code in shared memory" has been added to staging queue

Luis Henriques luis.henriques at canonical.com
Wed Oct 2 15:03:44 UTC 2013


This is a note to let you know that I have just added a patch titled

    perf tools: Handle JITed code in shared memory

to the linux-3.5.y-queue branch of the 3.5.y.z extended stable tree 
which can be found at:

 http://kernel.ubuntu.com/git?p=ubuntu/linux.git;a=shortlog;h=refs/heads/linux-3.5.y-queue

If you, or anyone else, feels it should not be added to this tree, please 
reply to this email.

For more information about the 3.5.y.z tree, see
https://wiki.ubuntu.com/Kernel/Dev/ExtendedStable

Thanks.
-Luis

------

>From c246bcb25397d4c7e07f6943733d91fff8ebf936 Mon Sep 17 00:00:00 2001
From: Andi Kleen <ak at linux.intel.com>
Date: Wed, 24 Apr 2013 17:03:02 -0700
Subject: [PATCH] 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 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