Skip to content

How to attach more progs that in one obj ? #1743

Answered by florianl
cheng-zhongliang asked this question in Q&A
Discussion options

You must be logged in to vote

bpf_object__for_each_program() seems to be a macro specific to libbpf. This Go package does not provide such an API. As an alternative you can iterate over Programs in a loaded Collection to achieve a similar behavior.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cheng-zhongliang
Comment options

Answer selected by cheng-zhongliang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants