goebpf
goebpf copied to clipboard
Include linux header file failed
I want to #include <net/sock.h>
in kprobe.c and i also add the path in clang but it failed.
Can you tell me how to include the linux header?
Thanks
It is a bit vague question - in short, it depends on your build system.
Generally you need to add some kind of dependencies to build system so compiler will find these headers.
@qiffang Sorry, were you able to solve the problem?