KEMBAR78
support tsc mode on aarch64 using cntvct_el0 by arielb1 · Pull Request #1142 · async-profiler/async-profiler · GitHub
Skip to content

Conversation

arielb1
Copy link
Collaborator

@arielb1 arielb1 commented Feb 18, 2025

Description

This PR makes tsc mode work on aarch64 using cntvct_el0. As far as I can tell, e.g. from the quanta crate, the cntvct timestamp is invariant on all aarch64 machines.

It's supposedly not available on iOS but then AFAICT async-profiler doesn't run on iOS either.

Related issues

Fixes #1139

Motivation and context

jfrs with a tsc allow for easier alignment between traces from the application and samples. aarch64 (ARM 64-bit) architecture is getting more and more popular, and it's useful to allow tsc-based profiling on aarch64 as well.

How has this been tested?

Tested manually on a Graviton 2 machine.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@apangin apangin merged commit f71c31a into async-profiler:master Feb 18, 2025
10 checks passed
krk pushed a commit to krk/async-profiler that referenced this pull request Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should support timestamp counter on aarch64 as well

2 participants