perf top: Remove redundant syme->origin field

We can get it from syme->map->dso->kernel (that should be renamed to
origin, but leave this for another patch).

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
上级 ec52d976
...@@ -782,7 +782,6 @@ static void perf_event__process_sample(const union perf_event *event, ...@@ -782,7 +782,6 @@ static void perf_event__process_sample(const union perf_event *event,
if (!syme->skip) { if (!syme->skip) {
struct perf_evsel *evsel; struct perf_evsel *evsel;
syme->origin = origin;
evsel = perf_evlist__id2evsel(top.evlist, sample->id); evsel = perf_evlist__id2evsel(top.evlist, sample->id);
assert(evsel != NULL); assert(evsel != NULL);
syme->count[evsel->idx]++; syme->count[evsel->idx]++;
......
...@@ -184,9 +184,9 @@ float perf_top__decay_samples(struct perf_top *top, struct rb_root *root) ...@@ -184,9 +184,9 @@ float perf_top__decay_samples(struct perf_top *top, struct rb_root *root)
if (syme->snap_count != 0) { if (syme->snap_count != 0) {
if ((top->hide_user_symbols && if ((top->hide_user_symbols &&
syme->origin == PERF_RECORD_MISC_USER) || syme->map->dso->kernel == DSO_TYPE_USER) ||
(top->hide_kernel_symbols && (top->hide_kernel_symbols &&
syme->origin == PERF_RECORD_MISC_KERNEL)) { syme->map->dso->kernel == DSO_TYPE_KERNEL)) {
perf_top__remove_active_sym(top, syme); perf_top__remove_active_sym(top, syme);
continue; continue;
} }
......
...@@ -17,7 +17,6 @@ struct sym_entry { ...@@ -17,7 +17,6 @@ struct sym_entry {
unsigned long snap_count; unsigned long snap_count;
double weight; double weight;
int skip; int skip;
u8 origin;
struct map *map; struct map *map;
unsigned long count[0]; unsigned long count[0];
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册