summaryrefslogtreecommitdiffstats
path: root/runtime/perf.h
diff options
context:
space:
mode:
authorwcohen <wcohen>2006-09-12 22:05:48 +0000
committerwcohen <wcohen>2006-09-12 22:05:48 +0000
commit47dd066dfec8ab73f7b1886920e153402baa4597 (patch)
tree01331b69b773f6076c10837085e7eb6e39a99219 /runtime/perf.h
parent7f0e10b1a9623425f4600658e0358d5c607abba6 (diff)
downloadsystemtap-steved-47dd066dfec8ab73f7b1886920e153402baa4597.tar.gz
systemtap-steved-47dd066dfec8ab73f7b1886920e153402baa4597.tar.xz
systemtap-steved-47dd066dfec8ab73f7b1886920e153402baa4597.zip
Systemtap perfmon support to access the processors perfmon hardware.
Diffstat (limited to 'runtime/perf.h')
-rw-r--r--runtime/perf.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/runtime/perf.h b/runtime/perf.h
new file mode 100644
index 00000000..e3212228
--- /dev/null
+++ b/runtime/perf.h
@@ -0,0 +1,27 @@
+/* -*- linux-c -*-
+ * Perf Header File
+ * Copyright (C) 2006 Red Hat Inc.
+ *
+ * This file is part of systemtap, and is free software. You can
+ * redistribute it and/or modify it under the terms of the GNU General
+ * Public License (GPL); either version 2, or (at your option) any
+ * later version.
+ */
+
+#ifndef _PERF_H_
+#define _PERF_H_
+
+/** @file perf.h
+ * @brief Header file for performance monitoring hardware support
+ */
+
+int _stp_perfmon_setup(void **desc,
+ struct pfarg_ctx *context,
+ struct pfarg_pmc pmc[], int pmc_count,
+ struct pfarg_pmd pmd[], int pmd_count);
+
+int _stp_perfmon_shutdown(void *desc);
+
+int64_t _stp_perfmon_read(void *desc, int counter);
+
+#endif /* _PERF_H_ */