Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/include Stubs for new pmc(9) interface.
details: https://anonhg.NetBSD.org/src/rev/c91adcab9b2e
branches: trunk
changeset: 534960:c91adcab9b2e
user: briggs <briggs%NetBSD.org@localhost>
date: Wed Aug 07 05:58:01 2002 +0000
description:
Stubs for new pmc(9) interface.
diffstat:
sys/arch/i386/include/pmc.h | 29 +++++++++++++++++++++++++++--
1 files changed, 27 insertions(+), 2 deletions(-)
diffs (48 lines):
diff -r 895fa5fcec2a -r c91adcab9b2e sys/arch/i386/include/pmc.h
--- a/sys/arch/i386/include/pmc.h Wed Aug 07 05:46:13 2002 +0000
+++ b/sys/arch/i386/include/pmc.h Wed Aug 07 05:58:01 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmc.h,v 1.2 2002/08/07 05:38:47 briggs Exp $ */
+/* $NetBSD: pmc.h,v 1.3 2002/08/07 05:58:01 briggs Exp $ */
/*-
* Copyright (c) 2000 Zembu Labs, Inc.
@@ -33,7 +33,10 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef _KERNEL
+#if defined(_KERNEL)
+/*
+ * LEGACY PMC support
+ */
struct i386_pmc_info_args;
struct i386_pmc_startstop_args;
struct i386_pmc_read_args;
@@ -43,4 +46,26 @@
register_t *);
int pmc_read(struct proc *, struct i386_pmc_read_args *,
register_t *);
+/* END LEGACY PMC SUPPORT */
+
+#define pmc_md_fork(p1,p2)
+#define pmc_get_num_counters() (0)
+#define pmc_get_counter_type(c) (0)
+#define pmc_save_context(p)
+#define pmc_restore_context(p)
+#define pmc_enable_counter(p,c)
+#define pmc_disable_counter(p,c)
+#define pmc_accumulate(p1,p2)
+#define pmc_process_exit(p1)
+#define pmc_counter_isconfigured(p,c) (0)
+#define pmc_counter_isrunning(p,c) (0)
+#define pmc_start_profiling(c,f) (0)
+#define pmc_stop_profiling(c) (0)
+#define pmc_alloc_kernel_counter(c,f) (0)
+#define pmc_free_kernel_counter(c) (0)
+#define pmc_configure_counter(p,c,f) (0)
+#define pmc_get_counter_value(p,c,f,pv) (0)
+
+#define PMC_ENABLED(p) (0)
+
#endif
Home |
Main Index |
Thread Index |
Old Index