mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
perf evsel: Remove unused metric_events variable
The metric_events exist in the metric_expr list and so this variable has been unused for a while. Signed-off-by: Ian Rogers <irogers@google.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
This commit is contained in:
parent
01bc5d2f0d
commit
371d32394e
|
|
@ -402,7 +402,6 @@ void evsel__init(struct evsel *evsel,
|
|||
evsel->sample_size = __evsel__sample_size(attr->sample_type);
|
||||
evsel__calc_id_pos(evsel);
|
||||
evsel->cmdline_group_boundary = false;
|
||||
evsel->metric_events = NULL;
|
||||
evsel->per_pkg_mask = NULL;
|
||||
evsel->collect_stat = false;
|
||||
evsel->group_pmu_name = NULL;
|
||||
|
|
@ -1754,7 +1753,6 @@ void evsel__exit(struct evsel *evsel)
|
|||
evsel__zero_per_pkg(evsel);
|
||||
hashmap__free(evsel->per_pkg_mask);
|
||||
evsel->per_pkg_mask = NULL;
|
||||
zfree(&evsel->metric_events);
|
||||
if (evsel__priv_destructor)
|
||||
evsel__priv_destructor(evsel->priv);
|
||||
perf_evsel__object.fini(evsel);
|
||||
|
|
|
|||
|
|
@ -100,7 +100,6 @@ struct evsel {
|
|||
* metric fields are similar, but needs more care as they can have
|
||||
* references to other metric (evsel).
|
||||
*/
|
||||
struct evsel **metric_events;
|
||||
struct evsel *metric_leader;
|
||||
|
||||
void *handler;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user