Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/tprof Use the first (not second) event counter as th...



details:   https://anonhg.NetBSD.org/src/rev/dcb8d423b313
branches:  trunk
changeset: 1026609:dcb8d423b313
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Dec 03 08:00:13 2021 +0000

description:
Use the first (not second) event counter as there might only be one
available.

diffstat:

 sys/dev/tprof/tprof_armv8.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 8d80a6008715 -r dcb8d423b313 sys/dev/tprof/tprof_armv8.c
--- a/sys/dev/tprof/tprof_armv8.c       Fri Dec 03 05:28:32 2021 +0000
+++ b/sys/dev/tprof/tprof_armv8.c       Fri Dec 03 08:00:13 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tprof_armv8.c,v 1.10 2021/11/26 13:24:28 christos Exp $ */
+/* $NetBSD: tprof_armv8.c,v 1.11 2021/12/03 08:00:13 skrll Exp $ */
 
 /*-
  * Copyright (c) 2018 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tprof_armv8.c,v 1.10 2021/11/26 13:24:28 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tprof_armv8.c,v 1.11 2021/12/03 08:00:13 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -42,7 +42,7 @@
 #include <dev/tprof/tprof_armv8.h>
 
 static tprof_param_t armv8_pmu_param;
-static const u_int armv8_pmu_counter = 1;
+static const u_int armv8_pmu_counter = 0;
 static uint32_t counter_val;
 static uint32_t counter_reset_val;
 



Home | Main Index | Thread Index | Old Index