summaryrefslogtreecommitdiffstats
path: root/runtime/perf.h
diff options
context:
space:
mode:
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_ */