Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/amd64 PERFCTRS -> PMC (not implemented anyway)



details:   https://anonhg.NetBSD.org/src/rev/35a456ad57ec
branches:  trunk
changeset: 821829:35a456ad57ec
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sat Feb 18 14:43:34 2017 +0000

description:
PERFCTRS -> PMC (not implemented anyway)

diffstat:

 sys/arch/amd64/conf/ALL      |   7 +++----
 sys/arch/amd64/include/pmc.h |  29 ++++-------------------------
 2 files changed, 7 insertions(+), 29 deletions(-)

diffs (74 lines):

diff -r 3a009277f645 -r 35a456ad57ec sys/arch/amd64/conf/ALL
--- a/sys/arch/amd64/conf/ALL   Sat Feb 18 14:36:32 2017 +0000
+++ b/sys/arch/amd64/conf/ALL   Sat Feb 18 14:43:34 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: ALL,v 1.50 2017/02/16 08:45:42 knakahara Exp $
+# $NetBSD: ALL,v 1.51 2017/02/18 14:43:34 maxv Exp $
 # From NetBSD: GENERIC,v 1.787 2006/10/01 18:37:54 bouyer Exp
 #
 # ALL machine description file
@@ -17,7 +17,7 @@
 
 options        INCLUDE_CONFIG_FILE     # embed config file in kernel binary
 
-#ident         "ALL-$Revision: 1.50 $"
+#ident         "ALL-$Revision: 1.51 $"
 
 maxusers       64              # estimated number of users
 
@@ -39,8 +39,7 @@
 viac7temp*     at cpu?         # VIA C7 temperature sensor
 vmt0           at cpu0         # VMware Tools
 
-# doesn't work with MP just yet..
-options        PERFCTRS        # performance-monitoring counters support
+options        PMC     # performance-monitoring counters support
 
 options        MULTIBOOT       # Multiboot support (see multiboot(8))
 
diff -r 3a009277f645 -r 35a456ad57ec sys/arch/amd64/include/pmc.h
--- a/sys/arch/amd64/include/pmc.h      Sat Feb 18 14:36:32 2017 +0000
+++ b/sys/arch/amd64/include/pmc.h      Sat Feb 18 14:43:34 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmc.h,v 1.2 2014/03/20 20:45:32 christos Exp $ */
+/*     $NetBSD: pmc.h,v 1.3 2017/02/18 14:43:35 maxv Exp $     */
 
 /*-
  * Copyright (c) 2000 Zembu Labs, Inc.
@@ -39,33 +39,12 @@
  */
 struct x86_64_pmc_info_args;
 int    pmc_info(struct proc *, struct x86_64_pmc_info_args *,
-           register_t *);
+    register_t *);
 struct x86_64_pmc_startstop_args;
 int    pmc_startstop(struct proc *, struct x86_64_pmc_startstop_args *,
-           register_t *);
+    register_t *);
 struct x86_64_pmc_read_args;
 int    pmc_read(struct proc *, struct x86_64_pmc_read_args *,
-           register_t *);
+    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