Open k82cn opened 3 years ago
Hi, you may miss out this compile warning:
hello.c:9:5: warning: implicit declaration of function 'bpf_trace_printk' is invalid in C99 [-Wimplicit-function-declaration]
bpf_trace_printk(msg, sizeof(msg));
^
1 warning generated.
You can obtain a copy of bpf_helpers.h
from here, include this file and your hello sample works.
I'm trying to use this lib to load a hello world of ebpf, but I got the following errors:
The source code is: https://github.com/k82cn/ebpf-learn/tree/main/hello
If any suggestion/comments, please let me know :)