|
@@ -634,26 +634,9 @@ repeat:
|
|
|
return NULL;
|
|
|
}
|
|
|
|
|
|
-/* Tag samples to be skipped. */
|
|
|
-static const char *skip_symbols[] = {
|
|
|
- "intel_idle",
|
|
|
- "default_idle",
|
|
|
- "native_safe_halt",
|
|
|
- "cpu_idle",
|
|
|
- "enter_idle",
|
|
|
- "exit_idle",
|
|
|
- "mwait_idle",
|
|
|
- "mwait_idle_with_hints",
|
|
|
- "poll_idle",
|
|
|
- "ppc64_runlatch_off",
|
|
|
- "pseries_dedicated_idle_sleep",
|
|
|
- NULL
|
|
|
-};
|
|
|
-
|
|
|
static int symbol_filter(struct map *map __maybe_unused, struct symbol *sym)
|
|
|
{
|
|
|
const char *name = sym->name;
|
|
|
- int i;
|
|
|
|
|
|
/*
|
|
|
* ppc64 uses function descriptors and appends a '.' to the
|
|
@@ -671,12 +654,8 @@ static int symbol_filter(struct map *map __maybe_unused, struct symbol *sym)
|
|
|
strstr(name, "_text_end"))
|
|
|
return 1;
|
|
|
|
|
|
- for (i = 0; skip_symbols[i]; i++) {
|
|
|
- if (!strcmp(skip_symbols[i], name)) {
|
|
|
- sym->ignore = true;
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
+ if (symbol__is_idle(sym))
|
|
|
+ sym->ignore = true;
|
|
|
|
|
|
return 0;
|
|
|
}
|