mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* perf record -e branch-misses ls > /dev/null
@ 2023-03-08  7:56 wangxiaolei
  2023-03-23 17:51 ` Mark Rutland
  0 siblings, 1 reply; 2+ messages in thread
From: wangxiaolei @ 2023-03-08  7:56 UTC (permalink / raw)
  To: will, mark.rutland, peterz, mingo, acme, alexander.shishkin,
	jolsa, namhyung, irogers, linux
  Cc: linux-arm-kernel, linux-perf-users, linux-kernel

hi

When I use the perf tool on nxp-imx6sx, the CPU is armv7 cortex-A9 to 
test, I execute the perf record -e branch-misses ls > /dev/null command, 
but the perf report result is indeed:
perf report
Error:
The perf.data data has no samples!
# To display the perf.data header info, please use 
--header/--header-only options.

root@nxp-imx6:~# perf list hardware

List of pre-defined events (to be used in -e):

    branch-instructions OR branches [Hardware event]
    branch-misses [Hardware event]
    bus-cycles [Hardware event]
    cache-misses [Hardware event]
    cache-references [Hardware event]
    cpu-cycles OR cycles [Hardware event]
    instructions [Hardware event]

And not only this one hardware event, only cycles are working normally 
in the following supported hardware time, other hardware events are not 
interrupted and reported, and the value in the read PMXEVCNTR register 
is always -1, and the PMCR register E, bit[0 ] it will be written to 0 
before reading the PMXEVCNTR register. I don’t know if the value in the 
PMXEVCNTR register is always -1 for this reason. Does anyone have any 
good suggestions for debugging this problem?


thanks

xiaolei


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-23 17:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-08  7:56 perf record -e branch-misses ls > /dev/null wangxiaolei
2023-03-23 17:51 ` Mark Rutland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®