summaryrefslogtreecommitdiff
path: root/kern/perfmon.h
diff options
context:
space:
mode:
authorRemy Noel <mocramis@gmail.com>2018-04-18 19:16:40 +0200
committerRemy Noel <mocramis@gmail.com>2018-04-21 00:04:20 +0200
commit1b86674fcbefb0c860c02ade0463db469f4df1bb (patch)
treef2b741d60c7ae8996ca736378b28dc213a33b033 /kern/perfmon.h
parent75924457863e9dc90475b5cbd9bcabfff87cfc0d (diff)
perfmon: Test overflow in cpu test.
Adds perfmon_event_write as a test-only API.
Diffstat (limited to 'kern/perfmon.h')
-rw-r--r--kern/perfmon.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/kern/perfmon.h b/kern/perfmon.h
index 60e40e0..3b9a002 100644
--- a/kern/perfmon.h
+++ b/kern/perfmon.h
@@ -66,6 +66,9 @@ struct perfmon_pmu_ops {
uint64_t (*read)(unsigned int pmc_id);
uint8_t (*get_pmc_width)(void);
void (*handle_of_intr)(struct trap_frame *frame);
+#ifdef CONFIG_PERFMON_TEST
+ void (*write)(unsigned int pmc_id, uint64_t value);
+#endif /* CONFIG_PERFMON_TEST */
};
/*