CVS commit: src/sys/dev/tprof

2023-04-11 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Tue Apr 11 10:07:12 UTC 2023 Modified Files: src/sys/dev/tprof: tprof.c tprof_armv7.c tprof_armv8.c tprof_types.h tprof_x86_amd.c tprof_x86_intel.c Log Message: KNF. No functional change. To generate a diff of this

CVS commit: src/sys/dev/tprof

2023-04-11 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Tue Apr 11 10:07:12 UTC 2023 Modified Files: src/sys/dev/tprof: tprof.c tprof_armv7.c tprof_armv8.c tprof_types.h tprof_x86_amd.c tprof_x86_intel.c Log Message: KNF. No functional change. To generate a diff of this

CVS commit: src/sys/dev/tprof

2023-04-11 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Tue Apr 11 09:53:28 UTC 2023 Modified Files: src/sys/dev/tprof: tprof_x86_intel.c Log Message: Test cpuid_level in tprof_intel_ncounters(). This function is called before tprof_intel_ident(). To generate a diff of this commit:

CVS commit: src/sys/dev/tprof

2023-04-11 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Tue Apr 11 09:53:28 UTC 2023 Modified Files: src/sys/dev/tprof: tprof_x86_intel.c Log Message: Test cpuid_level in tprof_intel_ncounters(). This function is called before tprof_intel_ident(). To generate a diff of this commit:

CVS commit: src/sys/dev/tprof

2023-04-10 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Tue Apr 11 02:47:01 UTC 2023 Modified Files: src/sys/dev/tprof: tprof_x86_intel.c Log Message: Obtain the number of general counters from CPUID 0xa. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/dev/tprof/

CVS commit: src/sys/dev/tprof

2023-04-10 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Tue Apr 11 02:47:01 UTC 2023 Modified Files: src/sys/dev/tprof: tprof_x86_intel.c Log Message: Obtain the number of general counters from CPUID 0xa. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/dev/tprof/

CVS commit: src/sys/dev/tprof

2022-12-21 Thread Ryo Shimizu
Module Name:src Committed By: ryo Date: Thu Dec 22 06:59:33 UTC 2022 Modified Files: src/sys/dev/tprof: tprof_armv7.c tprof_armv8.c Log Message: Even if an overflow interrupt is occured for a counter outside tprof management, the bit of onverflow status register must be cl

CVS commit: src/sys/dev/tprof

2022-12-21 Thread Ryo Shimizu
Module Name:src Committed By: ryo Date: Thu Dec 22 06:59:33 UTC 2022 Modified Files: src/sys/dev/tprof: tprof_armv7.c tprof_armv8.c Log Message: Even if an overflow interrupt is occured for a counter outside tprof management, the bit of onverflow status register must be cl

CVS commit: src/sys/dev/tprof

2022-12-16 Thread Ryo Shimizu
Module Name:src Committed By: ryo Date: Fri Dec 16 17:38:56 UTC 2022 Modified Files: src/sys/dev/tprof: tprof.c Log Message: tprof_lock is not a spin mutex. use mutex_{enter,exit}(). oops To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/sys/dev/tprof/tpr

CVS commit: src/sys/dev/tprof

2022-12-16 Thread Ryo Shimizu
Module Name:src Committed By: ryo Date: Fri Dec 16 17:38:56 UTC 2022 Modified Files: src/sys/dev/tprof: tprof.c Log Message: tprof_lock is not a spin mutex. use mutex_{enter,exit}(). oops To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/sys/dev/tprof/tpr

CVS commit: src/sys/dev/tprof

2022-12-15 Thread Ryo Shimizu
Module Name:src Committed By: ryo Date: Fri Dec 16 07:59:42 UTC 2022 Modified Files: src/sys/dev/tprof: tprof.c Log Message: - Add support select(2)/poll(2) on /dev/tprof. - Changed sampling buffer switching frequency (which is the frequency of tprof_worker() calls and

CVS commit: src/sys/dev/tprof

2022-12-15 Thread Ryo Shimizu
Module Name:src Committed By: ryo Date: Fri Dec 16 07:59:42 UTC 2022 Modified Files: src/sys/dev/tprof: tprof.c Log Message: - Add support select(2)/poll(2) on /dev/tprof. - Changed sampling buffer switching frequency (which is the frequency of tprof_worker() calls and

CVS commit: src/sys/dev/tprof

2022-12-10 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Sun Dec 11 01:36:49 UTC 2022 Modified Files: src/sys/dev/tprof: tprof.c Log Message: make sure error is initialized before we return it. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/sys/dev/tprof/tprof.c Pleas

CVS commit: src/sys/dev/tprof

2022-12-10 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Sun Dec 11 01:36:49 UTC 2022 Modified Files: src/sys/dev/tprof: tprof.c Log Message: make sure error is initialized before we return it. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/sys/dev/tprof/tprof.c Pleas

CVS commit: src/sys/dev/tprof

2022-11-30 Thread Ryo Shimizu
Module Name:src Committed By: ryo Date: Thu Dec 1 00:29:51 UTC 2022 Modified Files: src/sys/dev/tprof: tprof_armv7.c Log Message: tprof_armv7 initializes on each CPUs, like tprof_armv8. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/dev/tprof/tprof_

CVS commit: src/sys/dev/tprof

2022-11-30 Thread Ryo Shimizu
Module Name:src Committed By: ryo Date: Thu Dec 1 00:29:51 UTC 2022 Modified Files: src/sys/dev/tprof: tprof_armv7.c Log Message: tprof_armv7 initializes on each CPUs, like tprof_armv8. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/dev/tprof/tprof_

CVS commit: src/sys/dev/tprof

2022-11-30 Thread Ryo Shimizu
Module Name:src Committed By: ryo Date: Thu Dec 1 00:27:59 UTC 2022 Modified Files: src/sys/dev/tprof: tprof.c Log Message: don't call kpreempt_{disable,enable}() from an interrupt handler. Fixed a problem in which the system would freeze if a high load (e.g., build.sh

CVS commit: src/sys/dev/tprof

2022-11-30 Thread Ryo Shimizu
Module Name:src Committed By: ryo Date: Thu Dec 1 00:27:59 UTC 2022 Modified Files: src/sys/dev/tprof: tprof.c Log Message: don't call kpreempt_{disable,enable}() from an interrupt handler. Fixed a problem in which the system would freeze if a high load (e.g., build.sh

Re: CVS commit: src/sys/dev/tprof

2022-11-10 Thread Ryo Shimizu
>I think this is a bug in your device tree because the KASSERT was >intentional: > > - In the ACPI case, we probe for CPU PMU support before calling >armv8_pmu_init. > - In the FDT case, the PMU attaches to a node described in the device >tree. > >So if you hit this KASSERT, AFAICT it

CVS commit: src/sys/dev/tprof

2022-11-09 Thread Ryo Shimizu
Module Name:src Committed By: ryo Date: Thu Nov 10 07:54:20 UTC 2022 Modified Files: src/sys/dev/tprof: tprof_armv8.c Log Message: revert my previous commit. since armv8_pmu_init is only called when it is reliably worked by ACPI or fdt, there is no need for dynamic checks

CVS commit: src/sys/dev/tprof

2022-11-09 Thread Ryo Shimizu
Module Name:src Committed By: ryo Date: Thu Nov 10 07:54:20 UTC 2022 Modified Files: src/sys/dev/tprof: tprof_armv8.c Log Message: revert my previous commit. since armv8_pmu_init is only called when it is reliably worked by ACPI or fdt, there is no need for dynamic checks

Re: CVS commit: src/sys/dev/tprof

2022-11-09 Thread Jared McNeill
I think this is a bug in your device tree because the KASSERT was intentional: - In the ACPI case, we probe for CPU PMU support before calling armv8_pmu_init. - In the FDT case, the PMU attaches to a node described in the device tree. So if you hit this KASSERT, AFAICT it means your dev

CVS commit: src/sys/dev/tprof

2022-11-09 Thread Ryo Shimizu
Module Name:src Committed By: ryo Date: Wed Nov 9 19:06:46 UTC 2022 Modified Files: src/sys/dev/tprof: tprof_armv8.c Log Message: If the hardware does not support PMU, return an error instead of KASSERT. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/

CVS commit: src/sys/dev/tprof

2022-11-09 Thread Ryo Shimizu
Module Name:src Committed By: ryo Date: Wed Nov 9 19:06:46 UTC 2022 Modified Files: src/sys/dev/tprof: tprof_armv8.c Log Message: If the hardware does not support PMU, return an error instead of KASSERT. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/

CVS commit: src/sys/dev/tprof

2022-11-01 Thread Jared D. McNeill
Module Name:src Committed By: jmcneill Date: Tue Nov 1 11:03:01 UTC 2022 Modified Files: src/sys/dev/tprof: tprof_armv7.c Log Message: Add support for Cortex-A9. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/dev/tprof/tprof_armv7.c Please note tha

CVS commit: src/sys/dev/tprof

2022-11-01 Thread Jared D. McNeill
Module Name:src Committed By: jmcneill Date: Tue Nov 1 11:03:01 UTC 2022 Modified Files: src/sys/dev/tprof: tprof_armv7.c Log Message: Add support for Cortex-A9. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/dev/tprof/tprof_armv7.c Please note tha

CVS commit: src/sys/dev/tprof

2022-05-26 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Thu May 26 13:02:04 UTC 2022 Modified Files: src/sys/dev/tprof: tprof_x86_intel.c Log Message: Use CPUID_PERF_* macros defined in specialreg.h. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 s

CVS commit: src/sys/dev/tprof

2022-05-26 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Thu May 26 13:02:04 UTC 2022 Modified Files: src/sys/dev/tprof: tprof_x86_intel.c Log Message: Use CPUID_PERF_* macros defined in specialreg.h. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 s

CVS commit: src/sys/dev/tprof

2021-12-03 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Fri Dec 3 10:54:19 UTC 2021 Modified Files: src/sys/dev/tprof: tprof_armv8.c Log Message: fix the typo that martin spotted. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/dev/tprof/tprof_armv8.c Please no

CVS commit: src/sys/dev/tprof

2021-12-03 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Fri Dec 3 10:54:19 UTC 2021 Modified Files: src/sys/dev/tprof: tprof_armv8.c Log Message: fix the typo that martin spotted. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/dev/tprof/tprof_armv8.c Please no

CVS commit: src/sys/dev/tprof

2021-12-03 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Fri Dec 3 08:02:52 UTC 2021 Modified Files: src/sys/dev/tprof: tprof_armv8.c Log Message: Add a comment and simplify the code ever so slightly. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/sys/dev/tprof/tpro

CVS commit: src/sys/dev/tprof

2021-12-03 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Fri Dec 3 08:02:52 UTC 2021 Modified Files: src/sys/dev/tprof: tprof_armv8.c Log Message: Add a comment and simplify the code ever so slightly. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/sys/dev/tprof/tpro

CVS commit: src/sys/dev/tprof

2021-12-03 Thread Nick Hudson
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.

CVS commit: src/sys/dev/tprof

2021-12-03 Thread Nick Hudson
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.

Re: CVS commit: src/sys/dev/tprof

2021-11-26 Thread Nick Hudson
On 26/11/2021 13:24, Christos Zoulas wrote: Module Name:src Committed By: christos Date: Fri Nov 26 13:24:28 UTC 2021 Modified Files: src/sys/dev/tprof: tprof_armv7.c tprof_armv8.c Log Message: declare xc Thanks! Nick

CVS commit: src/sys/dev/tprof

2021-11-26 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Nov 26 13:24:28 UTC 2021 Modified Files: src/sys/dev/tprof: tprof_armv7.c tprof_armv8.c Log Message: declare xc To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/dev/tprof/tprof_armv7.c cvs rdiff -u -r1.9

CVS commit: src/sys/dev/tprof

2021-11-26 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Nov 26 13:24:28 UTC 2021 Modified Files: src/sys/dev/tprof: tprof_armv7.c tprof_armv8.c Log Message: declare xc To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/dev/tprof/tprof_armv7.c cvs rdiff -u -r1.9

CVS commit: src/sys/dev/tprof

2021-11-01 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Mon Nov 1 17:03:53 UTC 2021 Modified Files: src/sys/dev/tprof: tprof.c tprof_armv8.c Log Message: Trailing whitespace To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/dev/tprof/tprof.c cvs rdiff -u -r1.7 -r1

CVS commit: src/sys/dev/tprof

2021-11-01 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Mon Nov 1 17:03:53 UTC 2021 Modified Files: src/sys/dev/tprof: tprof.c tprof_armv8.c Log Message: Trailing whitespace To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/dev/tprof/tprof.c cvs rdiff -u -r1.7 -r1

CVS commit: src/sys/dev/tprof

2021-09-26 Thread Jared D. McNeill
Module Name:src Committed By: jmcneill Date: Sun Sep 26 13:37:36 UTC 2021 Modified Files: src/sys/dev/tprof: tprof_armv8.c Log Message: Make sure setup happens on all CPUs. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/dev/tprof/tprof_armv8.c Pleas

CVS commit: src/sys/dev/tprof

2021-09-26 Thread Jared D. McNeill
Module Name:src Committed By: jmcneill Date: Sun Sep 26 13:37:36 UTC 2021 Modified Files: src/sys/dev/tprof: tprof_armv8.c Log Message: Make sure setup happens on all CPUs. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/dev/tprof/tprof_armv8.c Pleas

CVS commit: src/sys/dev/tprof

2019-10-11 Thread Jared D. McNeill
Module Name:src Committed By: jmcneill Date: Fri Oct 11 18:04:52 UTC 2019 Modified Files: src/sys/dev/tprof: tprof_x86_amd.c Log Message: Match Family 15h To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/dev/tprof/tprof_x86_amd.c Please note that diff

CVS commit: src/sys/dev/tprof

2019-10-11 Thread Jared D. McNeill
Module Name:src Committed By: jmcneill Date: Fri Oct 11 18:04:52 UTC 2019 Modified Files: src/sys/dev/tprof: tprof_x86_amd.c Log Message: Match Family 15h To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/dev/tprof/tprof_x86_amd.c Please note that diff

CVS commit: src/sys/dev/tprof

2019-06-14 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Fri Jun 14 11:50:35 UTC 2019 Modified Files: src/sys/dev/tprof: tprof_x86_amd.c tprof_x86_intel.c Log Message: Fix compile error (s/LAPIC_PCINT/LAPIC_LVT_PCINT/) To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/

CVS commit: src/sys/dev/tprof

2019-06-14 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Fri Jun 14 11:50:35 UTC 2019 Modified Files: src/sys/dev/tprof: tprof_x86_amd.c tprof_x86_intel.c Log Message: Fix compile error (s/LAPIC_PCINT/LAPIC_LVT_PCINT/) To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/