[PATCH 2/2] perf tsc: Replace the compile-time TSC support check with a weak hook

Chen Pei cp0613 at linux.alibaba.com
Mon Sep 28 20:40:11 PDT 2026


Hi Leo,

Thanks a lot for the review.

> Just a bit on refactoring. You could refer to the implementation of
> PERF_HAVE_JITDUMP in arch Makefile and "CFLAGS += -DHAVE_JITDUMP" and
> do similiar thing for rdtsc.
>
> Seems to me, we can just use build system for configurations.

Makes sense, I'll change it that way in v2, thanks for pointing at the
existing pattern.

Best regards,
Pei



More information about the linux-arm-kernel mailing list