intel/perf: create a unique list of counters
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 2 Oct 2018 16:09:41 +0000 (17:09 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 20 May 2020 11:02:27 +0000 (14:02 +0300)
commit3f0c4c2afe4aa669e3f8cac668c3fb4dc359f57f
tree0c1b2def4c222aca7aa8aa7dd2207b78e2cd9b81
parent65d242ff5e57319c065cec4192dcec6237d60b91
intel/perf: create a unique list of counters

For a future extension we want to be able to list the counters. Our
existing sets counters might contain the same counters multiple times.
This is a side effect of the fixed OA counters in the HW. We track
thoses with a mask so that we know when a counter is available from
multiple metrics.

v2: Use BITFIELD64_BIT() (Jason)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2775>
src/intel/perf/gen_perf.c
src/intel/perf/gen_perf.h
src/intel/perf/gen_perf.py
src/intel/perf/gen_perf_private.h