Skip to content

support perf trampoline on -linux-musl #121608

@nekopsykose

Description

@nekopsykose

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildThe build process and cross-buildtype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions