summaryrefslogtreecommitdiff
path: root/perf.hpp
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2024-10-04 19:10:04 +0200
committerJohannes Stoelp <johannes.stoelp@gmail.com>2024-10-04 19:10:04 +0200
commit28372905a333f0678b836f6f289ad546f758103c (patch)
tree4d963ed0d9c17d42431f688d13056ba156e5f8ad /perf.hpp
parent751fc86a8826b3af827a83629309e399788a1bad (diff)
downloadlibperf-28372905a333f0678b836f6f289ad546f758103c.tar.gz
libperf-28372905a333f0678b836f6f289ad546f758103c.zip
move pmc descriptors into own headerHEADmain
Diffstat (limited to 'perf.hpp')
-rw-r--r--perf.hpp8
1 files changed, 2 insertions, 6 deletions
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 <asm/unistd.h>
#include <asm/unistd_64.h>
#include <linux/perf_event.h>
@@ -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,