intel/perf: add a helper to read timestamp from reports
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Sun, 7 Nov 2021 22:10:06 +0000 (00:10 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 22 Nov 2021 11:52:46 +0000 (11:52 +0000)
commit120f24cb3604a324688fe237af2cfca933fca25f
treec2821ec7268fd63a913d4be59f0a22ee839796e2
parent8657fa6b868880021046b0ef73a4a8a20648d93a
intel/perf: add a helper to read timestamp from reports

On newer HW it will require more work than just reading a dword. It
could also vary depending on the report format.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Antonio Caggiano <antonio.caggiano@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13831>
src/intel/perf/intel_perf.c
src/intel/perf/intel_perf.h