Re: [PATCH v6 10/12] perf stat: Use affinity for reading
From: Andi Kleen
Date: Fri Nov 15 2019 - 13:37:43 EST
> > diff --git a/tools/perf/util/evsel.h b/tools/perf/util/evsel.h
> > index ca82a93960cd..c8af4bc23f8f 100644
> > --- a/tools/perf/util/evsel.h
> > +++ b/tools/perf/util/evsel.h
> > @@ -86,6 +86,7 @@ struct evsel {
> > struct list_head config_terms;
> > struct bpf_object *bpf_obj;
> > int bpf_fd;
> > + int err;
>
> I was wondering what would be the best place for this,
> and all the previous variables u added and this one
> are stat specific, so I think this all belongs to
>
> (struct perf_stat_evsel*) evsel->stat
I hope to eventually make perf record use affinity too.
Just not in this patchkit. So I'll keep them in the generic
evsel for now.
-Andi