From 47dd066dfec8ab73f7b1886920e153402baa4597 Mon Sep 17 00:00:00 2001 From: wcohen Date: Tue, 12 Sep 2006 22:05:48 +0000 Subject: Systemtap perfmon support to access the processors perfmon hardware. --- runtime/perf.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 runtime/perf.h (limited to 'runtime/perf.h') 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_ */ -- cgit