From a168e8626e36329369243ab8713bca7f26f18a6a Mon Sep 17 00:00:00 2001 From: David Ahern Date: Fri, 20 Jul 2012 17:25:51 -0600 Subject: [PATCH] --- yaml --- r: 320445 b: refs/heads/master c: c80c3c269011c67b8dabef5238af44a6d94e4d0e h: refs/heads/master i: 320443: d827f9272ae93bcaa9569c558fc8536402944564 v: v3 --- [refs] | 2 +- trunk/tools/perf/util/map.c | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 55ed193db072..5882554a17b7 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: adb5d2a487c55e5ca2ecc0b73c8f592e95d292c7 +refs/heads/master: c80c3c269011c67b8dabef5238af44a6d94e4d0e diff --git a/trunk/tools/perf/util/map.c b/trunk/tools/perf/util/map.c index 16d783d322b6..cc33486ad9e2 100644 --- a/trunk/tools/perf/util/map.c +++ b/trunk/tools/perf/util/map.c @@ -8,6 +8,7 @@ #include #include "map.h" #include "thread.h" +#include "strlist.h" const char *map_type__name[MAP__NR_TYPES] = { [MAP__FUNCTION] = "Functions", @@ -695,7 +696,15 @@ struct machine *machines__findnew(struct rb_root *self, pid_t pid) (symbol_conf.guestmount)) { sprintf(path, "%s/%d", symbol_conf.guestmount, pid); if (access(path, R_OK)) { - pr_err("Can't access file %s\n", path); + static struct strlist *seen; + + if (!seen) + seen = strlist__new(true, NULL); + + if (!strlist__has_entry(seen, path)) { + pr_err("Can't access file %s\n", path); + strlist__add(seen, path); + } machine = NULL; goto out; }