diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-05-24 17:38:51 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-06-04 10:28:52 -0300 |
commit | 9fd5578a3cdd6cb59603b04a9282199d08f85607 (patch) | |
tree | e1aa1009282039f1c7797cc9b435568515137807 /tools/perf/util/header.c | |
parent | 14c8dde170cc1ba6754a1275ff378092ab36b257 (diff) | |
download | op-kernel-dev-9fd5578a3cdd6cb59603b04a9282199d08f85607.zip op-kernel-dev-9fd5578a3cdd6cb59603b04a9282199d08f85607.tar.gz |
perf tools: Ditch the symbol_conf.nr_events global
Since over time the places where we need to pass this got reduced
because we can obtain it from evsel->evlist->nr_entries, no need to have
this global anymore.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-ovhikrfj8pzdv93yq3gt6sei@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/header.c')
-rw-r--r-- | tools/perf/util/header.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index a8bff21..2625cc38 100644 --- a/tools/perf/util/header.c +++ b/tools/perf/util/header.c @@ -3312,8 +3312,6 @@ int perf_session__read_header(struct perf_session *session) lseek(fd, tmp, SEEK_SET); } - symbol_conf.nr_events = nr_attrs; - perf_header__process_sections(header, fd, &session->tevent, perf_file_section__process); @@ -3739,8 +3737,6 @@ int perf_event__process_attr(struct perf_tool *tool __maybe_unused, perf_evlist__id_add(evlist, evsel, 0, i, event->attr.id[i]); } - symbol_conf.nr_events = evlist->nr_entries; - return 0; } |