24 #ifndef ARM_COMPUTE_TEST_PMU 25 #define ARM_COMPUTE_TEST_PMU 31 #include <linux/perf_event.h> 33 #include <sys/syscall.h> 56 explicit PMU(uint64_t config);
71 void open(uint64_t config);
77 void open(
const perf_event_attr &perf_config);
86 perf_event_attr _perf_config;
94 const ssize_t result = read(_fd, &value,
sizeof(T));
#define ARM_COMPUTE_ERROR(...)
Print the given message then throw an std::runtime_error.
void close()
Close the currently open counter.
Class provides access to CPU hardware counters.
void open(uint64_t config)
Open the specified counter based on the default configuration.
This file contains all available output stages for GEMMLowp on OpenCL.
~PMU()
Default destructor.
T get_value() const
Get the counter value.
void reset()
Reset counter.
PMU()
Default constructor.