Open yorange1 opened 1 month ago
@xiaoxiang781216 what do you suggest?
We are building coresight and perf framework, coresight is here https://github.com/apache/nuttx/pull/11605, perf need time to prepare upstream.
We are building coresight and perf framework, coresight is here #11605, perf need time to prepare upstream.
Thanks for your reply, when will the perf framework be pushed upstream, or is there an open development branch? I am working on the PMU of the RISCV platform, and I want to align it with the perf framework as much as possible.
@zyfeier please take a look.
Is your feature request related to a problem? Please describe.
Currently, Nuttx provides a basic perf support interface, as shown below:
It seems that only time-related events are monitored. Can we support more perf events in Nuttx, just like in Linux, so that we can monitor more hardware performance, such as cache or bpu performance?
Describe the solution you'd like
More perf event support is added in Nuttx, providing an interface or framework so that platforms with PMU can be adapted according to the interface. It would be better to port perf to Nuttx app, so that we can use perf tool to monitor the hardware performance when running the application just like on Linux.
Describe alternatives you've considered
No response
Verification