Do not try include perfmon/perf_event.h when we are not sure that it
exists.
Fixes PR51017.
Differential D105615
[llvm-exegesis] Fix compilation with old libpfm versions. courbet on Jul 8 2021, 1:54 AM. Authored by
Details Do not try include perfmon/perf_event.h when we are not sure that it Fixes PR51017.
Diff Detail
Event Timeline
|
I'm not sure why this block isn't enough to prevent the inclusion of all libpfm stuff.
(AFAIK, LIBPFM_HAS_FIELD_CYCLES signals a subset of features whereas HAVE_LIBPFM tells you if the library exsits)