Remix.run Logo
Sesse__ 4 days ago

> Normally you spin up a tool like vtune or uprof to analyze your benchmark hotspots at the ISA level. No idea about tools like that for ARM.

perf is included with the Linux kernel, and works with a fair amount of architectures (including Arm).

godelski 4 days ago | parent | next [-]

You may still need to install linux-tools to get the perf command.

Sesse__ 4 days ago | parent [-]

It's included with the kernel as distributed by upstream. Your distribution may choose to split out parts of it into other binary packages.

godelski 4 days ago | parent [-]

I'm not disagreeing, I just wanted to add so others might know why they can't just run the command.

duped 4 days ago | parent | prev [-]

perf doesn't give you instruction level profiling, does it? I thought the traces were mostly at the symbol level

Sesse__ 4 days ago | parent [-]

Hit enter on the symbol, and you get instruction-level profiles. Or use perf annotate explicitly. (The profiles are inherently instruction-level, but the default perf report view aggregates them into function-level for ease of viewing.)