From 28372905a333f0678b836f6f289ad546f758103c Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Fri, 4 Oct 2024 19:10:04 +0200 Subject: move pmc descriptors into own header --- perf.hpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'perf.hpp') diff --git a/perf.hpp b/perf.hpp index b504e74..3b202ef 100644 --- a/perf.hpp +++ b/perf.hpp @@ -25,6 +25,8 @@ #ifndef LIBPERF_HPP #define LIBPERF_HPP +#include "pmc.hpp" + #include #include #include @@ -72,12 +74,6 @@ static inline void read(int fd, T& buf) { class perf_group { public: - struct pmc_desc { - const char* name; - uint64_t type; - uint64_t config; - }; - enum mode : bool { RUN_SINGLE = false, RUN_GROUP = true, -- cgit v1.2.3