Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155177
b: refs/heads/master
c: 2ab5208
h: refs/heads/master
i:
  155175: 1266f13
v: v3
  • Loading branch information
Anton Blanchard authored and Ingo Molnar committed Jun 30, 2009
1 parent c2620d3 commit 4e520a6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 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: 6717534ddc328ae5cdf89f1ef802db83fc451f19
refs/heads/master: 2ab52083ffc057014e502cf3473adc41436922fa
24 changes: 17 additions & 7 deletions trunk/tools/perf/builtin-top.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,11 +286,22 @@ static void *display_thread(void *arg)
return NULL;
}

/* Tag samples to be skipped. */
char *skip_symbols[] = {
"default_idle",
"cpu_idle",
"enter_idle",
"exit_idle",
"mwait_idle",
NULL
};

static int symbol_filter(struct dso *self, struct symbol *sym)
{
static int filter_match;
struct sym_entry *syme;
const char *name = sym->name;
int i;

if (!strcmp(name, "_text") ||
!strcmp(name, "_etext") ||
Expand All @@ -302,13 +313,12 @@ static int symbol_filter(struct dso *self, struct symbol *sym)
return 1;

syme = dso__sym_priv(self, sym);
/* Tag samples to be skipped. */
if (!strcmp("default_idle", name) ||
!strcmp("cpu_idle", name) ||
!strcmp("enter_idle", name) ||
!strcmp("exit_idle", name) ||
!strcmp("mwait_idle", name))
syme->skip = 1;
for (i = 0; skip_symbols[i]; i++) {
if (!strcmp(skip_symbols[i], name)) {
syme->skip = 1;
break;
}
}

if (filter_match == 1) {
filter_end = sym->start;
Expand Down

0 comments on commit 4e520a6

Please sign in to comment.