Skip to contentSkip to conversation

perf tools: add prelink suggestion to dso update message

PATCH New David Ahern 1 participant 1 message Oct 19, 2011 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf tools: add prelink suggestion to dso update message

Following a prelink run mapped files for long running processes can show as deleted. The current message suggests restarting long running processes. Add to that a suggestion that prelink might be the cause.

Old message:
/lib64/libc-2.14.so was updated, restart the long running
apps that use it!

New message:
/lib64/libc-2.14.so was updated (is prelink enabled?).
Restart the long running apps that use it!

---
 tools/perf/util/map.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
tools/perf/util/map.c +2 -2
index 9cf0d43..78284b1 100644
@@ -139,8 +139,8 @@ int map__load(struct map *self, symbol_filter_t filter)
 
 		if (len > sizeof(DSO__DELETED) &&
 		    strcmp(name + real_len + 1, DSO__DELETED) == 0) {
-			pr_warning("%.*s was updated, restart the long "
-				   "running apps that use it!\n",
+			pr_warning("%.*s was updated (is prelink enabled?). "
+				"Restart the long running apps that use it!\n",
 				   (int)real_len, name);
 		} else {
 			pr_warning("no symbols found in %s, maybe install "
Signature · 1 line
1.7.6.4