Skip to content

Commit a004341

Browse files
vstinnerweixlu
andauthored
[3.15] gh-152769: Enable perf trampoline on musl (Alpine Linux) (#152774) (#153456)
gh-152769: Enable perf trampoline on musl (Alpine Linux) (#152774) (cherry picked from commit b9e8979) Co-authored-by: Xiaowei Lu <weixlu420302@gmail.com>
1 parent 76c28fc commit a004341

3 files changed

Lines changed: 10 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: 4 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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3873,6 +3873,8 @@ AC_MSG_CHECKING([perf trampoline])
38733873
AS_CASE([$PLATFORM_TRIPLET],
38743874
[x86_64-linux-gnu], [perf_trampoline=yes],
38753875
[aarch64-linux-gnu], [perf_trampoline=yes],
3876+
[x86_64-linux-gnu], [perf_trampoline=yes],
3877+
[x86_64-linux-musl], [perf_trampoline=yes],
38763878
[darwin], [AS_CASE([$MACOSX_DEPLOYMENT_TARGET],
38773879
[[10.[0-9]|10.1[0-1]]], [perf_trampoline=no],
38783880
[perf_trampoline=yes]

0 commit comments

Comments
 (0)