Skip to contentSkip to conversation

perf, map: Don't try to find DSOs in SYSV maps

PATCH Applied Don Zickus 3 participants 3 messages Aug 20, 2014 – Aug 24, 2014 perf events

lore
Share & tools
lore

Don Zickus

author
#0 lore raw

PATCH 1/1 perf, map: Don't try to find DSOs in SYSV maps

We are seeing a lot of the following with regards to SYSV memory

Failed to open /SYSV0000279c, continuing without symbols

We don't believe this memory will have DSO info, so treat it like the heap and stack for now and skip it to prevent the warning.

--
I am open to suggetions for a different fix - dcz

---
 tools/perf/util/map.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
tools/perf/util/map.c +1 -0
index 25c571f..0294f40 100644
@@ -29,6 +29,7 @@ static inline int is_anon_memory(const char *filename)
 static inline int is_no_dso_memory(const char *filename)
 {
 	return !strncmp(filename, "[stack", 6) ||
+	       !strncmp(filename, "/SYSV",5)   ||
 	       !strcmp(filename, "[heap]");
 }
 
Signature · 1 line
1.7.1
maintainer Applied
#1 lore raw

Em Tue, Aug 19, 2014 at 10:31:14PM -0400, Don Zickus escreveu:

Quoted 6 lines

We are seeing a lot of the following with regards to SYSV memory

Failed to open /SYSV0000279c, continuing without symbols

We don't believe this memory will have DSO info, so treat it like the heap and stack for now and skip it to prevent the warning.

Thanks, applied.

Quoted 22 lines

--
I am open to suggetions for a different fix - dcz

---
 tools/perf/util/map.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
tools/perf/util/map.c +1 -0
index 25c571f..0294f40 100644
@@ -29,6 +29,7 @@ static inline int is_anon_memory(const char *filename)
 static inline int is_no_dso_memory(const char *filename)
 {
 	return !strncmp(filename, "[stack", 6) ||
+	       !strncmp(filename, "/SYSV",5)   ||
 	       !strcmp(filename, "[heap]");
 }
 
Signature · 1 line
1.7.1
#2 lore raw

[tip:perf/core] perf symbols: Don't try to find DSOs in SYSV maps

In reply to Don Zickus
perf symbols: Don't try to find DSOs in SYSV maps
Commit-ID:  700be564308bcfc217bd3515d634b56f0c3c1bbb
Gitweb:     http://git.kernel.org/tip/700be564308bcfc217bd3515d634b56f0c3c1bbb
Author:     Don Zickus <[email protected]>
AuthorDate: Tue, 19 Aug 2014 22:31:14 -0400
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Wed, 20 Aug 2014 08:26:09 -0300

perf symbols: Don't try to find DSOs in SYSV maps

We are seeing a lot of the following with regards to SYSV memory

Failed to open /SYSV0000279c, continuing without symbols

We don't believe this memory will have DSO info, so treat it like the heap and stack for now and skip it to prevent the warning.

---
 tools/perf/util/map.c | 1 +
 1 file changed, 1 insertion(+)
tools/perf/util/map.c +1 -0
index 31b8905..b709059 100644
@@ -31,6 +31,7 @@ static inline int is_anon_memory(const char *filename)
 static inline int is_no_dso_memory(const char *filename)
 {
 	return !strncmp(filename, "[stack", 6) ||
+	       !strncmp(filename, "/SYSV",5)   ||
 	       !strcmp(filename, "[heap]");
 }