Commit 3a3393ef authored by Anton Blanchard's avatar Anton Blanchard Committed by Ingo Molnar

perf top: Add ppc64 specific skip symbols and strip ppc64 . prefix

Filter out some ppc64 specific idle loop functions and remove
leading '.' on ppc64 text symbols.
Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
Cc: a.p.zijlstra@chello.nl
Cc: paulus@samba.org
LKML-Reference: <20090630230140.995643441@samba.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 2ab52083
...@@ -293,6 +293,8 @@ char *skip_symbols[] = { ...@@ -293,6 +293,8 @@ char *skip_symbols[] = {
"enter_idle", "enter_idle",
"exit_idle", "exit_idle",
"mwait_idle", "mwait_idle",
"ppc64_runlatch_off",
"pseries_dedicated_idle_sleep",
NULL NULL
}; };
...@@ -303,6 +305,13 @@ static int symbol_filter(struct dso *self, struct symbol *sym) ...@@ -303,6 +305,13 @@ static int symbol_filter(struct dso *self, struct symbol *sym)
const char *name = sym->name; const char *name = sym->name;
int i; int i;
/*
* ppc64 uses function descriptors and appends a '.' to the
* start of every instruction address. Remove it.
*/
if (name[0] == '.')
name++;
if (!strcmp(name, "_text") || if (!strcmp(name, "_text") ||
!strcmp(name, "_etext") || !strcmp(name, "_etext") ||
!strcmp(name, "_sinittext") || !strcmp(name, "_sinittext") ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment