Skip to content

Commit b87ffb1

Browse files
committed
gh-152769: Enable perf trampoline on Alpine
1 parent fc866dc commit b87ffb1

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
@@ -3878,8 +3878,12 @@ PERF_TRAMPOLINE_OBJ=""
38783878
AS_CASE([$PLATFORM_TRIPLET],
38793879
[x86_64-linux-gnu], [perf_trampoline=yes
38803880
PERF_TRAMPOLINE_OBJ=Python/asm_trampoline_x86_64.o],
3881+
[x86_64-linux-musl], [perf_trampoline=yes
3882+
PERF_TRAMPOLINE_OBJ=Python/asm_trampoline_x86_64.o],
38813883
[aarch64-linux-gnu], [perf_trampoline=yes
38823884
PERF_TRAMPOLINE_OBJ=Python/asm_trampoline_aarch64.o],
3885+
[aarch64-linux-musl], [perf_trampoline=yes
3886+
PERF_TRAMPOLINE_OBJ=Python/asm_trampoline_aarch64.o],
38833887
[darwin], [AS_CASE([$MACOSX_DEPLOYMENT_TARGET],
38843888
[[10.[0-9]|10.1[0-1]]], [perf_trampoline=no],
38853889
[perf_trampoline=yes

0 commit comments

Comments
 (0)