Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 320445
b: refs/heads/master
c: c80c3c2
h: refs/heads/master
i:
  320443: d827f92
v: v3
  • Loading branch information
David Ahern authored and Arnaldo Carvalho de Melo committed Jul 25, 2012
1 parent 7d4f9e2 commit a168e86
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: adb5d2a487c55e5ca2ecc0b73c8f592e95d292c7
refs/heads/master: c80c3c269011c67b8dabef5238af44a6d94e4d0e
11 changes: 10 additions & 1 deletion trunk/tools/perf/util/map.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <unistd.h>
#include "map.h"
#include "thread.h"
#include "strlist.h"

const char *map_type__name[MAP__NR_TYPES] = {
[MAP__FUNCTION] = "Functions",
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit a168e86

Please sign in to comment.