summaryrefslogtreecommitdiff
path: root/kern/perfmon.h
diff options
context:
space:
mode:
authorRemy Noel <mocramis@gmail.com>2018-04-06 20:01:46 +0200
committerRemy Noel <mocramis@gmail.com>2018-04-21 00:04:20 +0200
commitc59b444cf25e01de7911514af9ebc15d342197b5 (patch)
treeec997d4d1eb6433d8c977cb69a38394c409a3efa /kern/perfmon.h
parent0274c8726015e83c989aac905b6626e40397495c (diff)
kern/perfmon: add perfmon_cpu_pmc get/setters.
Diffstat (limited to 'kern/perfmon.h')
-rw-r--r--kern/perfmon.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/kern/perfmon.h b/kern/perfmon.h
index 6a2d9c6..0e5cd19 100644
--- a/kern/perfmon.h
+++ b/kern/perfmon.h
@@ -223,6 +223,16 @@ int
perfmon_pmu_register(struct perfmon_pmu_ops *driver);
/*
+ * Get the last value of given pmc.
+ */
+uint64_t perfmon_cpu_pmc_get_prev(unsigned int pmc_id);
+
+/*
+ * Increment overflow counter for given pmc.
+ */
+void perfmon_cpu_pmc_inc_of(unsigned int pmc_id);
+
+/*
* PMU init moduls
* - module fully initialized
*/