Skip to content

bpf: support for kernel_helper attributes #56964

Open
@jameshilliard

Description

@jameshilliard

GCC currently uses kernel_helper attributes to implement bpf helper functions.

These have the advantage of working at any optimization level as well unlike llvm style helpers.

It would be helpful to have support for these kernel_helper attributes in llvm as they should be more reliable and allow for unified llvm/GCC bpf helper definitions.

See details:
https://lore.kernel.org/bpf/87v8s260j1.fsf@oracle.com/
https://github.com/gcc-mirror/gcc/blob/releases/gcc-12.1.0/gcc/config/bpf/bpf.cc#L838-L846

Cc: @jemarch

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions