Commit e77b15bd authored by David Ahern's avatar David Ahern Committed by Arnaldo Carvalho de Melo

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!

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1318985085-20776-1-git-send-email-dsahern@gmail.comSigned-off-by: default avatarDavid Ahern <dsahern@gmail.com>
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 51192de3
...@@ -139,8 +139,8 @@ int map__load(struct map *self, symbol_filter_t filter) ...@@ -139,8 +139,8 @@ int map__load(struct map *self, symbol_filter_t filter)
if (len > sizeof(DSO__DELETED) && if (len > sizeof(DSO__DELETED) &&
strcmp(name + real_len + 1, DSO__DELETED) == 0) { strcmp(name + real_len + 1, DSO__DELETED) == 0) {
pr_warning("%.*s was updated, restart the long " pr_warning("%.*s was updated (is prelink enabled?). "
"running apps that use it!\n", "Restart the long running apps that use it!\n",
(int)real_len, name); (int)real_len, name);
} else { } else {
pr_warning("no symbols found in %s, maybe install " pr_warning("no symbols found in %s, maybe install "
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment