Comment 0 for bug 2018558

Revision history for this message
WangYang (yang-wang-666666) wrote : T-HEAD C906 PMU on Allwinner Nezha Board installed Ubuntu Server preinstalled image 23.04 do not work,

when testing hackbench by using perf tool based on hardware performance events(cpu cycles) on Allwinner Nezha Board installed Ubuntu Server preinstalled image 23.04 , i found that there was no samples.The results are below.

ubuntu@ubuntu:~$ sudo perf record -e cpu-cycles -F 1499 -g ./hackbench
sudo perf report --no-children -G > riscv hackbench.txtRunning in process mode with 10 groups using 40 file descriptors each (= 400 tasksEach sender will pass 100 messages of 100 bytesTime: 17.347
perf record: Woken up 1 times to write data perf record: Captured and wrote 0.043 MB perf.data Error:
The perf.data data has no samples!

The reason why there was no samples is that there is still OpenSBI 1.1 on Ubuntu Server preinstalled image 23.04. you can refer to the link : https://patchwork<email address hidden>/

can you help to fix this in the newest ubuntu images for RISC-V architecture.

yours sincerely!