https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268944
Bug ID: 268944
Summary: pmcstat -p on arm64 spews spaces to stdout
Product: Base System
Version: 13.1-STABLE
Hardware: arm64
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: [email protected]
Reporter: [email protected]
On an Ampere eMAG system pmcstat spews millions of spaces to stdout even when
it traces a short-running program.
$ pmcstat -p instructions ls > /dev/null 2> /tmp/pmc.out
$ od -x /tmp/pmc.out
0000000 2023 2020 2020 2020 2020 2020 2020 2020
0000020 2020 2020 2020 2020 2020 2020 2020 2020
*
1073037460 2020 2020 7020 692f 736e 7274 6375 6974
1073037500 6e6f 2073 200a 2020 2020 2020 2020 2020
1073037520 2020 2020 2020 2020 2020 2020 2020 2020
*
2166077200 3420 3830 3236 3731 0a20
2166077212
$ ls -ld /tmp/pmc.out
-rw-r--r-- 1 jfc wheel 299400842 Jan 13 19:09 /tmp/pmc.out
$ uname -a
FreeBSD marmota 13.1-STABLE FreeBSD 13.1-STABLE #44
marmota-n253284-e10da2da2ae9: Tue Dec 13 20:59:21 EST 2022
root@marmota:/usr/obj/usr/src/arm64.aarch64/sys/MARMOTA arm64
My test was in /usr/src and ls produced 33 lines of output. In an empty
directory ls completes before pmcstat can go crazy.
--
You are receiving this mail because:
You are the assignee for the bug.