We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
root@1f8c2d7a1113:/work# make all make -C internal/recorder make[1]: Entering directory '/work/internal/recorder' > bpf2go... go generate -x go run github.com/cilium/ebpf/cmd/bpf2go -cc clang -cflags -D__TARGET_ARCH_aarch64 -I../../bpf/include -Wall -target bpfel TrafficMirror ../../bpf/bpf.c /work/bpf/bpf.c:286:5: warning: implicit declaration of function 'PT_REGS_PARM1' is invalid in C99 [-Wimplicit-function-declaration] int BPF_KPROBE(inet_accept_entry, struct socket *sock, struct socket *newsock) ^ ../../bpf/include/bpf/bpf_tracing.h:385:20: note: expanded from macro 'BPF_KPROBE' return ____##name(___bpf_kprobe_args(args)); \ ^ ../../bpf/include/bpf/bpf_tracing.h:365:2: note: expanded from macro '___bpf_kprobe_args' ___bpf_apply(___bpf_kprobe_args, ___bpf_narg(args))(args) ^ ../../bpf/include/bpf/bpf_tracing.h:299:29: note: expanded from macro '___bpf_apply' #define ___bpf_apply(fn, n) ___bpf_concat(fn, n) ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) <scratch space>:29:1: note: expanded from here ___bpf_kprobe_args2 ^ ../../bpf/include/bpf/bpf_tracing.h:357:2: note: expanded from macro '___bpf_kprobe_args2' ___bpf_kprobe_args1(args), (void *)PT_REGS_PARM2(ctx) ^ ../../bpf/include/bpf/bpf_tracing.h:355:33: note: expanded from macro '___bpf_kprobe_args1' ___bpf_kprobe_args0(), (void *)PT_REGS_PARM1(ctx) ^ /work/bpf/bpf.c:286:5: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] int BPF_KPROBE(inet_accept_entry, struct socket *sock, struct socket *newsock) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:385:20: note: expanded from macro 'BPF_KPROBE' return ____##name(___bpf_kprobe_args(args)); \ ^~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:365:2: note: expanded from macro '___bpf_kprobe_args' ___bpf_apply(___bpf_kprobe_args, ___bpf_narg(args))(args) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:299:29: note: expanded from macro '___bpf_apply' #define ___bpf_apply(fn, n) ___bpf_concat(fn, n) ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) <scratch space>:29:1: note: expanded from here ___bpf_kprobe_args2 ^ ../../bpf/include/bpf/bpf_tracing.h:357:2: note: expanded from macro '___bpf_kprobe_args2' ___bpf_kprobe_args1(args), (void *)PT_REGS_PARM2(ctx) ^~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:355:25: note: expanded from macro '___bpf_kprobe_args1' ___bpf_kprobe_args0(), (void *)PT_REGS_PARM1(ctx) ^~~~~~~~~~~~~~~~~~~~~~~~~~ /work/bpf/bpf.c:286:5: warning: implicit declaration of function 'PT_REGS_PARM2' is invalid in C99 [-Wimplicit-function-declaration] ../../bpf/include/bpf/bpf_tracing.h:385:20: note: expanded from macro 'BPF_KPROBE' return ____##name(___bpf_kprobe_args(args)); \ ^ ../../bpf/include/bpf/bpf_tracing.h:365:2: note: expanded from macro '___bpf_kprobe_args' ___bpf_apply(___bpf_kprobe_args, ___bpf_narg(args))(args) ^ ../../bpf/include/bpf/bpf_tracing.h:299:29: note: expanded from macro '___bpf_apply' #define ___bpf_apply(fn, n) ___bpf_concat(fn, n) ^ ../../bpf/include/bpf/bpf_tracing.h:298:29: note: expanded from macro '___bpf_concat' #define ___bpf_concat(a, b) a ## b ^ <scratch space>:29:1: note: expanded from here ___bpf_kprobe_args2 ^ ../../bpf/include/bpf/bpf_tracing.h:357:37: note: expanded from macro '___bpf_kprobe_args2' ___bpf_kprobe_args1(args), (void *)PT_REGS_PARM2(ctx) ^ /work/bpf/bpf.c:286:5: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] int BPF_KPROBE(inet_accept_entry, struct socket *sock, struct socket *newsock) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:385:20: note: expanded from macro 'BPF_KPROBE' return ____##name(___bpf_kprobe_args(args)); \ ^~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:365:2: note: expanded from macro '___bpf_kprobe_args' ___bpf_apply(___bpf_kprobe_args, ___bpf_narg(args))(args) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:299:29: note: expanded from macro '___bpf_apply' #define ___bpf_apply(fn, n) ___bpf_concat(fn, n) ^ ../../bpf/include/bpf/bpf_tracing.h:298:29: note: expanded from macro '___bpf_concat' #define ___bpf_concat(a, b) a ## b ^ <scratch space>:29:1: note: expanded from here ___bpf_kprobe_args2 ^ ../../bpf/include/bpf/bpf_tracing.h:357:29: note: expanded from macro '___bpf_kprobe_args2' ___bpf_kprobe_args1(args), (void *)PT_REGS_PARM2(ctx) ^~~~~~~~~~~~~~~~~~~~~~~~~~ /work/bpf/bpf.c:314:5: warning: implicit declaration of function 'PT_REGS_RC' is invalid in C99 [-Wimplicit-function-declaration] int BPF_KRETPROBE(inet_accept_exit, int retval) ^ ../../bpf/include/bpf/bpf_tracing.h:411:20: note: expanded from macro 'BPF_KRETPROBE' return ____##name(___bpf_kretprobe_args(args)); \ ^ ../../bpf/include/bpf/bpf_tracing.h:395:2: note: expanded from macro '___bpf_kretprobe_args' ___bpf_apply(___bpf_kretprobe_args, ___bpf_narg(args))(args) ^ ../../bpf/include/bpf/bpf_tracing.h:299:29: note: expanded from macro '___bpf_apply' #define ___bpf_apply(fn, n) ___bpf_concat(fn, n) ^ ../../bpf/include/bpf/bpf_tracing.h:298:29: note: expanded from macro '___bpf_concat' #define ___bpf_concat(a, b) a ## b ^ <scratch space>:40:1: note: expanded from here ___bpf_kretprobe_args1 ^ ../../bpf/include/bpf/bpf_tracing.h:393:36: note: expanded from macro '___bpf_kretprobe_args1' ___bpf_kretprobe_args0(), (void *)PT_REGS_RC(ctx) ^ /work/bpf/bpf.c:314:5: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] int BPF_KRETPROBE(inet_accept_exit, int retval) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:411:20: note: expanded from macro 'BPF_KRETPROBE' return ____##name(___bpf_kretprobe_args(args)); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:395:2: note: expanded from macro '___bpf_kretprobe_args' ___bpf_apply(___bpf_kretprobe_args, ___bpf_narg(args))(args) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:299:29: note: expanded from macro '___bpf_apply' #define ___bpf_apply(fn, n) ___bpf_concat(fn, n) ^ ../../bpf/include/bpf/bpf_tracing.h:298:29: note: expanded from macro '___bpf_concat' #define ___bpf_concat(a, b) a ## b ^ <scratch space>:40:1: note: expanded from here ___bpf_kretprobe_args1 ^ ../../bpf/include/bpf/bpf_tracing.h:393:28: note: expanded from macro '___bpf_kretprobe_args1' ___bpf_kretprobe_args0(), (void *)PT_REGS_RC(ctx) ^~~~~~~~~~~~~~~~~~~~~~~ /work/bpf/bpf.c:381:5: warning: implicit declaration of function 'PT_REGS_PARM1' is invalid in C99 [-Wimplicit-function-declaration] int BPF_KPROBE(inet_stream_connect_entry, struct socket *sock, ^ ../../bpf/include/bpf/bpf_tracing.h:385:20: note: expanded from macro 'BPF_KPROBE' return ____##name(___bpf_kprobe_args(args)); \ ^ ../../bpf/include/bpf/bpf_tracing.h:365:2: note: expanded from macro '___bpf_kprobe_args' ___bpf_apply(___bpf_kprobe_args, ___bpf_narg(args))(args) ^ ../../bpf/include/bpf/bpf_tracing.h:299:29: note: expanded from macro '___bpf_apply' #define ___bpf_apply(fn, n) ___bpf_concat(fn, n) ^ note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) ../../bpf/include/bpf/bpf_tracing.h:359:2: note: expanded from macro '___bpf_kprobe_args3' ___bpf_kprobe_args2(args), (void *)PT_REGS_PARM3(ctx) ^ ../../bpf/include/bpf/bpf_tracing.h:357:2: note: expanded from macro '___bpf_kprobe_args2' ___bpf_kprobe_args1(args), (void *)PT_REGS_PARM2(ctx) ^ ../../bpf/include/bpf/bpf_tracing.h:355:33: note: expanded from macro '___bpf_kprobe_args1' ___bpf_kprobe_args0(), (void *)PT_REGS_PARM1(ctx) ^ /work/bpf/bpf.c:381:5: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] int BPF_KPROBE(inet_stream_connect_entry, struct socket *sock, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:385:20: note: expanded from macro 'BPF_KPROBE' return ____##name(___bpf_kprobe_args(args)); \ ^~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:365:2: note: expanded from macro '___bpf_kprobe_args' ___bpf_apply(___bpf_kprobe_args, ___bpf_narg(args))(args) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:299:29: note: expanded from macro '___bpf_apply' #define ___bpf_apply(fn, n) ___bpf_concat(fn, n) ^ note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) ../../bpf/include/bpf/bpf_tracing.h:359:2: note: expanded from macro '___bpf_kprobe_args3' ___bpf_kprobe_args2(args), (void *)PT_REGS_PARM3(ctx) ^~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:357:2: note: expanded from macro '___bpf_kprobe_args2' ___bpf_kprobe_args1(args), (void *)PT_REGS_PARM2(ctx) ^~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:355:25: note: expanded from macro '___bpf_kprobe_args1' ___bpf_kprobe_args0(), (void *)PT_REGS_PARM1(ctx) ^~~~~~~~~~~~~~~~~~~~~~~~~~ /work/bpf/bpf.c:381:5: warning: implicit declaration of function 'PT_REGS_PARM2' is invalid in C99 [-Wimplicit-function-declaration] ../../bpf/include/bpf/bpf_tracing.h:385:20: note: expanded from macro 'BPF_KPROBE' return ____##name(___bpf_kprobe_args(args)); \ ^ ../../bpf/include/bpf/bpf_tracing.h:365:2: note: expanded from macro '___bpf_kprobe_args' ___bpf_apply(___bpf_kprobe_args, ___bpf_narg(args))(args) ^ ../../bpf/include/bpf/bpf_tracing.h:299:29: note: expanded from macro '___bpf_apply' #define ___bpf_apply(fn, n) ___bpf_concat(fn, n) ^ note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) ../../bpf/include/bpf/bpf_tracing.h:361:2: note: expanded from macro '___bpf_kprobe_args4' ___bpf_kprobe_args3(args), (void *)PT_REGS_PARM4(ctx) ^ ../../bpf/include/bpf/bpf_tracing.h:359:2: note: expanded from macro '___bpf_kprobe_args3' ___bpf_kprobe_args2(args), (void *)PT_REGS_PARM3(ctx) ^ ../../bpf/include/bpf/bpf_tracing.h:357:37: note: expanded from macro '___bpf_kprobe_args2' ___bpf_kprobe_args1(args), (void *)PT_REGS_PARM2(ctx) ^ /work/bpf/bpf.c:381:5: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] int BPF_KPROBE(inet_stream_connect_entry, struct socket *sock, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:385:20: note: expanded from macro 'BPF_KPROBE' return ____##name(___bpf_kprobe_args(args)); \ ^~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:365:2: note: expanded from macro '___bpf_kprobe_args' ___bpf_apply(___bpf_kprobe_args, ___bpf_narg(args))(args) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:299:29: note: expanded from macro '___bpf_apply' #define ___bpf_apply(fn, n) ___bpf_concat(fn, n) ^ note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) ../../bpf/include/bpf/bpf_tracing.h:361:2: note: expanded from macro '___bpf_kprobe_args4' ___bpf_kprobe_args3(args), (void *)PT_REGS_PARM4(ctx) ^~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:359:2: note: expanded from macro '___bpf_kprobe_args3' ___bpf_kprobe_args2(args), (void *)PT_REGS_PARM3(ctx) ^~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:357:29: note: expanded from macro '___bpf_kprobe_args2' ___bpf_kprobe_args1(args), (void *)PT_REGS_PARM2(ctx) ^~~~~~~~~~~~~~~~~~~~~~~~~~ /work/bpf/bpf.c:381:5: warning: implicit declaration of function 'PT_REGS_PARM3' is invalid in C99 [-Wimplicit-function-declaration] ../../bpf/include/bpf/bpf_tracing.h:385:20: note: expanded from macro 'BPF_KPROBE' return ____##name(___bpf_kprobe_args(args)); \ ^ ../../bpf/include/bpf/bpf_tracing.h:365:2: note: expanded from macro '___bpf_kprobe_args' ___bpf_apply(___bpf_kprobe_args, ___bpf_narg(args))(args) ^ ../../bpf/include/bpf/bpf_tracing.h:299:29: note: expanded from macro '___bpf_apply' #define ___bpf_apply(fn, n) ___bpf_concat(fn, n) ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) <scratch space>:55:1: note: expanded from here ___bpf_kprobe_args4 ^ ../../bpf/include/bpf/bpf_tracing.h:361:2: note: expanded from macro '___bpf_kprobe_args4' ___bpf_kprobe_args3(args), (void *)PT_REGS_PARM4(ctx) ^ ../../bpf/include/bpf/bpf_tracing.h:359:37: note: expanded from macro '___bpf_kprobe_args3' ___bpf_kprobe_args2(args), (void *)PT_REGS_PARM3(ctx) ^ /work/bpf/bpf.c:381:5: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] int BPF_KPROBE(inet_stream_connect_entry, struct socket *sock, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:385:20: note: expanded from macro 'BPF_KPROBE' return ____##name(___bpf_kprobe_args(args)); \ ^~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:365:2: note: expanded from macro '___bpf_kprobe_args' ___bpf_apply(___bpf_kprobe_args, ___bpf_narg(args))(args) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:299:29: note: expanded from macro '___bpf_apply' #define ___bpf_apply(fn, n) ___bpf_concat(fn, n) ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) <scratch space>:55:1: note: expanded from here ___bpf_kprobe_args4 ^ ../../bpf/include/bpf/bpf_tracing.h:361:2: note: expanded from macro '___bpf_kprobe_args4' ___bpf_kprobe_args3(args), (void *)PT_REGS_PARM4(ctx) ^~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:359:29: note: expanded from macro '___bpf_kprobe_args3' ___bpf_kprobe_args2(args), (void *)PT_REGS_PARM3(ctx) ^~~~~~~~~~~~~~~~~~~~~~~~~~ /work/bpf/bpf.c:381:5: warning: implicit declaration of function 'PT_REGS_PARM4' is invalid in C99 [-Wimplicit-function-declaration] ../../bpf/include/bpf/bpf_tracing.h:385:20: note: expanded from macro 'BPF_KPROBE' return ____##name(___bpf_kprobe_args(args)); \ ^ ../../bpf/include/bpf/bpf_tracing.h:365:2: note: expanded from macro '___bpf_kprobe_args' ___bpf_apply(___bpf_kprobe_args, ___bpf_narg(args))(args) ^ ../../bpf/include/bpf/bpf_tracing.h:299:29: note: expanded from macro '___bpf_apply' #define ___bpf_apply(fn, n) ___bpf_concat(fn, n) ^ ../../bpf/include/bpf/bpf_tracing.h:298:29: note: expanded from macro '___bpf_concat' #define ___bpf_concat(a, b) a ## b ^ <scratch space>:55:1: note: expanded from here ___bpf_kprobe_args4 ^ ../../bpf/include/bpf/bpf_tracing.h:361:37: note: expanded from macro '___bpf_kprobe_args4' ___bpf_kprobe_args3(args), (void *)PT_REGS_PARM4(ctx) ^ /work/bpf/bpf.c:381:5: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] int BPF_KPROBE(inet_stream_connect_entry, struct socket *sock, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:385:20: note: expanded from macro 'BPF_KPROBE' return ____##name(___bpf_kprobe_args(args)); \ ^~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:365:2: note: expanded from macro '___bpf_kprobe_args' ___bpf_apply(___bpf_kprobe_args, ___bpf_narg(args))(args) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:299:29: note: expanded from macro '___bpf_apply' #define ___bpf_apply(fn, n) ___bpf_concat(fn, n) ^ ../../bpf/include/bpf/bpf_tracing.h:298:29: note: expanded from macro '___bpf_concat' #define ___bpf_concat(a, b) a ## b ^ <scratch space>:55:1: note: expanded from here ___bpf_kprobe_args4 ^ ../../bpf/include/bpf/bpf_tracing.h:361:29: note: expanded from macro '___bpf_kprobe_args4' ___bpf_kprobe_args3(args), (void *)PT_REGS_PARM4(ctx) ^~~~~~~~~~~~~~~~~~~~~~~~~~ /work/bpf/bpf.c:410:5: warning: implicit declaration of function 'PT_REGS_RC' is invalid in C99 [-Wimplicit-function-declaration] int BPF_KRETPROBE(inet_stream_connect_exit, int retval) ^ ../../bpf/include/bpf/bpf_tracing.h:411:20: note: expanded from macro 'BPF_KRETPROBE' return ____##name(___bpf_kretprobe_args(args)); \ ^ ../../bpf/include/bpf/bpf_tracing.h:395:2: note: expanded from macro '___bpf_kretprobe_args' ___bpf_apply(___bpf_kretprobe_args, ___bpf_narg(args))(args) ^ ../../bpf/include/bpf/bpf_tracing.h:299:29: note: expanded from macro '___bpf_apply' #define ___bpf_apply(fn, n) ___bpf_concat(fn, n) ^ ../../bpf/include/bpf/bpf_tracing.h:298:29: note: expanded from macro '___bpf_concat' #define ___bpf_concat(a, b) a ## b ^ <scratch space>:66:1: note: expanded from here ___bpf_kretprobe_args1 ^ ../../bpf/include/bpf/bpf_tracing.h:393:36: note: expanded from macro '___bpf_kretprobe_args1' ___bpf_kretprobe_args0(), (void *)PT_REGS_RC(ctx) ^ /work/bpf/bpf.c:410:5: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] int BPF_KRETPROBE(inet_stream_connect_exit, int retval) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:411:20: note: expanded from macro 'BPF_KRETPROBE' return ____##name(___bpf_kretprobe_args(args)); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:395:2: note: expanded from macro '___bpf_kretprobe_args' ___bpf_apply(___bpf_kretprobe_args, ___bpf_narg(args))(args) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:299:29: note: expanded from macro '___bpf_apply' #define ___bpf_apply(fn, n) ___bpf_concat(fn, n) ^ ../../bpf/include/bpf/bpf_tracing.h:298:29: note: expanded from macro '___bpf_concat' #define ___bpf_concat(a, b) a ## b ^ <scratch space>:66:1: note: expanded from here ___bpf_kretprobe_args1 ^ ../../bpf/include/bpf/bpf_tracing.h:393:28: note: expanded from macro '___bpf_kretprobe_args1' ___bpf_kretprobe_args0(), (void *)PT_REGS_RC(ctx) ^~~~~~~~~~~~~~~~~~~~~~~ /work/bpf/bpf.c:480:5: warning: implicit declaration of function 'PT_REGS_PARM1' is invalid in C99 [-Wimplicit-function-declaration] int BPF_KPROBE(inet_release_entry, struct socket *sock) ^ ../../bpf/include/bpf/bpf_tracing.h:385:20: note: expanded from macro 'BPF_KPROBE' return ____##name(___bpf_kprobe_args(args)); \ ^ ../../bpf/include/bpf/bpf_tracing.h:365:2: note: expanded from macro '___bpf_kprobe_args' ___bpf_apply(___bpf_kprobe_args, ___bpf_narg(args))(args) ^ ../../bpf/include/bpf/bpf_tracing.h:299:29: note: expanded from macro '___bpf_apply' #define ___bpf_apply(fn, n) ___bpf_concat(fn, n) ^ ../../bpf/include/bpf/bpf_tracing.h:298:29: note: expanded from macro '___bpf_concat' #define ___bpf_concat(a, b) a ## b ^ <scratch space>:81:1: note: expanded from here ___bpf_kprobe_args1 ^ ../../bpf/include/bpf/bpf_tracing.h:355:33: note: expanded from macro '___bpf_kprobe_args1' ___bpf_kprobe_args0(), (void *)PT_REGS_PARM1(ctx) ^ /work/bpf/bpf.c:480:5: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] int BPF_KPROBE(inet_release_entry, struct socket *sock) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:385:20: note: expanded from macro 'BPF_KPROBE' return ____##name(___bpf_kprobe_args(args)); \ ^~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:365:2: note: expanded from macro '___bpf_kprobe_args' ___bpf_apply(___bpf_kprobe_args, ___bpf_narg(args))(args) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:299:29: note: expanded from macro '___bpf_apply' #define ___bpf_apply(fn, n) ___bpf_concat(fn, n) ^ ../../bpf/include/bpf/bpf_tracing.h:298:29: note: expanded from macro '___bpf_concat' #define ___bpf_concat(a, b) a ## b ^ <scratch space>:81:1: note: expanded from here ___bpf_kprobe_args1 ^ ../../bpf/include/bpf/bpf_tracing.h:355:25: note: expanded from macro '___bpf_kprobe_args1' ___bpf_kprobe_args0(), (void *)PT_REGS_PARM1(ctx) ^~~~~~~~~~~~~~~~~~~~~~~~~~ /work/bpf/bpf.c:515:5: warning: implicit declaration of function 'PT_REGS_PARM1' is invalid in C99 [-Wimplicit-function-declaration] int BPF_KPROBE(inet_sendmsg_entry, struct socket *sock, struct msghdr *msg) ^ ../../bpf/include/bpf/bpf_tracing.h:385:20: note: expanded from macro 'BPF_KPROBE' return ____##name(___bpf_kprobe_args(args)); \ ^ ../../bpf/include/bpf/bpf_tracing.h:365:2: note: expanded from macro '___bpf_kprobe_args' ___bpf_apply(___bpf_kprobe_args, ___bpf_narg(args))(args) ^ ../../bpf/include/bpf/bpf_tracing.h:299:29: note: expanded from macro '___bpf_apply' #define ___bpf_apply(fn, n) ___bpf_concat(fn, n) ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) <scratch space>:92:1: note: expanded from here ___bpf_kprobe_args2 ^ ../../bpf/include/bpf/bpf_tracing.h:357:2: note: expanded from macro '___bpf_kprobe_args2' ___bpf_kprobe_args1(args), (void *)PT_REGS_PARM2(ctx) ^ ../../bpf/include/bpf/bpf_tracing.h:355:33: note: expanded from macro '___bpf_kprobe_args1' ___bpf_kprobe_args0(), (void *)PT_REGS_PARM1(ctx) ^ /work/bpf/bpf.c:515:5: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] int BPF_KPROBE(inet_sendmsg_entry, struct socket *sock, struct msghdr *msg) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:385:20: note: expanded from macro 'BPF_KPROBE' return ____##name(___bpf_kprobe_args(args)); \ ^~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:365:2: note: expanded from macro '___bpf_kprobe_args' ___bpf_apply(___bpf_kprobe_args, ___bpf_narg(args))(args) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:299:29: note: expanded from macro '___bpf_apply' #define ___bpf_apply(fn, n) ___bpf_concat(fn, n) ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) <scratch space>:92:1: note: expanded from here ___bpf_kprobe_args2 ^ ../../bpf/include/bpf/bpf_tracing.h:357:2: note: expanded from macro '___bpf_kprobe_args2' ___bpf_kprobe_args1(args), (void *)PT_REGS_PARM2(ctx) ^~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:355:25: note: expanded from macro '___bpf_kprobe_args1' ___bpf_kprobe_args0(), (void *)PT_REGS_PARM1(ctx) ^~~~~~~~~~~~~~~~~~~~~~~~~~ /work/bpf/bpf.c:515:5: warning: implicit declaration of function 'PT_REGS_PARM2' is invalid in C99 [-Wimplicit-function-declaration] ../../bpf/include/bpf/bpf_tracing.h:385:20: note: expanded from macro 'BPF_KPROBE' return ____##name(___bpf_kprobe_args(args)); \ ^ ../../bpf/include/bpf/bpf_tracing.h:365:2: note: expanded from macro '___bpf_kprobe_args' ___bpf_apply(___bpf_kprobe_args, ___bpf_narg(args))(args) ^ ../../bpf/include/bpf/bpf_tracing.h:299:29: note: expanded from macro '___bpf_apply' #define ___bpf_apply(fn, n) ___bpf_concat(fn, n) ^ ../../bpf/include/bpf/bpf_tracing.h:298:29: note: expanded from macro '___bpf_concat' #define ___bpf_concat(a, b) a ## b ^ <scratch space>:92:1: note: expanded from here ___bpf_kprobe_args2 ^ ../../bpf/include/bpf/bpf_tracing.h:357:37: note: expanded from macro '___bpf_kprobe_args2' ___bpf_kprobe_args1(args), (void *)PT_REGS_PARM2(ctx) ^ /work/bpf/bpf.c:515:5: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] int BPF_KPROBE(inet_sendmsg_entry, struct socket *sock, struct msghdr *msg) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:385:20: note: expanded from macro 'BPF_KPROBE' return ____##name(___bpf_kprobe_args(args)); \ ^~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:365:2: note: expanded from macro '___bpf_kprobe_args' ___bpf_apply(___bpf_kprobe_args, ___bpf_narg(args))(args) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:299:29: note: expanded from macro '___bpf_apply' #define ___bpf_apply(fn, n) ___bpf_concat(fn, n) ^ ../../bpf/include/bpf/bpf_tracing.h:298:29: note: expanded from macro '___bpf_concat' #define ___bpf_concat(a, b) a ## b ^ <scratch space>:92:1: note: expanded from here ___bpf_kprobe_args2 ^ ../../bpf/include/bpf/bpf_tracing.h:357:29: note: expanded from macro '___bpf_kprobe_args2' ___bpf_kprobe_args1(args), (void *)PT_REGS_PARM2(ctx) ^~~~~~~~~~~~~~~~~~~~~~~~~~ /work/bpf/bpf.c:561:5: warning: implicit declaration of function 'PT_REGS_RC' is invalid in C99 [-Wimplicit-function-declaration] int BPF_KRETPROBE(inet_sendmsg_exit, int retval) ^ ../../bpf/include/bpf/bpf_tracing.h:411:20: note: expanded from macro 'BPF_KRETPROBE' return ____##name(___bpf_kretprobe_args(args)); \ ^ ../../bpf/include/bpf/bpf_tracing.h:395:2: note: expanded from macro '___bpf_kretprobe_args' ___bpf_apply(___bpf_kretprobe_args, ___bpf_narg(args))(args) ^ ../../bpf/include/bpf/bpf_tracing.h:299:29: note: expanded from macro '___bpf_apply' #define ___bpf_apply(fn, n) ___bpf_concat(fn, n) ^ ../../bpf/include/bpf/bpf_tracing.h:298:29: note: expanded from macro '___bpf_concat' #define ___bpf_concat(a, b) a ## b ^ <scratch space>:105:1: note: expanded from here ___bpf_kretprobe_args1 ^ ../../bpf/include/bpf/bpf_tracing.h:393:36: note: expanded from macro '___bpf_kretprobe_args1' ___bpf_kretprobe_args0(), (void *)PT_REGS_RC(ctx) ^ /work/bpf/bpf.c:561:5: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] int BPF_KRETPROBE(inet_sendmsg_exit, int retval) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:411:20: note: expanded from macro 'BPF_KRETPROBE' return ____##name(___bpf_kretprobe_args(args)); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:395:2: note: expanded from macro '___bpf_kretprobe_args' ___bpf_apply(___bpf_kretprobe_args, ___bpf_narg(args))(args) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:299:29: note: expanded from macro '___bpf_apply' #define ___bpf_apply(fn, n) ___bpf_concat(fn, n) ^ ../../bpf/include/bpf/bpf_tracing.h:298:29: note: expanded from macro '___bpf_concat' #define ___bpf_concat(a, b) a ## b ^ <scratch space>:105:1: note: expanded from here ___bpf_kretprobe_args1 ^ ../../bpf/include/bpf/bpf_tracing.h:393:28: note: expanded from macro '___bpf_kretprobe_args1' ___bpf_kretprobe_args0(), (void *)PT_REGS_RC(ctx) ^~~~~~~~~~~~~~~~~~~~~~~ /work/bpf/bpf.c:614:5: warning: implicit declaration of function 'PT_REGS_PARM1' is invalid in C99 [-Wimplicit-function-declaration] int BPF_KPROBE(inet_recvmsg_entry, struct socket *sock, struct msghdr *msg) ^ ../../bpf/include/bpf/bpf_tracing.h:385:20: note: expanded from macro 'BPF_KPROBE' return ____##name(___bpf_kprobe_args(args)); \ ^ ../../bpf/include/bpf/bpf_tracing.h:365:2: note: expanded from macro '___bpf_kprobe_args' ___bpf_apply(___bpf_kprobe_args, ___bpf_narg(args))(args) ^ ../../bpf/include/bpf/bpf_tracing.h:299:29: note: expanded from macro '___bpf_apply' #define ___bpf_apply(fn, n) ___bpf_concat(fn, n) ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) <scratch space>:117:1: note: expanded from here ___bpf_kprobe_args2 ^ ../../bpf/include/bpf/bpf_tracing.h:357:2: note: expanded from macro '___bpf_kprobe_args2' ___bpf_kprobe_args1(args), (void *)PT_REGS_PARM2(ctx) ^ ../../bpf/include/bpf/bpf_tracing.h:355:33: note: expanded from macro '___bpf_kprobe_args1' ___bpf_kprobe_args0(), (void *)PT_REGS_PARM1(ctx) ^ /work/bpf/bpf.c:614:5: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] int BPF_KPROBE(inet_recvmsg_entry, struct socket *sock, struct msghdr *msg) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:385:20: note: expanded from macro 'BPF_KPROBE' return ____##name(___bpf_kprobe_args(args)); \ ^~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:365:2: note: expanded from macro '___bpf_kprobe_args' ___bpf_apply(___bpf_kprobe_args, ___bpf_narg(args))(args) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:299:29: note: expanded from macro '___bpf_apply' #define ___bpf_apply(fn, n) ___bpf_concat(fn, n) ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) <scratch space>:117:1: note: expanded from here ___bpf_kprobe_args2 ^ ../../bpf/include/bpf/bpf_tracing.h:357:2: note: expanded from macro '___bpf_kprobe_args2' ___bpf_kprobe_args1(args), (void *)PT_REGS_PARM2(ctx) ^~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:355:25: note: expanded from macro '___bpf_kprobe_args1' ___bpf_kprobe_args0(), (void *)PT_REGS_PARM1(ctx) ^~~~~~~~~~~~~~~~~~~~~~~~~~ /work/bpf/bpf.c:614:5: warning: implicit declaration of function 'PT_REGS_PARM2' is invalid in C99 [-Wimplicit-function-declaration] ../../bpf/include/bpf/bpf_tracing.h:385:20: note: expanded from macro 'BPF_KPROBE' return ____##name(___bpf_kprobe_args(args)); \ ^ ../../bpf/include/bpf/bpf_tracing.h:365:2: note: expanded from macro '___bpf_kprobe_args' ___bpf_apply(___bpf_kprobe_args, ___bpf_narg(args))(args) ^ ../../bpf/include/bpf/bpf_tracing.h:299:29: note: expanded from macro '___bpf_apply' #define ___bpf_apply(fn, n) ___bpf_concat(fn, n) ^ ../../bpf/include/bpf/bpf_tracing.h:298:29: note: expanded from macro '___bpf_concat' #define ___bpf_concat(a, b) a ## b ^ <scratch space>:117:1: note: expanded from here ___bpf_kprobe_args2 ^ ../../bpf/include/bpf/bpf_tracing.h:357:37: note: expanded from macro '___bpf_kprobe_args2' ___bpf_kprobe_args1(args), (void *)PT_REGS_PARM2(ctx) ^ /work/bpf/bpf.c:614:5: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] int BPF_KPROBE(inet_recvmsg_entry, struct socket *sock, struct msghdr *msg) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:385:20: note: expanded from macro 'BPF_KPROBE' return ____##name(___bpf_kprobe_args(args)); \ ^~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:365:2: note: expanded from macro '___bpf_kprobe_args' ___bpf_apply(___bpf_kprobe_args, ___bpf_narg(args))(args) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:299:29: note: expanded from macro '___bpf_apply' #define ___bpf_apply(fn, n) ___bpf_concat(fn, n) ^ ../../bpf/include/bpf/bpf_tracing.h:298:29: note: expanded from macro '___bpf_concat' #define ___bpf_concat(a, b) a ## b ^ <scratch space>:117:1: note: expanded from here ___bpf_kprobe_args2 ^ ../../bpf/include/bpf/bpf_tracing.h:357:29: note: expanded from macro '___bpf_kprobe_args2' ___bpf_kprobe_args1(args), (void *)PT_REGS_PARM2(ctx) ^~~~~~~~~~~~~~~~~~~~~~~~~~ /work/bpf/bpf.c:653:5: warning: implicit declaration of function 'PT_REGS_RC' is invalid in C99 [-Wimplicit-function-declaration] int BPF_KRETPROBE(inet_recvmsg_exit, int retval) ^ ../../bpf/include/bpf/bpf_tracing.h:411:20: note: expanded from macro 'BPF_KRETPROBE' return ____##name(___bpf_kretprobe_args(args)); \ ^ ../../bpf/include/bpf/bpf_tracing.h:395:2: note: expanded from macro '___bpf_kretprobe_args' ___bpf_apply(___bpf_kretprobe_args, ___bpf_narg(args))(args) ^ ../../bpf/include/bpf/bpf_tracing.h:299:29: note: expanded from macro '___bpf_apply' #define ___bpf_apply(fn, n) ___bpf_concat(fn, n) ^ ../../bpf/include/bpf/bpf_tracing.h:298:29: note: expanded from macro '___bpf_concat' #define ___bpf_concat(a, b) a ## b ^ <scratch space>:130:1: note: expanded from here ___bpf_kretprobe_args1 ^ ../../bpf/include/bpf/bpf_tracing.h:393:36: note: expanded from macro '___bpf_kretprobe_args1' ___bpf_kretprobe_args0(), (void *)PT_REGS_RC(ctx) ^ /work/bpf/bpf.c:653:5: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] int BPF_KRETPROBE(inet_recvmsg_exit, int retval) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:411:20: note: expanded from macro 'BPF_KRETPROBE' return ____##name(___bpf_kretprobe_args(args)); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:395:2: note: expanded from macro '___bpf_kretprobe_args' ___bpf_apply(___bpf_kretprobe_args, ___bpf_narg(args))(args) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../bpf/include/bpf/bpf_tracing.h:299:29: note: expanded from macro '___bpf_apply' #define ___bpf_apply(fn, n) ___bpf_concat(fn, n) ^ ../../bpf/include/bpf/bpf_tracing.h:298:29: note: expanded from macro '___bpf_concat' #define ___bpf_concat(a, b) a ## b ^ <scratch space>:130:1: note: expanded from here ___bpf_kretprobe_args1 ^ ../../bpf/include/bpf/bpf_tracing.h:393:28: note: expanded from macro '___bpf_kretprobe_args1' ___bpf_kretprobe_args0(), (void *)PT_REGS_RC(ctx) ^~~~~~~~~~~~~~~~~~~~~~~ 30 warnings generated. Compiled /work/internal/recorder/trafficmirror_bpfel.o Stripped /work/internal/recorder/trafficmirror_bpfel.o Wrote /work/internal/recorder/trafficmirror_bpfel.go > bpf2go done make[1]: Leaving directory '/work/internal/recorder' make: git: No such file or directory > build yarc... Version: 1.0.0 go build -gcflags="" -ldflags="-X 'github.com/didi/yarc/internal/buildinfo.Version=1.0.0' -X 'github.com/didi/yarc/internal/buildinfo.CommitID=' -X 'github.com/didi/yarc/internal/buildinfo.BuildTime=2024-09-13 07:53:26 UTC'" -o yarc ./cmd/yarc root@1f8c2d7a1113:/work# ./yarc -p 1 Version: 1.0.0 Git commit: Build time: 2024-09-13 07:53:26 UTC 2024/09/13 08:00:01 config: conf/yarc.toml 2024/09/13 08:00:01 field InetAcceptEntry: program inet_accept_entry: Call at insn 1: symbol "PT_REGS_PARM1": unsatisfied program reference root@1f8c2d7a1113:/work# uname -a Linux 1f8c2d7a1113 6.10.0-linuxkit #1 SMP Wed Jul 17 10:51:09 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: