* [PATCH] Add dso->deleted bit
@ 2011-05-10 18:51 Arun Sharma
0 siblings, 0 replies; only message in thread
From: Arun Sharma @ 2011-05-10 18:51 UTC (permalink / raw)
To: linux-kernel, linux-perf-users, acme; +Cc: Arun Sharma
This keeps the knowledge about deleted filenames in one place.
Signed-off-by: Arun Sharma <asharma@fb.com>
---
tools/perf/util/map.c | 1 +
tools/perf/util/symbol.c | 2 +-
tools/perf/util/symbol.h | 1 +
3 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/tools/perf/util/map.c b/tools/perf/util/map.c
index a16ecab..042ba9f 100644
--- a/tools/perf/util/map.c
+++ b/tools/perf/util/map.c
@@ -135,6 +135,7 @@ int map__load(struct map *self, symbol_filter_t filter)
"a debug package?\n", name);
}
+ self->dso->deleted = 1;
return -1;
}
/*
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c
index 17df793..dbd1944 100644
--- a/tools/perf/util/symbol.c
+++ b/tools/perf/util/symbol.c
@@ -1575,7 +1575,7 @@ restart:
}
free(name);
- if (ret < 0 && strstr(self->name, " (deleted)") != NULL)
+ if (ret < 0 && self->deleted)
return 0;
return ret;
}
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h
index 713b0b4..943a054 100644
--- a/tools/perf/util/symbol.h
+++ b/tools/perf/util/symbol.h
@@ -142,6 +142,7 @@ struct dso {
u8 annotate_warned:1;
u8 sname_alloc:1;
u8 lname_alloc:1;
+ u8 deleted:1;
unsigned char symtab_type;
u8 sorted_by_name;
u8 loaded;
--
1.7.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-05-10 18:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-10 18:51 [PATCH] Add dso->deleted bit Arun Sharma
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).