-
Notifications
You must be signed in to change notification settings - Fork 695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird error " FnSeqWrite for program type Tracing not supported" #1082
Comments
cc @rgo3 |
Hello @Andreagit97! The current behaviour of I'll spend some more time to investigate other options but the output of
I'm afraid that creating a generalized helper probe for certain program types ( Wrt to |
It seems a reasonable fix! thank you
Got it! thank you for the explanation |
By enabling feature probes for the program types Tracing, Extension, LSM and StructOps within the HaveProgramType API, we overlooked that this would cause false negative results when using these types with the HaveProgramHelper API. To probe for these program types we craft specialized ProgramSpecs, but don't do the same when probing for these types in combination with an arbitrary helper. For now we should return an inconclusive error from the HaveProgramHelper API until we find a better way to probe for helpers with these program types. Fixes: cilium#1082 Signed-off-by: Robin Gögge <r.goegge@isovalent.com>
By enabling feature probes for the program types Tracing, Extension, LSM and StructOps within the HaveProgramType API, we overlooked that this would cause false negative results when using these types with the HaveProgramHelper API. To probe for these program types we craft specialized ProgramSpecs, but don't do the same when probing for these types in combination with an arbitrary helper. For now we should return an inconclusive error from the HaveProgramHelper API until we find a better way to probe for helpers with these program types. Fixes: cilium#1082 Signed-off-by: Robin Gögge <r.goegge@isovalent.com>
By enabling feature probes for the program types Tracing, Extension, LSM and StructOps within the HaveProgramType API, we overlooked that this would cause false negative results when using these types with the HaveProgramHelper API. To probe for these program types we craft specialized ProgramSpecs, but don't do the same when probing for these types in combination with an arbitrary helper. For now we should return an inconclusive error from the HaveProgramHelper API until we find a better way to probe for helpers with these program types. Fixes: cilium#1082 Signed-off-by: Robin Gögge <r.goegge@isovalent.com>
Describe the bug
In my program I would like to use BPF iters progs (more in detail
SEC("iter/task")
). I'm correctly able to load iter progrs without issues but now I would like to add some checks to ensure that the running kernel supports iterators so i added the following code:And I obtain the following error:
This is weird because I'm actually using
bpf_seq_write
helper in my bpf c program and before I added this check it ran without issues.Is this the intended behavior?
Moreover, If I understood correctly
features.HaveProgramType(ebpf.Tracing)
tries to probe the attach typeebpf.AttachTraceFEntry
that is different fromebpf.AttachTraceIter
. Is there a way to check directly theebpf.AttachTraceIter
attach type?go version
uname -a
cat /etc/issue
cilium/ebpf library version
Expected behavior
Probably
features.HaveProgramHelper(ebpf.Tracing, asm.FnSeqWrite);
should returnnil
or maybe I misunderstood its usage. Thank you in advance!The text was updated successfully, but these errors were encountered: