freedreno/perfcntrs: add fdperf

Port from the envytools tree, but converted to use the .c tables for
describing the perfcounter groups/countables, rather than using rnndec
to get this at runtime from the register xml.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
This commit is contained in:
Rob Clark 2019-11-19 14:53:49 -08:00 committed by Rob Clark
parent b2338a5b00
commit 5a13507164
2 changed files with 1082 additions and 0 deletions

File diff suppressed because it is too large Load diff

View file

@ -36,3 +36,27 @@ libfreedreno_perfcntrs = static_library(
build_by_default : false, build_by_default : false,
) )
dep_libconfig = dependency('libconfig', required : false)
dep_ncurses = dependency('ncurses', required : false)
if dep_libconfig.found() and dep_ncurses.found()
fdperf = executable(
'fdperf',
'fdperf.c',
include_directories : [
inc_common,
inc_freedreno,
],
link_with : [
libfreedreno_drm,
libfreedreno_perfcntrs,
],
dependencies : [
dep_libconfig,
dep_ncurses,
idep_mesautil,
],
build_by_default : with_tools.contains('freedreno'),
install : with_tools.contains('freedreno'),
)
endif