You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The R5900 performance counter hardware provides the means for gathering statistical information about the internal events of the CPU and the pipeline during program execution. The statistics gathered during program execution aid in tuning the performance of hardware and software systems based on the processor.
The performance counter hardware is pretty easy to set up, actually. I've written bare-metal assembly programs to do it. It'd have to be hooked up to perf though, I think.
Wiring the performance counter into the perf command sounds like an excellent idea!
A note of caution though. I have noticed that perf consumes a significant amount of memory, at least in its default configuration, and so if possible parts of it may need to be disabled for it to fit within the limits of 32 MiB of total system RAM. That in addition to the actual thing that one wants to measure, of course. 😁
I have put some effort into making the R5900 Linux kernel port more modular to reduce its memory footprint to a minimum, if one so desires. The BIOS code has been removed as it is no longer used. Also, as described in #10, the text console mode does not need to use any system RAM for its frame buffer.
The Linux kernel has a rich set of instrumentation tools too. eBPF seems to be the latest craze for kernel analysis and it even has a MIPS JIT compiler.
The R5900 performance counter hardware provides the means for gathering statistical information about the internal events of the CPU and the pipeline during program execution. The statistics gathered during program execution aid in tuning the performance of hardware and software systems based on the processor.
See section 9 in the TX79 manual.
See also #6.
The text was updated successfully, but these errors were encountered: