@@ -633,18 +633,18 @@ struct pt_regs;
633
633
#endif
634
634
635
635
#define ___bpf_ctx_cast0 () ctx
636
- #define ___bpf_ctx_cast1 (x ) ___bpf_ctx_cast0(), (void *) ctx[0]
637
- #define ___bpf_ctx_cast2 (x , args ...) ___bpf_ctx_cast1(args), (void *) ctx[1]
638
- #define ___bpf_ctx_cast3 (x , args ...) ___bpf_ctx_cast2(args), (void *) ctx[2]
639
- #define ___bpf_ctx_cast4 (x , args ...) ___bpf_ctx_cast3(args), (void *) ctx[3]
640
- #define ___bpf_ctx_cast5 (x , args ...) ___bpf_ctx_cast4(args), (void *) ctx[4]
641
- #define ___bpf_ctx_cast6 (x , args ...) ___bpf_ctx_cast5(args), (void *) ctx[5]
642
- #define ___bpf_ctx_cast7 (x , args ...) ___bpf_ctx_cast6(args), (void *) ctx[6]
643
- #define ___bpf_ctx_cast8 (x , args ...) ___bpf_ctx_cast7(args), (void *) ctx[7]
644
- #define ___bpf_ctx_cast9 (x , args ...) ___bpf_ctx_cast8(args), (void *) ctx[8]
645
- #define ___bpf_ctx_cast10 (x , args ...) ___bpf_ctx_cast9(args), (void *) ctx[9]
646
- #define ___bpf_ctx_cast11 (x , args ...) ___bpf_ctx_cast10(args), (void *) ctx[10]
647
- #define ___bpf_ctx_cast12 (x , args ...) ___bpf_ctx_cast11(args), (void *) ctx[11]
636
+ #define ___bpf_ctx_cast1 (x ) ___bpf_ctx_cast0(), ctx[0]
637
+ #define ___bpf_ctx_cast2 (x , args ...) ___bpf_ctx_cast1(args), ctx[1]
638
+ #define ___bpf_ctx_cast3 (x , args ...) ___bpf_ctx_cast2(args), ctx[2]
639
+ #define ___bpf_ctx_cast4 (x , args ...) ___bpf_ctx_cast3(args), ctx[3]
640
+ #define ___bpf_ctx_cast5 (x , args ...) ___bpf_ctx_cast4(args), ctx[4]
641
+ #define ___bpf_ctx_cast6 (x , args ...) ___bpf_ctx_cast5(args), ctx[5]
642
+ #define ___bpf_ctx_cast7 (x , args ...) ___bpf_ctx_cast6(args), ctx[6]
643
+ #define ___bpf_ctx_cast8 (x , args ...) ___bpf_ctx_cast7(args), ctx[7]
644
+ #define ___bpf_ctx_cast9 (x , args ...) ___bpf_ctx_cast8(args), ctx[8]
645
+ #define ___bpf_ctx_cast10 (x , args ...) ___bpf_ctx_cast9(args), ctx[9]
646
+ #define ___bpf_ctx_cast11 (x , args ...) ___bpf_ctx_cast10(args), ctx[10]
647
+ #define ___bpf_ctx_cast12 (x , args ...) ___bpf_ctx_cast11(args), ctx[11]
648
648
#define ___bpf_ctx_cast (args ...) ___bpf_apply(___bpf_ctx_cast, ___bpf_narg(args))(args)
649
649
650
650
/*
@@ -786,14 +786,14 @@ ____##name(unsigned long long *ctx ___bpf_ctx_decl(args))
786
786
struct pt_regs ;
787
787
788
788
#define ___bpf_kprobe_args0 () ctx
789
- #define ___bpf_kprobe_args1 (x ) ___bpf_kprobe_args0(), (void * )PT_REGS_PARM1(ctx)
790
- #define ___bpf_kprobe_args2 (x , args ...) ___bpf_kprobe_args1(args), (void * )PT_REGS_PARM2(ctx)
791
- #define ___bpf_kprobe_args3 (x , args ...) ___bpf_kprobe_args2(args), (void * )PT_REGS_PARM3(ctx)
792
- #define ___bpf_kprobe_args4 (x , args ...) ___bpf_kprobe_args3(args), (void * )PT_REGS_PARM4(ctx)
793
- #define ___bpf_kprobe_args5 (x , args ...) ___bpf_kprobe_args4(args), (void * )PT_REGS_PARM5(ctx)
794
- #define ___bpf_kprobe_args6 (x , args ...) ___bpf_kprobe_args5(args), (void * )PT_REGS_PARM6(ctx)
795
- #define ___bpf_kprobe_args7 (x , args ...) ___bpf_kprobe_args6(args), (void * )PT_REGS_PARM7(ctx)
796
- #define ___bpf_kprobe_args8 (x , args ...) ___bpf_kprobe_args7(args), (void * )PT_REGS_PARM8(ctx)
789
+ #define ___bpf_kprobe_args1 (x ) ___bpf_kprobe_args0(), (unsigned long long )PT_REGS_PARM1(ctx)
790
+ #define ___bpf_kprobe_args2 (x , args ...) ___bpf_kprobe_args1(args), (unsigned long long )PT_REGS_PARM2(ctx)
791
+ #define ___bpf_kprobe_args3 (x , args ...) ___bpf_kprobe_args2(args), (unsigned long long )PT_REGS_PARM3(ctx)
792
+ #define ___bpf_kprobe_args4 (x , args ...) ___bpf_kprobe_args3(args), (unsigned long long )PT_REGS_PARM4(ctx)
793
+ #define ___bpf_kprobe_args5 (x , args ...) ___bpf_kprobe_args4(args), (unsigned long long )PT_REGS_PARM5(ctx)
794
+ #define ___bpf_kprobe_args6 (x , args ...) ___bpf_kprobe_args5(args), (unsigned long long )PT_REGS_PARM6(ctx)
795
+ #define ___bpf_kprobe_args7 (x , args ...) ___bpf_kprobe_args6(args), (unsigned long long )PT_REGS_PARM7(ctx)
796
+ #define ___bpf_kprobe_args8 (x , args ...) ___bpf_kprobe_args7(args), (unsigned long long )PT_REGS_PARM8(ctx)
797
797
#define ___bpf_kprobe_args (args ...) ___bpf_apply(___bpf_kprobe_args, ___bpf_narg(args))(args)
798
798
799
799
/*
@@ -821,7 +821,7 @@ static __always_inline typeof(name(0)) \
821
821
____##name(struct pt_regs *ctx, ##args)
822
822
823
823
#define ___bpf_kretprobe_args0 () ctx
824
- #define ___bpf_kretprobe_args1 (x ) ___bpf_kretprobe_args0(), (void * )PT_REGS_RC(ctx)
824
+ #define ___bpf_kretprobe_args1 (x ) ___bpf_kretprobe_args0(), (unsigned long long )PT_REGS_RC(ctx)
825
825
#define ___bpf_kretprobe_args (args ...) ___bpf_apply(___bpf_kretprobe_args, ___bpf_narg(args))(args)
826
826
827
827
/*
@@ -845,24 +845,24 @@ static __always_inline typeof(name(0)) ____##name(struct pt_regs *ctx, ##args)
845
845
846
846
/* If kernel has CONFIG_ARCH_HAS_SYSCALL_WRAPPER, read pt_regs directly */
847
847
#define ___bpf_syscall_args0 () ctx
848
- #define ___bpf_syscall_args1 (x ) ___bpf_syscall_args0(), (void * )PT_REGS_PARM1_SYSCALL(regs)
849
- #define ___bpf_syscall_args2 (x , args ...) ___bpf_syscall_args1(args), (void * )PT_REGS_PARM2_SYSCALL(regs)
850
- #define ___bpf_syscall_args3 (x , args ...) ___bpf_syscall_args2(args), (void * )PT_REGS_PARM3_SYSCALL(regs)
851
- #define ___bpf_syscall_args4 (x , args ...) ___bpf_syscall_args3(args), (void * )PT_REGS_PARM4_SYSCALL(regs)
852
- #define ___bpf_syscall_args5 (x , args ...) ___bpf_syscall_args4(args), (void * )PT_REGS_PARM5_SYSCALL(regs)
853
- #define ___bpf_syscall_args6 (x , args ...) ___bpf_syscall_args5(args), (void * )PT_REGS_PARM6_SYSCALL(regs)
854
- #define ___bpf_syscall_args7 (x , args ...) ___bpf_syscall_args6(args), (void * )PT_REGS_PARM7_SYSCALL(regs)
848
+ #define ___bpf_syscall_args1 (x ) ___bpf_syscall_args0(), (unsigned long long )PT_REGS_PARM1_SYSCALL(regs)
849
+ #define ___bpf_syscall_args2 (x , args ...) ___bpf_syscall_args1(args), (unsigned long long )PT_REGS_PARM2_SYSCALL(regs)
850
+ #define ___bpf_syscall_args3 (x , args ...) ___bpf_syscall_args2(args), (unsigned long long )PT_REGS_PARM3_SYSCALL(regs)
851
+ #define ___bpf_syscall_args4 (x , args ...) ___bpf_syscall_args3(args), (unsigned long long )PT_REGS_PARM4_SYSCALL(regs)
852
+ #define ___bpf_syscall_args5 (x , args ...) ___bpf_syscall_args4(args), (unsigned long long )PT_REGS_PARM5_SYSCALL(regs)
853
+ #define ___bpf_syscall_args6 (x , args ...) ___bpf_syscall_args5(args), (unsigned long long )PT_REGS_PARM6_SYSCALL(regs)
854
+ #define ___bpf_syscall_args7 (x , args ...) ___bpf_syscall_args6(args), (unsigned long long )PT_REGS_PARM7_SYSCALL(regs)
855
855
#define ___bpf_syscall_args (args ...) ___bpf_apply(___bpf_syscall_args, ___bpf_narg(args))(args)
856
856
857
857
/* If kernel doesn't have CONFIG_ARCH_HAS_SYSCALL_WRAPPER, we have to BPF_CORE_READ from pt_regs */
858
858
#define ___bpf_syswrap_args0 () ctx
859
- #define ___bpf_syswrap_args1 (x ) ___bpf_syswrap_args0(), (void * )PT_REGS_PARM1_CORE_SYSCALL(regs)
860
- #define ___bpf_syswrap_args2 (x , args ...) ___bpf_syswrap_args1(args), (void * )PT_REGS_PARM2_CORE_SYSCALL(regs)
861
- #define ___bpf_syswrap_args3 (x , args ...) ___bpf_syswrap_args2(args), (void * )PT_REGS_PARM3_CORE_SYSCALL(regs)
862
- #define ___bpf_syswrap_args4 (x , args ...) ___bpf_syswrap_args3(args), (void * )PT_REGS_PARM4_CORE_SYSCALL(regs)
863
- #define ___bpf_syswrap_args5 (x , args ...) ___bpf_syswrap_args4(args), (void * )PT_REGS_PARM5_CORE_SYSCALL(regs)
864
- #define ___bpf_syswrap_args6 (x , args ...) ___bpf_syswrap_args5(args), (void * )PT_REGS_PARM6_CORE_SYSCALL(regs)
865
- #define ___bpf_syswrap_args7 (x , args ...) ___bpf_syswrap_args6(args), (void * )PT_REGS_PARM7_CORE_SYSCALL(regs)
859
+ #define ___bpf_syswrap_args1 (x ) ___bpf_syswrap_args0(), (unsigned long long )PT_REGS_PARM1_CORE_SYSCALL(regs)
860
+ #define ___bpf_syswrap_args2 (x , args ...) ___bpf_syswrap_args1(args), (unsigned long long )PT_REGS_PARM2_CORE_SYSCALL(regs)
861
+ #define ___bpf_syswrap_args3 (x , args ...) ___bpf_syswrap_args2(args), (unsigned long long )PT_REGS_PARM3_CORE_SYSCALL(regs)
862
+ #define ___bpf_syswrap_args4 (x , args ...) ___bpf_syswrap_args3(args), (unsigned long long )PT_REGS_PARM4_CORE_SYSCALL(regs)
863
+ #define ___bpf_syswrap_args5 (x , args ...) ___bpf_syswrap_args4(args), (unsigned long long )PT_REGS_PARM5_CORE_SYSCALL(regs)
864
+ #define ___bpf_syswrap_args6 (x , args ...) ___bpf_syswrap_args5(args), (unsigned long long )PT_REGS_PARM6_CORE_SYSCALL(regs)
865
+ #define ___bpf_syswrap_args7 (x , args ...) ___bpf_syswrap_args6(args), (unsigned long long )PT_REGS_PARM7_CORE_SYSCALL(regs)
866
866
#define ___bpf_syswrap_args (args ...) ___bpf_apply(___bpf_syswrap_args, ___bpf_narg(args))(args)
867
867
868
868
/*
0 commit comments