* [PATCH] perf symbols: skip duplicate check in dso__load by guest kmod origin
@ 2010-11-21 14:50 David Ahern
0 siblings, 0 replies; only message in thread
From: David Ahern @ 2010-11-21 14:50 UTC (permalink / raw)
To: linux-perf-users; +Cc: David Ahern
If machine is not set root_dir is set to "" which drops name to the
same lookup as DSO__ORIG_DSO.
Signed-off-by: David Ahern <daahern@cisco.com>
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c
index b39f499..d30136e 100644
--- a/tools/perf/util/symbol.c
+++ b/tools/perf/util/symbol.c
@@ -1473,10 +1473,10 @@ int dso__load(struct dso *self, struct map *map, symbol_filter_t filter)
snprintf(name, size, "%s", self->long_name);
break;
case DSO__ORIG_GUEST_KMODULE:
- if (map->groups && map->groups->machine)
- root_dir = map->groups->machine->root_dir;
- else
- root_dir = "";
+ if (!map->groups || !map->groups->machine)
+ continue;
+
+ root_dir = map->groups->machine->root_dir;
snprintf(name, size, "%s%s", root_dir, self->long_name);
break;
--
1.7.2.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-11-21 14:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-21 14:50 [PATCH] perf symbols: skip duplicate check in dso__load by guest kmod origin David Ahern
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).