Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amd64/include make pmc compile with amd64
details: https://anonhg.NetBSD.org/src/rev/d8f7b4c75d05
branches: trunk
changeset: 327912:d8f7b4c75d05
user: christos <christos%NetBSD.org@localhost>
date: Thu Mar 20 20:45:32 2014 +0000
description:
make pmc compile with amd64
diffstat:
sys/arch/amd64/include/pmc.h | 30 +++++++++++++++++++++++++++++-
sys/arch/amd64/include/types.h | 4 +++-
2 files changed, 32 insertions(+), 2 deletions(-)
diffs (66 lines):
diff -r 015d2c21c2de -r d8f7b4c75d05 sys/arch/amd64/include/pmc.h
--- a/sys/arch/amd64/include/pmc.h Thu Mar 20 20:44:42 2014 +0000
+++ b/sys/arch/amd64/include/pmc.h Thu Mar 20 20:45:32 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmc.h,v 1.1 2003/04/26 18:39:46 fvdl Exp $ */
+/* $NetBSD: pmc.h,v 1.2 2014/03/20 20:45:32 christos Exp $ */
/*-
* Copyright (c) 2000 Zembu Labs, Inc.
@@ -34,10 +34,38 @@
*/
#ifdef _KERNEL
+/*
+ * LEGACY PMC support
+ */
+struct x86_64_pmc_info_args;
int pmc_info(struct proc *, struct x86_64_pmc_info_args *,
register_t *);
+struct x86_64_pmc_startstop_args;
int pmc_startstop(struct proc *, struct x86_64_pmc_startstop_args *,
register_t *);
+struct x86_64_pmc_read_args;
int pmc_read(struct proc *, struct x86_64_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
diff -r 015d2c21c2de -r d8f7b4c75d05 sys/arch/amd64/include/types.h
--- a/sys/arch/amd64/include/types.h Thu Mar 20 20:44:42 2014 +0000
+++ b/sys/arch/amd64/include/types.h Thu Mar 20 20:45:32 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.43 2013/12/01 01:05:16 christos Exp $ */
+/* $NetBSD: types.h,v 1.44 2014/03/20 20:45:32 christos Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -60,6 +60,8 @@
#define PRIuVSIZE "lu"
#endif
+typedef int pmc_evid_t;
+typedef __uint64_t pmc_ctr_t;
typedef long int register_t;
typedef int register32_t;
#define PRIxREGISTER "lx"
Home |
Main Index |
Thread Index |
Old Index