Skip to content

Introduce ProgramMut::assoc_struct_ops() method#1362

Merged
d-e-s-o merged 1 commit intolibbpf:masterfrom
d-e-s-o:topic/assoc-struct-ops
Apr 6, 2026
Merged

Introduce ProgramMut::assoc_struct_ops() method#1362
d-e-s-o merged 1 commit intolibbpf:masterfrom
d-e-s-o:topic/assoc-struct-ops

Conversation

@d-e-s-o
Copy link
Copy Markdown
Collaborator

@d-e-s-o d-e-s-o commented Mar 18, 2026

Introduce the ProgramMut::assoc_struct_ops() method for associating non-struct_ops programs with struct_ops maps. This call wraps libbpf's bpf_program__assoc_struct_ops().

@htejun
Copy link
Copy Markdown

htejun commented Mar 31, 2026

Tested on https://github.com/sched-ext/scx/tree/htejun/sub-sched-rust. It seems to work fine. Thanks.

Introduce the ProgramMut::assoc_struct_ops() method for associating
non-struct_ops programs with struct_ops maps. This call wraps libbpf's
bpf_program__assoc_struct_ops().

Signed-off-by: Daniel Müller <deso@posteo.net>
@d-e-s-o d-e-s-o force-pushed the topic/assoc-struct-ops branch from 098440e to c46a2c7 Compare April 6, 2026 16:26
@d-e-s-o d-e-s-o enabled auto-merge (rebase) April 6, 2026 16:26
@d-e-s-o d-e-s-o merged commit ba1a0a6 into libbpf:master Apr 6, 2026
18 checks passed
@d-e-s-o d-e-s-o deleted the topic/assoc-struct-ops branch April 6, 2026 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants