Test Summary Report ------------------- t/Sys-CPU.t (Wstat: 0 Tests: 4 Failed: 2) Failed tests: 3-4 Files=1, Tests=4, 1 wallclock secs ( 0.17 usr 0.00 sys + 0.07 cusr 0.02 csys = 0.26 CPU) Result: FAIL Failed 1/1 test programs. 2/4 subtests failed. I was told it just reads /proc/cpuinfo, which then probably fails because of the unusual layout of that file on sparc: cpu : UltraSparc T2 (Niagara2) fpu : UltraSparc T2 integrated FPU pmu : niagara2 prom : OBP 4.33.6 2012/03/14 08:07 type : sun4v ncpus probed : 64 ncpus active : 64 D$ parity tl1 : 0 I$ parity tl1 : 0 cpucaps : flush,stbar,swap,muldiv,v9,blkinit,n2,mul32,div32,v8plus,popc,vis,vis2,ASIBlkInit Cpu0ClkTck : 000000005458c3a0 Cpu1ClkTck : 000000005458c3a0 […] Cpu63ClkTck : 000000005458c3a0 MMU Type : Hypervisor (sun4v) MMU PGSZs : 8K,64K,4MB,256MB State: CPU0: online CPU1: online
The Cpu0ClkTck number is hex and is the frequency (in Hz) of the CPU. 0x000000005458c3a0 == 0x000000005458c3a0 == 1.4~ GHz. Adding upstream bug link as well.
There's a patch upstream for ARM. I noticed Alpha is broken as well.
The Cpu0Bogo field mentioned in that upstream bug does no longer exist.
A better way on sparc is probably to look into /sys/devices/system/cpu/cpu0/clock_tick. This is not portable e.g. to amd64, but since a special case is needed on sparc anyway this can make implementation easier.
This package has fallen off CPAN :/ Sys::CPU 0.52 M/MK/MKODERER/Sys-CPU-0.52.tar.gz Sys::CPU 0.53 M/MZ/MZSANFORD/Sys-CPU-0.53.tar.gz Sys::CPU 0.54 M/MZ/MZSANFORD/Sys-CPU-0.54.tar.gz Sys::CPU 0.61 M/MZ/MZSANFORD/Sys-CPU-0.61.tar.gz Sys::CPU undef P/PA/PABLROD/Chart-Plotly-0.014.tar.gz .... https://metacpan.org/permission/author/MZSANFORD Sys::CPU MKODERER MZSANFORD https://metacpan.org/author/MKODERER https://metacpan.org/author/MZSANFORD
sparc still hasn't been stabled, so we should remember to do that afterwards, or drop stable (or even all) keywords for it.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8015c9beef401ee3d3f4feb640eb371d6c0c9b5 commit c8015c9beef401ee3d3f4feb640eb371d6c0c9b5 Author: Andreas K. Hüttel <dilfridge@gentoo.org> AuthorDate: 2022-03-19 18:12:35 +0000 Commit: Andreas K. Hüttel <dilfridge@gentoo.org> CommitDate: 2022-03-19 18:13:10 +0000 dev-perl/Sys-CPU: Stable 0.610.0-r2 for sparc No regressions. It works at least as well as current stable. Closes: https://bugs.gentoo.org/832311 Bug: https://bugs.gentoo.org/663424 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org> dev-perl/Sys-CPU/Sys-CPU-0.610.0-r2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)