How are bpf_bpf{eb,el}.o
files generated?
#876
Answered
by
ti-mo
hiqsociety
asked this question in
Q&A
-
for example xdp bpf_bpfeb.o <-- how is this file generated? i would like to add libbpf_num_possible_cpus(), how do i do this?
|
Beta Was this translation helpful? Give feedback.
Answered by
ti-mo
Dec 8, 2022
Replies: 2 comments 4 replies
-
The following Line 24 in f17b01b This results in bpf_bpf*.(g)o files in the directory.
Regarding |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
ti-mo
-
i rephrase then...
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following
go:generate
statement invokes bpf2go when runninggo generate
in theexamples/xdp
directory.ebpf/examples/xdp/main.go
Line 24 in f17b01b
This results in
bpf_bpf*.(g)o
files in the directory.Regarding
libbpf_num_possible_cpus()
, please open another discussion with a bit more context about what you're trying to do.