Module Name: src Committed By: skrll Date: Fri Dec 3 08:00:13 UTC 2021
Modified Files: src/sys/dev/tprof: tprof_armv8.c Log Message: Use the first (not second) event counter as there might only be one available. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/dev/tprof/tprof_armv8.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/tprof/tprof_armv8.c diff -u src/sys/dev/tprof/tprof_armv8.c:1.10 src/sys/dev/tprof/tprof_armv8.c:1.11 --- src/sys/dev/tprof/tprof_armv8.c:1.10 Fri Nov 26 13:24:28 2021 +++ src/sys/dev/tprof/tprof_armv8.c Fri Dec 3 08:00:13 2021 @@ -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 <jmcne...@invisible.ca> @@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: tprof_armv8. #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;