Explore related resources

Find more information about the topics in this Learning Path:

Give feedback

How would you rate this Learning Path?

Review frequently asked questions

AI-assisted

These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.

Close
?
How do I know the system counter example produced a valid measurement?
The program should report a positive difference in system counter ticks between the two reads that bracket the target function. A zero or negative value usually means the reads are not placed correctly around the region being measured.
Which Arm instructions are used to access system registers for counting?
Use MRS to read a system register and MSR to write a system register. These two instructions are sufficient for the system counter example.
PAPI cannot find its headers or libraries at build or runtime. What should I check?
Set PAPI_DIR to the location where PAPI is installed. Depending on your system, you might also need LD_LIBRARY_PATH to include $PAPI_DIR/lib.
What should I do before using PAPI or `perf_event_open` to access counters from user space?
Run the sudo command in the steps that writes the recommended value to the file under /proc/sys/kernel. This enables user-space access to the counters for the examples.
When using `perf_event_open`, which example should I use to read multiple counters at once?
Use the group example to read several counters together without multiplexing. The single-counter example configures just one event, and perf_event_open in this Learning Path does not support multiplexing.

Share

Tell others about this Learning Path.

Return to Servers and Cloud Computing