perf machine: Remove machine->symbol_filter and friends
Including machines__set_symbol_filter(), not used anymore. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-7o1qgmrpvzuis4a9f0t8mnri@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
@ -41,7 +41,6 @@ int machine__init(struct machine *machine, const char *root_dir, pid_t pid)
|
||||
|
||||
machine->pid = pid;
|
||||
|
||||
machine->symbol_filter = NULL;
|
||||
machine->id_hdr_size = 0;
|
||||
machine->kptr_restrict_warned = false;
|
||||
machine->comm_exec = false;
|
||||
@ -148,7 +147,6 @@ void machines__init(struct machines *machines)
|
||||
{
|
||||
machine__init(&machines->host, "", HOST_KERNEL_ID);
|
||||
machines->guests = RB_ROOT;
|
||||
machines->symbol_filter = NULL;
|
||||
}
|
||||
|
||||
void machines__exit(struct machines *machines)
|
||||
@ -172,8 +170,6 @@ struct machine *machines__add(struct machines *machines, pid_t pid,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
machine->symbol_filter = machines->symbol_filter;
|
||||
|
||||
while (*p != NULL) {
|
||||
parent = *p;
|
||||
pos = rb_entry(parent, struct machine, rb_node);
|
||||
@ -189,21 +185,6 @@ struct machine *machines__add(struct machines *machines, pid_t pid,
|
||||
return machine;
|
||||
}
|
||||
|
||||
void machines__set_symbol_filter(struct machines *machines,
|
||||
symbol_filter_t symbol_filter)
|
||||
{
|
||||
struct rb_node *nd;
|
||||
|
||||
machines->symbol_filter = symbol_filter;
|
||||
machines->host.symbol_filter = symbol_filter;
|
||||
|
||||
for (nd = rb_first(&machines->guests); nd; nd = rb_next(nd)) {
|
||||
struct machine *machine = rb_entry(nd, struct machine, rb_node);
|
||||
|
||||
machine->symbol_filter = symbol_filter;
|
||||
}
|
||||
}
|
||||
|
||||
void machines__set_comm_exec(struct machines *machines, bool comm_exec)
|
||||
{
|
||||
struct rb_node *nd;
|
||||
@ -2115,7 +2096,7 @@ int machine__get_kernel_start(struct machine *machine)
|
||||
*/
|
||||
machine->kernel_start = 1ULL << 63;
|
||||
if (map) {
|
||||
err = map__load(map, machine->symbol_filter);
|
||||
err = map__load(map, NULL);
|
||||
if (map->start)
|
||||
machine->kernel_start = map->start;
|
||||
}
|
||||
|
Reference in New Issue
Block a user