python / python/cpython

support perf trampoline on -linux-musl

未關閉
#121,608 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

build type-feature
主要語言
Python
星號
77.2k
分支
36k
PR 合併指標
PR 指標待擷取

描述

Feature or enhancement

Proposal:

currently the autotools does the following check

AS_CASE([$PLATFORM_TRIPLET],
  [x86_64-linux-gnu], [perf_trampoline=yes],
  [aarch64-linux-gnu], [perf_trampoline=yes],
  [perf_trampoline=no]
)

simply making it

AS_CASE([$PLATFORM_TRIPLET],
  [x86_64-linux-gnu], [perf_trampoline=yes],
  [x86_64-linux-musl], [perf_trampoline=yes],
  [aarch64-linux-gnu], [perf_trampoline=yes],
  [aarch64-linux-musl], [perf_trampoline=yes],
  [perf_trampoline=no]
)

makes the trampoline build on musl libc systems too, and it seems to work fine: https://img.ayaya.dev/yT9j39Lfeb8u

it doesn't seem like the assembly actually depends on libc support. maybe it should check -linux-* instead?

in any case just adding the above triples seems to work ok, unless i'm missing something, so it would be nice if it was added :)

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs
  • gh-122370
  • gh-153424
  • gh-153457

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

找出 issue 中描述的使用 AS_CASE([$PLATFORM_TRIPLET]) 的 autotools 檢查,然後先檢視連結的 PR gh-122370、gh-153424 和 gh-153457。確認支援的 musl 三元組,並在受影響的 Linux-musl 平台上驗證 trampoline 建置;完成的標準是啟用 perf_trampoline 後建置成功。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
build-system, performance
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。