Skip to content

Commit b9e8979

Browse files
authored
gh-152769: Enable perf trampoline on musl (Alpine Linux) (#152774)
1 parent fac72f1 commit b9e8979

3 files changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Enable the :ref:`perf profiler <perf_profiling>` trampoline on Alpine Linux with the
2+
musl C library on ``x86_64`` and ``aarch64``. The
3+
trampoline is architecture-specific and does not depend on the C library, so
4+
the same assembly trampoline used for glibc is reused for musl.

configure

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3874,8 +3874,12 @@ PERF_TRAMPOLINE_OBJ=""
38743874
AS_CASE([$PLATFORM_TRIPLET],
38753875
[x86_64-linux-gnu], [perf_trampoline=yes
38763876
PERF_TRAMPOLINE_OBJ=Python/asm_trampoline_x86_64.o],
3877+
[x86_64-linux-musl], [perf_trampoline=yes
3878+
PERF_TRAMPOLINE_OBJ=Python/asm_trampoline_x86_64.o],
38773879
[aarch64-linux-gnu], [perf_trampoline=yes
38783880
PERF_TRAMPOLINE_OBJ=Python/asm_trampoline_aarch64.o],
3881+
[aarch64-linux-musl], [perf_trampoline=yes
3882+
PERF_TRAMPOLINE_OBJ=Python/asm_trampoline_aarch64.o],
38793883
[darwin], [AS_CASE([$MACOSX_DEPLOYMENT_TARGET],
38803884
[[10.[0-9]|10.1[0-1]]], [perf_trampoline=no],
38813885
[perf_trampoline=yes

0 commit comments

Comments
 (0)