diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/map.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/perf/util/map.c b/tools/perf/util/map.c index 16d783d322b6..cc33486ad9e2 100644 --- a/tools/perf/util/map.c +++ b/tools/perf/util/map.c | |||
@@ -8,6 +8,7 @@ | |||
8 | #include <unistd.h> | 8 | #include <unistd.h> |
9 | #include "map.h" | 9 | #include "map.h" |
10 | #include "thread.h" | 10 | #include "thread.h" |
11 | #include "strlist.h" | ||
11 | 12 | ||
12 | const char *map_type__name[MAP__NR_TYPES] = { | 13 | const char *map_type__name[MAP__NR_TYPES] = { |
13 | [MAP__FUNCTION] = "Functions", | 14 | [MAP__FUNCTION] = "Functions", |
@@ -695,7 +696,15 @@ struct machine *machines__findnew(struct rb_root *self, pid_t pid) | |||
695 | (symbol_conf.guestmount)) { | 696 | (symbol_conf.guestmount)) { |
696 | sprintf(path, "%s/%d", symbol_conf.guestmount, pid); | 697 | sprintf(path, "%s/%d", symbol_conf.guestmount, pid); |
697 | if (access(path, R_OK)) { | 698 | if (access(path, R_OK)) { |
698 | pr_err("Can't access file %s\n", path); | 699 | static struct strlist *seen; |
700 | |||
701 | if (!seen) | ||
702 | seen = strlist__new(true, NULL); | ||
703 | |||
704 | if (!strlist__has_entry(seen, path)) { | ||
705 | pr_err("Can't access file %s\n", path); | ||
706 | strlist__add(seen, path); | ||
707 | } | ||
699 | machine = NULL; | 708 | machine = NULL; |
700 | goto out; | 709 | goto out; |
701 | } | 710 | } |