arch/arc/net/bpf_jit_core.c
1314
const struct bpf_insn *insn = &prog->insnsi[i];
arch/arc/net/bpf_jit_core.c
252
const struct bpf_insn *insn = ctx->prog->insnsi;
arch/arc/net/bpf_jit_core.c
331
const struct bpf_insn *insn)
arch/arc/net/bpf_jit_core.c
342
static inline s32 get_offset(const struct bpf_insn *insn)
arch/arc/net/bpf_jit_core.c
369
const struct bpf_insn *insn)
arch/arc/net/bpf_jit_core.c
375
static inline bool has_imm(const struct bpf_insn *insn)
arch/arc/net/bpf_jit_core.c
488
const struct bpf_insn *insn)
arch/arc/net/bpf_jit_core.c
518
const struct bpf_insn *insn)
arch/arc/net/bpf_jit_core.c
535
const struct bpf_insn *insn)
arch/arc/net/bpf_jit_core.c
582
const struct bpf_insn *insn,
arch/arc/net/bpf_jit_core.c
643
const struct bpf_insn *insn, u8 *len)
arch/arc/net/bpf_jit_core.c
667
const struct bpf_insn *insn,
arch/arc/net/bpf_jit_core.c
704
const struct bpf_insn *insn,
arch/arc/net/bpf_jit_core.c
738
const struct bpf_insn *insn = &ctx->prog->insnsi[idx];
arch/arm/net/bpf_jit_32.c
1589
static int build_insn(const struct bpf_insn *insn, struct jit_ctx *ctx)
arch/arm/net/bpf_jit_32.c
2105
const struct bpf_insn *insn = &(prog->insnsi[i]);
arch/arm64/net/bpf_jit_comp.c
1113
static int add_exception_handler(const struct bpf_insn *insn,
arch/arm64/net/bpf_jit_comp.c
1201
static int build_insn(const struct bpf_insn *insn, struct jit_ctx *ctx,
arch/arm64/net/bpf_jit_comp.c
1630
const struct bpf_insn insn1 = insn[1];
arch/arm64/net/bpf_jit_comp.c
1917
const struct bpf_insn *insn = &prog->insnsi[i];
arch/arm64/net/bpf_jit_comp.c
252
static inline int bpf2a64_offset(int bpf_insn, int off,
arch/arm64/net/bpf_jit_comp.c
256
bpf_insn++;
arch/arm64/net/bpf_jit_comp.c
262
return ctx->offset[bpf_insn + off] - (ctx->offset[bpf_insn] - 1);
arch/arm64/net/bpf_jit_comp.c
3124
bool bpf_jit_supports_insn(struct bpf_insn *insn, bool in_arena)
arch/arm64/net/bpf_jit_comp.c
378
const struct bpf_insn *insn = &prog->insnsi[0];
arch/arm64/net/bpf_jit_comp.c
704
static int emit_atomic_ld_st(const struct bpf_insn *insn, struct jit_ctx *ctx)
arch/arm64/net/bpf_jit_comp.c
779
static int emit_lse_atomic(const struct bpf_insn *insn, struct jit_ctx *ctx)
arch/arm64/net/bpf_jit_comp.c
846
static int emit_ll_sc_atomic(const struct bpf_insn *insn, struct jit_ctx *ctx)
arch/loongarch/net/bpf_jit.c
1284
const struct bpf_insn *insn = &prog->insnsi[i];
arch/loongarch/net/bpf_jit.c
347
static void emit_atomic(const struct bpf_insn *insn, struct jit_ctx *ctx)
arch/loongarch/net/bpf_jit.c
478
static int add_exception_handler(const struct bpf_insn *insn,
arch/loongarch/net/bpf_jit.c
540
static int build_insn(const struct bpf_insn *insn, struct jit_ctx *ctx, bool extra_pass)
arch/loongarch/net/bpf_jit.h
55
static inline int bpf2la_offset(int bpf_insn, int off, const struct jit_ctx *ctx)
arch/loongarch/net/bpf_jit.h
58
bpf_insn++;
arch/loongarch/net/bpf_jit.h
64
return (ctx->offset[bpf_insn + off] - (ctx->offset[bpf_insn] - 1));
arch/mips/net/bpf_jit_comp.c
857
const struct bpf_insn *insn = &prog->insnsi[i];
arch/mips/net/bpf_jit_comp.h
233
int build_insn(const struct bpf_insn *insn, struct jit_context *ctx);
arch/mips/net/bpf_jit_comp32.c
1263
static int emit_call(struct jit_context *ctx, const struct bpf_insn *insn)
arch/mips/net/bpf_jit_comp32.c
1463
int build_insn(const struct bpf_insn *insn, struct jit_context *ctx)
arch/mips/net/bpf_jit_comp64.c
439
static int emit_call(struct jit_context *ctx, const struct bpf_insn *insn)
arch/mips/net/bpf_jit_comp64.c
635
int build_insn(const struct bpf_insn *insn, struct jit_context *ctx)
arch/parisc/net/bpf_jit.h
476
int bpf_jit_emit_insn(const struct bpf_insn *insn, struct hppa_jit_context *ctx,
arch/parisc/net/bpf_jit_comp32.c
1116
int bpf_jit_emit_insn(const struct bpf_insn *insn, struct hppa_jit_context *ctx,
arch/parisc/net/bpf_jit_comp32.c
1403
struct bpf_insn insn1 = insn[1];
arch/parisc/net/bpf_jit_comp64.c
1001
struct bpf_insn insn1 = insn[1];
arch/parisc/net/bpf_jit_comp64.c
407
static void init_regs(u8 *rd, u8 *rs, const struct bpf_insn *insn,
arch/parisc/net/bpf_jit_comp64.c
592
int bpf_jit_emit_insn(const struct bpf_insn *insn, struct hppa_jit_context *ctx,
arch/parisc/net/bpf_jit_core.c
23
const struct bpf_insn *insn = &prog->insnsi[i];
arch/powerpc/net/bpf_jit_comp.c
466
bool bpf_jit_supports_insn(struct bpf_insn *insn, bool in_arena)
arch/powerpc/net/bpf_jit_comp32.c
290
const struct bpf_insn *insn = fp->insnsi;
arch/powerpc/net/bpf_jit_comp64.c
555
const struct bpf_insn *insn)
arch/powerpc/net/bpf_jit_comp64.c
706
const struct bpf_insn *insn, u32 *jmp_off,
arch/powerpc/net/bpf_jit_comp64.c
840
static int emit_atomic_ld_st(const struct bpf_insn insn, struct codegen_context *ctx, u32 *image)
arch/powerpc/net/bpf_jit_comp64.c
911
const struct bpf_insn *insn = fp->insnsi;
arch/riscv/net/bpf_jit.h
1333
int bpf_jit_emit_insn(const struct bpf_insn *insn, struct rv_jit_context *ctx,
arch/riscv/net/bpf_jit_comp32.c
1233
struct bpf_insn insn1 = insn[1];
arch/riscv/net/bpf_jit_comp32.c
953
int bpf_jit_emit_insn(const struct bpf_insn *insn, struct rv_jit_context *ctx,
arch/riscv/net/bpf_jit_comp64.c
1369
int bpf_jit_emit_insn(const struct bpf_insn *insn, struct rv_jit_context *ctx,
arch/riscv/net/bpf_jit_comp64.c
1861
struct bpf_insn insn1 = insn[1];
arch/riscv/net/bpf_jit_comp64.c
2113
bool bpf_jit_supports_insn(struct bpf_insn *insn, bool in_arena)
arch/riscv/net/bpf_jit_comp64.c
406
static void init_regs(u8 *rd, u8 *rs, const struct bpf_insn *insn,
arch/riscv/net/bpf_jit_comp64.c
564
static int emit_atomic_ld_st(u8 rd, u8 rs, const struct bpf_insn *insn,
arch/riscv/net/bpf_jit_comp64.c
606
static int emit_atomic_rmw(u8 rd, u8 rs, const struct bpf_insn *insn,
arch/riscv/net/bpf_jit_comp64.c
765
static int add_exception_handler(const struct bpf_insn *insn, int dst_reg,
arch/riscv/net/bpf_jit_core.c
25
const struct bpf_insn *insn = &prog->insnsi[i];
arch/s390/net/bpf_jit_comp.c
2261
struct bpf_insn *insn;
arch/s390/net/bpf_jit_comp.c
2959
bool bpf_jit_supports_insn(struct bpf_insn *insn, bool in_arena)
arch/s390/net/bpf_jit_comp.c
740
static void bpf_jit_probe_load_pre(struct bpf_jit *jit, struct bpf_insn *insn,
arch/s390/net/bpf_jit_comp.c
757
static void bpf_jit_probe_store_pre(struct bpf_jit *jit, struct bpf_insn *insn,
arch/s390/net/bpf_jit_comp.c
770
struct bpf_insn *insn,
arch/s390/net/bpf_jit_comp.c
869
struct bpf_insn *insn = &fp->insnsi[i];
arch/sparc/net/bpf_jit_comp_64.c
1245
const struct bpf_insn insn1 = insn[1];
arch/sparc/net/bpf_jit_comp_64.c
1444
const struct bpf_insn *insn = &prog->insnsi[i];
arch/sparc/net/bpf_jit_comp_64.c
895
static int build_insn(const struct bpf_insn *insn, struct jit_ctx *ctx)
arch/x86/net/bpf_jit_comp.c
1504
static void detect_reg_usage(struct bpf_insn *insn, int insn_cnt,
arch/x86/net/bpf_jit_comp.c
1656
struct bpf_insn *insn = bpf_prog->insnsi;
arch/x86/net/bpf_jit_comp.c
4076
bool bpf_jit_supports_insn(struct bpf_insn *insn, bool in_arena)
arch/x86/net/bpf_jit_comp32.c
1570
const struct bpf_insn *insn, u8 **pprog)
arch/x86/net/bpf_jit_comp32.c
1662
struct bpf_insn *insn = bpf_prog->insnsi;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
1297
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
1328
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
1361
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
1402
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
1439
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
1505
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
1838
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
1901
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
1915
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
1926
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
1940
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
1961
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
1976
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
2021
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
2060
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
2135
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
2172
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
2247
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
2289
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
2328
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
2338
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
2444
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
2468
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
2487
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
2495
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
2526
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
2534
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
2552
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
3137
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
3166
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
3179
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
3201
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
3235
const struct bpf_insn *insn = &meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
3893
struct bpf_insn insn = meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
3919
struct bpf_insn insn = meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
3968
struct bpf_insn insn, next;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
4002
struct bpf_insn insn, next1, next2;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
4052
struct bpf_insn *ld = &ld_meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
4053
struct bpf_insn *st = &st_meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
4088
struct bpf_insn *prev_ld,
drivers/net/ethernet/netronome/nfp/bpf/jit.c
4089
struct bpf_insn *prev_st)
drivers/net/ethernet/netronome/nfp/bpf/jit.c
4092
struct bpf_insn *ld = &ld_meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
4093
struct bpf_insn *st = &st_meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
4140
cross_mem_access(struct bpf_insn *ld, struct nfp_insn_meta *head_ld_meta,
drivers/net/ethernet/netronome/nfp/bpf/jit.c
4191
struct bpf_insn *prev_ld = NULL;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
4192
struct bpf_insn *prev_st = NULL;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
4196
struct bpf_insn *ld = &meta1->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
4197
struct bpf_insn *st = &meta2->insn;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
4281
struct bpf_insn *insn;
drivers/net/ethernet/netronome/nfp/bpf/main.h
301
struct bpf_insn insn;
drivers/net/ethernet/netronome/nfp/bpf/main.h
306
struct bpf_insn *paired_st;
drivers/net/ethernet/netronome/nfp/bpf/main.h
462
struct bpf_insn insn = meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/main.h
470
struct bpf_insn insn = meta->insn;
drivers/net/ethernet/netronome/nfp/bpf/main.h
571
struct bpf_insn *insn);
drivers/net/ethernet/netronome/nfp/bpf/offload.c
149
nfp_prog_prepare(struct nfp_prog *nfp_prog, const struct bpf_insn *prog,
drivers/net/ethernet/netronome/nfp/bpf/verifier.c
808
struct bpf_insn *insn)
include/linux/bpf-cgroup.h
27
const struct bpf_insn *insn);
include/linux/bpf-cgroup.h
29
const struct bpf_insn *insn);
include/linux/bpf-cgroup.h
31
const struct bpf_insn *insn);
include/linux/bpf.h
1067
static bool bpf_is_ldimm64(const struct bpf_insn *insn)
include/linux/bpf.h
1072
static inline bool bpf_pseudo_func(const struct bpf_insn *insn)
include/linux/bpf.h
1081
bpf_atomic_is_load_store(const struct bpf_insn *atomic_insn)
include/linux/bpf.h
1110
int (*gen_prologue)(struct bpf_insn *insn, bool direct_write,
include/linux/bpf.h
1112
int (*gen_epilogue)(struct bpf_insn *insn, const struct bpf_prog *prog,
include/linux/bpf.h
1114
int (*gen_ld_abs)(const struct bpf_insn *orig,
include/linux/bpf.h
1115
struct bpf_insn *insn_buf);
include/linux/bpf.h
1117
const struct bpf_insn *src,
include/linux/bpf.h
1118
struct bpf_insn *dst,
include/linux/bpf.h
1132
struct bpf_insn *insn);
include/linux/bpf.h
123
int (*map_gen_lookup)(struct bpf_map *map, struct bpf_insn *insn_buf);
include/linux/bpf.h
1399
const struct bpf_insn *insnsi,
include/linux/bpf.h
1514
const struct bpf_insn *insnsi, \
include/linux/bpf.h
1526
const struct bpf_insn *insnsi, \
include/linux/bpf.h
1804
const struct bpf_insn *insn);
include/linux/bpf.h
1810
DECLARE_FLEX_ARRAY(struct bpf_insn, insnsi);
include/linux/bpf.h
2339
const struct bpf_insn *src,
include/linux/bpf.h
2340
struct bpf_insn *dst,
include/linux/bpf.h
2923
void bpf_patch_call_args(struct bpf_insn *insn, u32 stack_depth);
include/linux/bpf.h
3042
const struct bpf_insn *insn);
include/linux/bpf.h
3329
const struct bpf_insn *insn)
include/linux/bpf.h
3757
const struct bpf_insn *si,
include/linux/bpf.h
3758
struct bpf_insn *insn_buf,
include/linux/bpf.h
3777
const struct bpf_insn *si,
include/linux/bpf.h
3778
struct bpf_insn *insn_buf,
include/linux/bpf.h
3806
const struct bpf_insn *si,
include/linux/bpf.h
3807
struct bpf_insn *insn_buf,
include/linux/bpf.h
3815
const struct bpf_insn *si,
include/linux/bpf.h
3816
struct bpf_insn *insn_buf,
include/linux/bpf.h
3828
const struct bpf_insn *si,
include/linux/bpf.h
3829
struct bpf_insn *insn_buf,
include/linux/bpf.h
3843
const struct bpf_insn *si,
include/linux/bpf.h
3844
struct bpf_insn *insn_buf,
include/linux/bpf.h
74
const struct bpf_insn *);
include/linux/bpf_verifier.h
1064
static inline bool insn_is_gotox(struct bpf_insn *insn)
include/linux/bpf_verifier.h
1082
int bpf_jmp_offset(struct bpf_insn *insn);
include/linux/bpf_verifier.h
845
struct bpf_insn insn_buf[INSN_BUF_SIZE];
include/linux/bpf_verifier.h
846
struct bpf_insn epilogue_buf[INSN_BUF_SIZE];
include/linux/bpf_verifier.h
912
struct bpf_insn *insn);
include/linux/filter.h
1022
return prog->len * sizeof(struct bpf_insn);
include/linux/filter.h
106
((struct bpf_insn) { \
include/linux/filter.h
1153
((u64 (*)(u64, u64, u64, u64, u64, const struct bpf_insn *)) \
include/linux/filter.h
1167
bool bpf_jit_supports_insn(struct bpf_insn *insn, bool in_arena);
include/linux/filter.h
117
((struct bpf_insn) { \
include/linux/filter.h
1186
const struct bpf_insn *patch, u32 len);
include/linux/filter.h
130
((struct bpf_insn) { \
include/linux/filter.h
1308
const struct bpf_insn *insn, bool extra_pass,
include/linux/filter.h
140
((struct bpf_insn) { \
include/linux/filter.h
152
((struct bpf_insn) { \
include/linux/filter.h
162
((struct bpf_insn) { \
include/linux/filter.h
172
((struct bpf_insn) { \
include/linux/filter.h
180
((struct bpf_insn) { \
include/linux/filter.h
194
((struct bpf_insn) { \
include/linux/filter.h
201
static inline bool insn_is_mov_percpu_addr(const struct bpf_insn *insn)
include/linux/filter.h
209
((struct bpf_insn) { \
include/linux/filter.h
217
((struct bpf_insn) { \
include/linux/filter.h
227
((struct bpf_insn) { \
include/linux/filter.h
235
((struct bpf_insn) { \
include/linux/filter.h
244
((struct bpf_insn) { \
include/linux/filter.h
251
static inline bool insn_is_zext(const struct bpf_insn *insn)
include/linux/filter.h
259
static inline bool insn_is_cast_user(const struct bpf_insn *insn)
include/linux/filter.h
271
((struct bpf_insn) { \
include/linux/filter.h
277
((struct bpf_insn) { \
include/linux/filter.h
291
((struct bpf_insn) { \
include/linux/filter.h
299
((struct bpf_insn) { \
include/linux/filter.h
309
((struct bpf_insn) { \
include/linux/filter.h
319
((struct bpf_insn) { \
include/linux/filter.h
329
((struct bpf_insn) { \
include/linux/filter.h
339
((struct bpf_insn) { \
include/linux/filter.h
349
((struct bpf_insn) { \
include/linux/filter.h
375
((struct bpf_insn) { \
include/linux/filter.h
388
((struct bpf_insn) { \
include/linux/filter.h
398
((struct bpf_insn) { \
include/linux/filter.h
408
((struct bpf_insn) { \
include/linux/filter.h
418
((struct bpf_insn) { \
include/linux/filter.h
428
((struct bpf_insn) { \
include/linux/filter.h
438
((struct bpf_insn) { \
include/linux/filter.h
448
((struct bpf_insn) { \
include/linux/filter.h
458
((struct bpf_insn) { \
include/linux/filter.h
470
((struct bpf_insn) { \
include/linux/filter.h
480
((struct bpf_insn) { \
include/linux/filter.h
490
((struct bpf_insn) { \
include/linux/filter.h
500
((struct bpf_insn) { \
include/linux/filter.h
510
((struct bpf_insn) { \
include/linux/filter.h
696
const struct bpf_insn *insnsi,
include/linux/filter.h
698
const struct bpf_insn *));
kernel/bpf/arena.c
46
#define GUARD_SZ round_up(1ull << sizeof_field(struct bpf_insn, off) * 8, PAGE_SIZE << 1)
kernel/bpf/arraymap.c
1414
struct bpf_insn *insn_buf)
kernel/bpf/arraymap.c
1418
struct bpf_insn *insn = insn_buf;
kernel/bpf/arraymap.c
220
static int array_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf)
kernel/bpf/arraymap.c
223
struct bpf_insn *insn = insn_buf;
kernel/bpf/arraymap.c
265
static int percpu_array_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf)
kernel/bpf/arraymap.c
268
struct bpf_insn *insn = insn_buf;
kernel/bpf/cgroup.c
118
const struct bpf_insn *insn)
kernel/bpf/cgroup.c
140
const struct bpf_insn *insn)
kernel/bpf/cgroup.c
2415
const struct bpf_insn *si,
kernel/bpf/cgroup.c
2416
struct bpf_insn *insn_buf,
kernel/bpf/cgroup.c
2419
struct bpf_insn *insn = insn_buf;
kernel/bpf/cgroup.c
2615
const struct bpf_insn *si,
kernel/bpf/cgroup.c
2616
struct bpf_insn *insn_buf,
kernel/bpf/cgroup.c
2620
struct bpf_insn *insn = insn_buf;
kernel/bpf/cgroup.c
2692
static int cg_sockopt_get_prologue(struct bpf_insn *insn_buf,
kernel/bpf/cgroup.c
96
const struct bpf_insn *insn)
kernel/bpf/core.c
1248
const struct bpf_insn *insn, bool extra_pass,
kernel/bpf/core.c
1294
static int bpf_jit_blind_insn(const struct bpf_insn *from,
kernel/bpf/core.c
1295
const struct bpf_insn *aux,
kernel/bpf/core.c
1296
struct bpf_insn *to_buff,
kernel/bpf/core.c
1299
struct bpf_insn *to = to_buff;
kernel/bpf/core.c
1438
*to++ = (struct bpf_insn) {
kernel/bpf/core.c
1512
struct bpf_insn insn_buff[16], aux[2];
kernel/bpf/core.c
1515
struct bpf_insn *insn;
kernel/bpf/core.c
1775
static u64 ___bpf_prog_run(u64 *regs, const struct bpf_insn *insn)
kernel/bpf/core.c
2325
static unsigned int PROG_NAME(stack_size)(const void *ctx, const struct bpf_insn *insn) \
kernel/bpf/core.c
2339
const struct bpf_insn *insn) \
kernel/bpf/core.c
2372
const struct bpf_insn *insn) = {
kernel/bpf/core.c
2381
const struct bpf_insn *insn) = {
kernel/bpf/core.c
2389
void bpf_patch_call_args(struct bpf_insn *insn, u32 stack_depth)
kernel/bpf/core.c
2401
const struct bpf_insn *insn)
kernel/bpf/core.c
2603
const struct bpf_insn *insn)
kernel/bpf/core.c
304
struct bpf_insn *dst;
kernel/bpf/core.c
3169
bool __weak bpf_jit_supports_insn(struct bpf_insn *insn, bool in_arena)
kernel/bpf/core.c
339
static int bpf_adj_delta_to_imm(struct bpf_insn *insn, u32 pos, s32 end_old,
kernel/bpf/core.c
357
static int bpf_adj_delta_to_off(struct bpf_insn *insn, u32 pos, s32 end_old,
kernel/bpf/core.c
392
struct bpf_insn *insn = prog->insnsi;
kernel/bpf/core.c
456
const struct bpf_insn *patch, u32 len)
kernel/bpf/core.c
524
sizeof(struct bpf_insn) * (prog->len - off - cnt));
kernel/bpf/disasm.c
140
const struct bpf_insn *insn)
kernel/bpf/disasm.c
150
const struct bpf_insn *insn)
kernel/bpf/disasm.c
157
static bool is_sdiv_smod(const struct bpf_insn *insn)
kernel/bpf/disasm.c
163
static bool is_movsx(const struct bpf_insn *insn)
kernel/bpf/disasm.c
169
static bool is_addr_space_cast(const struct bpf_insn *insn)
kernel/bpf/disasm.c
17
const struct bpf_insn *insn,
kernel/bpf/disasm.c
181
static inline bool is_mov_percpu_addr(const struct bpf_insn *insn)
kernel/bpf/disasm.c
187
const struct bpf_insn *insn,
kernel/bpf/disasm.c
44
const struct bpf_insn *insn,
kernel/bpf/disasm.h
25
const struct bpf_insn *insn);
kernel/bpf/disasm.h
27
const struct bpf_insn *insn,
kernel/bpf/disasm.h
38
const struct bpf_insn *insn,
kernel/bpf/hashtab.c
2408
static int htab_percpu_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf)
kernel/bpf/hashtab.c
2410
struct bpf_insn *insn = insn_buf;
kernel/bpf/hashtab.c
2699
struct bpf_insn *insn_buf)
kernel/bpf/hashtab.c
2701
struct bpf_insn *insn = insn_buf;
kernel/bpf/hashtab.c
773
static int htab_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf)
kernel/bpf/hashtab.c
775
struct bpf_insn *insn = insn_buf;
kernel/bpf/hashtab.c
813
struct bpf_insn *insn_buf)
kernel/bpf/hashtab.c
815
struct bpf_insn *insn = insn_buf;
kernel/bpf/liveness.c
439
int bpf_jmp_offset(struct bpf_insn *insn)
kernel/bpf/liveness.c
484
struct bpf_insn *insn = &prog->insnsi[idx];
kernel/bpf/offload.c
339
struct bpf_insn *insn)
kernel/bpf/offload.c
408
const struct bpf_insn *insn)
kernel/bpf/syscall.c
2841
prog->len * sizeof(struct bpf_insn));
kernel/bpf/syscall.c
4923
static struct bpf_insn *bpf_insn_prepare_dump(const struct bpf_prog *prog,
kernel/bpf/syscall.c
4927
struct bpf_insn *insns;
kernel/bpf/syscall.c
5089
struct bpf_insn *insns_sanitized;
kernel/bpf/verifier.c
10817
static int push_callback_call(struct bpf_verifier_env *env, struct bpf_insn *insn,
kernel/bpf/verifier.c
10886
static int check_func_call(struct bpf_verifier_env *env, struct bpf_insn *insn,
kernel/bpf/verifier.c
11209
struct bpf_insn *insn = env->prog->insnsi;
kernel/bpf/verifier.c
11640
static int check_helper_call(struct bpf_verifier_env *env, struct bpf_insn *insn,
kernel/bpf/verifier.c
13107
static bool is_bpf_throw_kfunc(struct bpf_insn *insn)
kernel/bpf/verifier.c
14110
static int check_kfunc_call(struct bpf_verifier_env *env, struct bpf_insn *insn,
kernel/bpf/verifier.c
14580
const struct bpf_insn *insn)
kernel/bpf/verifier.c
14605
struct bpf_insn *insn)
kernel/bpf/verifier.c
14626
const struct bpf_insn *insn,
kernel/bpf/verifier.c
14646
struct bpf_insn *insn,
kernel/bpf/verifier.c
14755
const struct bpf_insn *insn, int reason,
kernel/bpf/verifier.c
14827
const struct bpf_insn *insn,
kernel/bpf/verifier.c
14864
struct bpf_insn *insn,
kernel/bpf/verifier.c
15911
static void scalar_byte_swap(struct bpf_reg_state *dst_reg, struct bpf_insn *insn)
kernel/bpf/verifier.c
15960
static bool is_safe_to_compute_dst_reg_range(struct bpf_insn *insn,
kernel/bpf/verifier.c
16010
static int maybe_fork_scalars(struct bpf_verifier_env *env, struct bpf_insn *insn,
kernel/bpf/verifier.c
16044
struct bpf_insn *insn,
kernel/bpf/verifier.c
16202
struct bpf_insn *insn)
kernel/bpf/verifier.c
16361
static int check_alu_op(struct bpf_verifier_env *env, struct bpf_insn *insn)
kernel/bpf/verifier.c
17264
static bool try_match_pkt_pointers(const struct bpf_insn *insn,
kernel/bpf/verifier.c
17485
struct bpf_insn *insn, int *insn_idx)
kernel/bpf/verifier.c
17742
static int check_ld_imm(struct bpf_verifier_env *env, struct bpf_insn *insn)
kernel/bpf/verifier.c
17866
static int check_ld_abs(struct bpf_verifier_env *env, struct bpf_insn *insn)
kernel/bpf/verifier.c
18296
static int visit_func_call_insn(int t, struct bpf_insn *insns,
kernel/bpf/verifier.c
18353
static bool get_call_summary(struct bpf_verifier_env *env, struct bpf_insn *call,
kernel/bpf/verifier.c
18472
struct bpf_insn *insns = env->prog->insnsi, *stx, *ldx;
kernel/bpf/verifier.c
18473
struct bpf_insn *call = &env->prog->insnsi[insn_idx];
kernel/bpf/verifier.c
18558
struct bpf_insn *insn;
kernel/bpf/verifier.c
18831
struct bpf_insn *insns = env->prog->insnsi, *insn = &insns[t];
kernel/bpf/verifier.c
19014
struct bpf_insn *insn = &env->prog->insnsi[i];
kernel/bpf/verifier.c
21020
static int check_indirect_jump(struct bpf_verifier_env *env, struct bpf_insn *insn)
kernel/bpf/verifier.c
21079
struct bpf_insn *insn = &env->prog->insnsi[env->insn_idx];
kernel/bpf/verifier.c
21248
struct bpf_insn *insns = env->prog->insnsi;
kernel/bpf/verifier.c
21254
struct bpf_insn *insn;
kernel/bpf/verifier.c
21492
struct bpf_insn *insn,
kernel/bpf/verifier.c
21575
struct bpf_insn *insn,
kernel/bpf/verifier.c
21802
struct bpf_insn *insn = env->prog->insnsi;
kernel/bpf/verifier.c
21953
struct bpf_insn *insn = env->prog->insnsi;
kernel/bpf/verifier.c
21974
struct bpf_insn *insn = new_prog->insnsi;
kernel/bpf/verifier.c
22055
const struct bpf_insn *patch, u32 len)
kernel/bpf/verifier.c
22092
struct bpf_insn *insn = prog->insnsi;
kernel/bpf/verifier.c
22250
struct bpf_insn *insns = env->prog->insnsi;
kernel/bpf/verifier.c
22311
struct bpf_insn trap = BPF_JMP_IMM(BPF_JA, 0, 0, -1);
kernel/bpf/verifier.c
22312
struct bpf_insn *insn = env->prog->insnsi;
kernel/bpf/verifier.c
22341
struct bpf_insn ja = BPF_JMP_IMM(BPF_JA, 0, 0, 0);
kernel/bpf/verifier.c
22342
struct bpf_insn *insn = env->prog->insnsi;
kernel/bpf/verifier.c
22388
static const struct bpf_insn NOP = BPF_JMP_IMM(BPF_JA, 0, 0, 0);
kernel/bpf/verifier.c
22389
static const struct bpf_insn MAY_GOTO_0 = BPF_RAW_INSN(BPF_JMP | BPF_JCOND, 0, 0, 0, 0);
kernel/bpf/verifier.c
22393
struct bpf_insn *insn = env->prog->insnsi;
kernel/bpf/verifier.c
22419
struct bpf_insn *patch;
kernel/bpf/verifier.c
22421
struct bpf_insn *zext_patch = env->insn_buf;
kernel/bpf/verifier.c
22422
struct bpf_insn *rnd_hi32_patch = &env->insn_buf[2];
kernel/bpf/verifier.c
22425
struct bpf_insn *insns = env->prog->insnsi;
kernel/bpf/verifier.c
22436
struct bpf_insn insn;
kernel/bpf/verifier.c
22528
struct bpf_insn *epilogue_buf = env->epilogue_buf;
kernel/bpf/verifier.c
22529
struct bpf_insn *insn_buf = env->insn_buf;
kernel/bpf/verifier.c
22530
struct bpf_insn *insn;
kernel/bpf/verifier.c
22600
struct bpf_insn *patch = insn_buf;
kernel/bpf/verifier.c
22673
struct bpf_insn *patch = insn_buf;
kernel/bpf/verifier.c
22827
struct bpf_insn *insn;
kernel/bpf/verifier.c
22895
len * sizeof(struct bpf_insn));
kernel/bpf/verifier.c
23112
struct bpf_insn *insn = prog->insnsi;
kernel/bpf/verifier.c
23212
struct bpf_insn *insn,
kernel/bpf/verifier.c
23213
struct bpf_insn *insn_buf,
kernel/bpf/verifier.c
23217
struct bpf_insn addr[2] = { BPF_LD_IMM64(struct_meta_reg, (long)kptr_struct_meta) };
kernel/bpf/verifier.c
23226
static int fixup_kfunc_call(struct bpf_verifier_env *env, struct bpf_insn *insn,
kernel/bpf/verifier.c
23227
struct bpf_insn *insn_buf, int insn_idx, int *cnt)
kernel/bpf/verifier.c
23260
struct bpf_insn addr[2] = { BPF_LD_IMM64(BPF_REG_2, (long)kptr_struct_meta) };
kernel/bpf/verifier.c
23278
struct bpf_insn addr[2] = { BPF_LD_IMM64(BPF_REG_2, (long)kptr_struct_meta) };
kernel/bpf/verifier.c
23356
struct bpf_insn ld_addrs[2] = { BPF_LD_IMM64(regno, (long)env->prog->aux) };
kernel/bpf/verifier.c
23368
static int add_hidden_subprog(struct bpf_verifier_env *env, struct bpf_insn *patch, int len)
kernel/bpf/verifier.c
23402
struct bpf_insn *insn = prog->insnsi;
kernel/bpf/verifier.c
23407
struct bpf_insn *insn_buf = env->insn_buf;
kernel/bpf/verifier.c
23416
struct bpf_insn *patch = insn_buf;
kernel/bpf/verifier.c
23457
struct bpf_insn *patch = insn_buf;
kernel/bpf/verifier.c
23487
struct bpf_insn *patch = insn_buf;
kernel/bpf/verifier.c
23573
struct bpf_insn *patch = insn_buf;
kernel/bpf/verifier.c
23624
struct bpf_insn *patch = insn_buf;
kernel/bpf/verifier.c
23858
struct bpf_insn ld_addrs[2] = {
kernel/bpf/verifier.c
24016
struct bpf_insn ld_jiffies_addr[2] = {
kernel/bpf/verifier.c
24371
struct bpf_insn *insn_buf = env->insn_buf;
kernel/bpf/verifier.c
24434
static bool is_bpf_loop_call(struct bpf_insn *insn)
kernel/bpf/verifier.c
24454
struct bpf_insn *insn = env->prog->insnsi;
kernel/bpf/verifier.c
24502
struct bpf_insn *insn = env->prog->insnsi;
kernel/bpf/verifier.c
25541
struct bpf_insn *insn,
kernel/bpf/verifier.c
25686
struct bpf_insn *insns = env->prog->insnsi;
kernel/bpf/verifier.c
257
static bool bpf_helper_call(const struct bpf_insn *insn)
kernel/bpf/verifier.c
263
static bool bpf_pseudo_call(const struct bpf_insn *insn)
kernel/bpf/verifier.c
269
static bool bpf_pseudo_kfunc_call(const struct bpf_insn *insn)
kernel/bpf/verifier.c
3592
const struct bpf_insn *insn)
kernel/bpf/verifier.c
3609
struct bpf_insn *insn, int cnt)
kernel/bpf/verifier.c
3627
struct bpf_insn *insn = env->prog->insnsi;
kernel/bpf/verifier.c
3690
struct bpf_insn *insn = env->prog->insnsi;
kernel/bpf/verifier.c
3796
static bool is_reg64(struct bpf_insn *insn,
kernel/bpf/verifier.c
3883
static int insn_def_regno(const struct bpf_insn *insn)
kernel/bpf/verifier.c
3907
static bool insn_has_def32(struct bpf_insn *insn)
kernel/bpf/verifier.c
3933
struct bpf_insn *insn = env->prog->insnsi + env->insn_idx;
kernel/bpf/verifier.c
4170
static const char *disasm_kfunc_name(void *data, const struct bpf_insn *insn)
kernel/bpf/verifier.c
4186
static void verbose_insn(struct bpf_verifier_env *env, struct bpf_insn *insn)
kernel/bpf/verifier.c
4393
struct bpf_insn *insn = env->prog->insnsi + idx;
kernel/bpf/verifier.c
5209
static bool is_bpf_st_mem(struct bpf_insn *insn)
kernel/bpf/verifier.c
522
static bool is_bpf_throw_kfunc(struct bpf_insn *insn);
kernel/bpf/verifier.c
5255
struct bpf_insn *insn = &env->prog->insnsi[insn_idx];
kernel/bpf/verifier.c
5403
struct bpf_insn *insn = &env->prog->insnsi[insn_idx];
kernel/bpf/verifier.c
546
static bool is_sync_callback_calling_insn(struct bpf_insn *insn)
kernel/bpf/verifier.c
552
static bool is_async_callback_calling_insn(struct bpf_insn *insn)
kernel/bpf/verifier.c
558
static bool is_async_cb_sleepable(struct bpf_verifier_env *env, struct bpf_insn *insn)
kernel/bpf/verifier.c
573
static bool is_may_goto_insn(struct bpf_insn *insn)
kernel/bpf/verifier.c
606
static bool is_cmpxchg_insn(const struct bpf_insn *insn)
kernel/bpf/verifier.c
613
static bool is_atomic_load_insn(const struct bpf_insn *insn)
kernel/bpf/verifier.c
6162
struct bpf_insn *insn = &env->prog->insnsi[insn_idx];
kernel/bpf/verifier.c
620
static bool is_atomic_fetch_insn(const struct bpf_insn *insn)
kernel/bpf/verifier.c
6520
struct bpf_insn *insn)
kernel/bpf/verifier.c
6744
struct bpf_insn *insn = env->prog->insnsi;
kernel/bpf/verifier.c
6947
const struct bpf_insn *insn, int idx)
kernel/bpf/verifier.c
7973
static int check_load_mem(struct bpf_verifier_env *env, struct bpf_insn *insn,
kernel/bpf/verifier.c
8006
static int check_store_reg(struct bpf_verifier_env *env, struct bpf_insn *insn,
kernel/bpf/verifier.c
8035
struct bpf_insn *insn)
kernel/bpf/verifier.c
8124
struct bpf_insn *insn)
kernel/bpf/verifier.c
8143
struct bpf_insn *insn)
kernel/bpf/verifier.c
8161
static int check_atomic(struct bpf_verifier_env *env, struct bpf_insn *insn)
kernel/trace/bpf_trace.c
1872
const struct bpf_insn *si,
kernel/trace/bpf_trace.c
1873
struct bpf_insn *insn_buf,
kernel/trace/bpf_trace.c
1876
struct bpf_insn *insn = insn_buf;
lib/test_bpf.c
1001
struct bpf_insn *insns, s64 dst, s64 src)
lib/test_bpf.c
1241
struct bpf_insn *insns;
lib/test_bpf.c
1425
struct bpf_insn *insns;
lib/test_bpf.c
14885
memcpy(fp->insnsi, fptr, fp->len * sizeof(struct bpf_insn));
lib/test_bpf.c
15248
struct bpf_insn insns[MAX_INSNS];
lib/test_bpf.c
15476
struct bpf_insn *insn = &test->insns[len];
lib/test_bpf.c
15494
memcpy(fp->insnsi, test->insns, len * sizeof(struct bpf_insn));
lib/test_bpf.c
15498
struct bpf_insn *insn = &fp->insnsi[i];
lib/test_bpf.c
1615
struct bpf_insn *insns, s64 dst, s64 src)
lib/test_bpf.c
1662
struct bpf_insn *insns, s64 dst, s64 src)
lib/test_bpf.c
1709
struct bpf_insn *insns, s64 dst, s64 src)
lib/test_bpf.c
1749
struct bpf_insn *insns, s64 dst, s64 src)
lib/test_bpf.c
1915
struct bpf_insn *insn;
lib/test_bpf.c
2162
struct bpf_insn *insn;
lib/test_bpf.c
2214
struct bpf_insn *insn;
lib/test_bpf.c
2323
struct bpf_insn *insns, s64 dst, s64 imm)
lib/test_bpf.c
2346
struct bpf_insn *insns, s64 dst, s64 imm)
lib/test_bpf.c
2367
struct bpf_insn *insns, s64 dst, s64 src)
lib/test_bpf.c
2389
struct bpf_insn *insns, s64 dst, s64 src)
lib/test_bpf.c
2719
const struct bpf_insn *jmp,
lib/test_bpf.c
272
struct bpf_insn *insn;
lib/test_bpf.c
2724
struct bpf_insn *insns;
lib/test_bpf.c
2739
struct bpf_insn *ins = &insns[4 + 3 * ind];
lib/test_bpf.c
2765
struct bpf_insn jmp = BPF_JMP_IMM(BPF_JA, 0, 0, 0);
lib/test_bpf.c
2773
struct bpf_insn jmp = BPF_JMP_IMM(BPF_JEQ, R1, 1234, 0);
lib/test_bpf.c
2780
struct bpf_insn jmp = BPF_JMP_IMM(BPF_JNE, R1, 1234, 0);
lib/test_bpf.c
2787
struct bpf_insn jmp = BPF_JMP_IMM(BPF_JSET, R1, 0x82, 0);
lib/test_bpf.c
2794
struct bpf_insn jmp = BPF_JMP_IMM(BPF_JGT, R1, 1234, 0);
lib/test_bpf.c
2801
struct bpf_insn jmp = BPF_JMP_IMM(BPF_JGE, R1, 1234, 0);
lib/test_bpf.c
2808
struct bpf_insn jmp = BPF_JMP_IMM(BPF_JLT, R1, 0x80000000, 0);
lib/test_bpf.c
2815
struct bpf_insn jmp = BPF_JMP_IMM(BPF_JLE, R1, 1234, 0);
lib/test_bpf.c
2822
struct bpf_insn jmp = BPF_JMP_IMM(BPF_JSGT, R1, -2, 0);
lib/test_bpf.c
2829
struct bpf_insn jmp = BPF_JMP_IMM(BPF_JSGE, R1, -2, 0);
lib/test_bpf.c
2836
struct bpf_insn jmp = BPF_JMP_IMM(BPF_JSLT, R1, -1, 0);
lib/test_bpf.c
2843
struct bpf_insn jmp = BPF_JMP_IMM(BPF_JSLE, R1, -1, 0);
lib/test_bpf.c
2851
struct bpf_insn jmp = BPF_JMP_REG(BPF_JEQ, R1, R2, 0);
lib/test_bpf.c
2858
struct bpf_insn jmp = BPF_JMP_REG(BPF_JNE, R1, R2, 0);
lib/test_bpf.c
2865
struct bpf_insn jmp = BPF_JMP_REG(BPF_JSET, R1, R2, 0);
lib/test_bpf.c
2872
struct bpf_insn jmp = BPF_JMP_REG(BPF_JGT, R1, R2, 0);
lib/test_bpf.c
2879
struct bpf_insn jmp = BPF_JMP_REG(BPF_JGE, R1, R2, 0);
lib/test_bpf.c
2886
struct bpf_insn jmp = BPF_JMP_REG(BPF_JLT, R1, R2, 0);
lib/test_bpf.c
2893
struct bpf_insn jmp = BPF_JMP_REG(BPF_JLE, R1, R2, 0);
lib/test_bpf.c
2900
struct bpf_insn jmp = BPF_JMP_REG(BPF_JSGT, R1, R2, 0);
lib/test_bpf.c
2907
struct bpf_insn jmp = BPF_JMP_REG(BPF_JSGE, R1, R2, 0);
lib/test_bpf.c
2914
struct bpf_insn jmp = BPF_JMP_REG(BPF_JSLT, R1, R2, 0);
lib/test_bpf.c
2921
struct bpf_insn jmp = BPF_JMP_REG(BPF_JSLE, R1, R2, 0);
lib/test_bpf.c
2929
struct bpf_insn jmp = BPF_JMP32_IMM(BPF_JEQ, R1, 1234, 0);
lib/test_bpf.c
2936
struct bpf_insn jmp = BPF_JMP32_IMM(BPF_JNE, R1, 1234, 0);
lib/test_bpf.c
2943
struct bpf_insn jmp = BPF_JMP32_IMM(BPF_JSET, R1, 0x82, 0);
lib/test_bpf.c
2950
struct bpf_insn jmp = BPF_JMP32_IMM(BPF_JGT, R1, 1234, 0);
lib/test_bpf.c
2957
struct bpf_insn jmp = BPF_JMP32_IMM(BPF_JGE, R1, 1234, 0);
lib/test_bpf.c
2964
struct bpf_insn jmp = BPF_JMP32_IMM(BPF_JLT, R1, 0x80000000, 0);
lib/test_bpf.c
2971
struct bpf_insn jmp = BPF_JMP32_IMM(BPF_JLE, R1, 1234, 0);
lib/test_bpf.c
2978
struct bpf_insn jmp = BPF_JMP32_IMM(BPF_JSGT, R1, -2, 0);
lib/test_bpf.c
298
struct bpf_insn *insn;
lib/test_bpf.c
2985
struct bpf_insn jmp = BPF_JMP32_IMM(BPF_JSGE, R1, -2, 0);
lib/test_bpf.c
2992
struct bpf_insn jmp = BPF_JMP32_IMM(BPF_JSLT, R1, -1, 0);
lib/test_bpf.c
2999
struct bpf_insn jmp = BPF_JMP32_IMM(BPF_JSLE, R1, -1, 0);
lib/test_bpf.c
3007
struct bpf_insn jmp = BPF_JMP32_REG(BPF_JEQ, R1, R2, 0);
lib/test_bpf.c
3014
struct bpf_insn jmp = BPF_JMP32_REG(BPF_JNE, R1, R2, 0);
lib/test_bpf.c
3021
struct bpf_insn jmp = BPF_JMP32_REG(BPF_JSET, R1, R2, 0);
lib/test_bpf.c
3028
struct bpf_insn jmp = BPF_JMP32_REG(BPF_JGT, R1, R2, 0);
lib/test_bpf.c
3035
struct bpf_insn jmp = BPF_JMP32_REG(BPF_JGE, R1, R2, 0);
lib/test_bpf.c
3042
struct bpf_insn jmp = BPF_JMP32_REG(BPF_JLT, R1, R2, 0);
lib/test_bpf.c
3049
struct bpf_insn jmp = BPF_JMP32_REG(BPF_JLE, R1, R2, 0);
lib/test_bpf.c
3056
struct bpf_insn jmp = BPF_JMP32_REG(BPF_JSGT, R1, R2, 0);
lib/test_bpf.c
3063
struct bpf_insn jmp = BPF_JMP32_REG(BPF_JSGE, R1, R2, 0);
lib/test_bpf.c
3070
struct bpf_insn jmp = BPF_JMP32_REG(BPF_JSLT, R1, R2, 0);
lib/test_bpf.c
3077
struct bpf_insn jmp = BPF_JMP32_REG(BPF_JSLE, R1, R2, 0);
lib/test_bpf.c
434
struct bpf_insn *insn;
lib/test_bpf.c
467
static int __bpf_ld_imm64(struct bpf_insn insns[2], u8 reg, s64 imm64)
lib/test_bpf.c
469
struct bpf_insn tmp[] = {BPF_LD_IMM64(reg, imm64)};
lib/test_bpf.c
483
struct bpf_insn *insns;
lib/test_bpf.c
625
struct bpf_insn *insn;
lib/test_bpf.c
69
struct bpf_insn insns_int[MAX_INSNS];
lib/test_bpf.c
758
struct bpf_insn *insn;
lib/test_bpf.c
844
struct bpf_insn*, s64, s64))
lib/test_bpf.c
847
struct bpf_insn *insns;
lib/test_bpf.c
937
struct bpf_insn *insns, s64 dst, s64 imm)
lib/test_bpf.c
958
struct bpf_insn *insns, s64 dst, s64 imm)
lib/test_bpf.c
979
struct bpf_insn *insns, s64 dst, s64 src)
net/core/filter.c
10127
const struct bpf_insn *si,
net/core/filter.c
10128
struct bpf_insn *insn_buf,
net/core/filter.c
10131
struct bpf_insn *insn = insn_buf;
net/core/filter.c
10302
const struct bpf_insn *si,
net/core/filter.c
10303
struct bpf_insn *insn_buf,
net/core/filter.c
10306
struct bpf_insn *insn = insn_buf;
net/core/filter.c
10326
const struct bpf_insn *si,
net/core/filter.c
10327
struct bpf_insn *insn_buf,
net/core/filter.c
10330
struct bpf_insn *insn = insn_buf;
net/core/filter.c
10450
const struct bpf_insn *si,
net/core/filter.c
10451
struct bpf_insn *insn_buf,
net/core/filter.c
10455
struct bpf_insn *insn = insn_buf;
net/core/filter.c
10539
const struct bpf_insn *si,
net/core/filter.c
10540
struct bpf_insn *insn_buf,
net/core/filter.c
10544
struct bpf_insn *insn = insn_buf;
net/core/filter.c
10961
struct bpf_insn *jmp_on_null_skb;
net/core/filter.c
10984
static struct bpf_insn *bpf_convert_data_end_access(const struct bpf_insn *si,
net/core/filter.c
10985
struct bpf_insn *insn)
net/core/filter.c
11032
const struct bpf_insn *si,
net/core/filter.c
11033
struct bpf_insn *insn_buf,
net/core/filter.c
11036
struct bpf_insn *insn = insn_buf;
net/core/filter.c
11072
const struct bpf_insn *si,
net/core/filter.c
11073
struct bpf_insn *insn_buf,
net/core/filter.c
11076
struct bpf_insn *insn = insn_buf;
net/core/filter.c
11638
const struct bpf_insn *si,
net/core/filter.c
11639
struct bpf_insn *insn_buf,
net/core/filter.c
11643
struct bpf_insn *insn = insn_buf;
net/core/filter.c
11798
const struct bpf_insn *si,
net/core/filter.c
11799
struct bpf_insn *insn_buf,
net/core/filter.c
11803
struct bpf_insn *insn = insn_buf;
net/core/filter.c
1279
sizeof(struct bpf_insn));
net/core/filter.c
320
struct bpf_insn *insn_buf)
net/core/filter.c
322
struct bpf_insn *insn = insn_buf;
net/core/filter.c
367
struct bpf_insn **insnp)
net/core/filter.c
369
struct bpf_insn *insn = *insnp;
net/core/filter.c
496
static bool convert_bpf_ld_abs(struct sock_filter *fp, struct bpf_insn **insnp)
net/core/filter.c
504
struct bpf_insn *insn = *insnp;
net/core/filter.c
590
struct bpf_insn *new_insn, *first_insn = NULL;
net/core/filter.c
645
struct bpf_insn tmp_insns[32] = { };
net/core/filter.c
646
struct bpf_insn *insn = tmp_insns;
net/core/filter.c
7331
const struct bpf_insn *si,
net/core/filter.c
7332
struct bpf_insn *insn_buf,
net/core/filter.c
7335
struct bpf_insn *insn = insn_buf;
net/core/filter.c
7525
const struct bpf_insn *si,
net/core/filter.c
7526
struct bpf_insn *insn_buf,
net/core/filter.c
7529
struct bpf_insn *insn = insn_buf;
net/core/filter.c
9065
static int bpf_noop_prologue(struct bpf_insn *insn_buf, bool direct_write,
net/core/filter.c
9074
static int bpf_unclone_prologue(struct bpf_insn *insn_buf, bool direct_write,
net/core/filter.c
9077
struct bpf_insn *insn = insn_buf;
net/core/filter.c
9113
static int bpf_gen_ld_abs(const struct bpf_insn *orig,
net/core/filter.c
9114
struct bpf_insn *insn_buf)
net/core/filter.c
9117
struct bpf_insn *insn = insn_buf;
net/core/filter.c
9148
static int tc_cls_act_prologue(struct bpf_insn *insn_buf, bool direct_write,
net/core/filter.c
9489
static int sk_skb_prologue(struct bpf_insn *insn_buf, bool direct_write,
net/core/filter.c
9615
const struct bpf_insn *si,
net/core/filter.c
9616
struct bpf_insn *insn_buf,
net/core/filter.c
9621
struct bpf_insn *insn = insn_buf;
net/core/filter.c
9646
static struct bpf_insn *bpf_convert_tstamp_type_read(const struct bpf_insn *si,
net/core/filter.c
9647
struct bpf_insn *insn)
net/core/filter.c
9666
static struct bpf_insn *bpf_convert_shinfo_access(__u8 dst_reg, __u8 skb_reg,
net/core/filter.c
9667
struct bpf_insn *insn)
net/core/filter.c
9687
static struct bpf_insn *bpf_convert_tstamp_read(const struct bpf_prog *prog,
net/core/filter.c
9688
const struct bpf_insn *si,
net/core/filter.c
9689
struct bpf_insn *insn)
net/core/filter.c
9722
static struct bpf_insn *bpf_convert_tstamp_write(const struct bpf_prog *prog,
net/core/filter.c
9723
const struct bpf_insn *si,
net/core/filter.c
9724
struct bpf_insn *insn)
net/core/filter.c
9761
const struct bpf_insn *si,
net/core/filter.c
9762
struct bpf_insn *insn_buf,
net/core/filter.c
9765
struct bpf_insn *insn = insn_buf;
net/sched/bpf_qdisc.c
135
static int bpf_qdisc_gen_prologue(struct bpf_insn *insn_buf, bool direct_write,
net/sched/bpf_qdisc.c
138
struct bpf_insn *insn = insn_buf;
net/sched/bpf_qdisc.c
165
static int bpf_qdisc_gen_epilogue(struct bpf_insn *insn_buf, const struct bpf_prog *prog,
net/sched/bpf_qdisc.c
168
struct bpf_insn *insn = insn_buf;
net/xdp/xskmap.c
121
static int xsk_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf)
net/xdp/xskmap.c
124
struct bpf_insn *insn = insn_buf;
samples/bpf/bpf_insn.h
11
((struct bpf_insn) { \
samples/bpf/bpf_insn.h
110
((struct bpf_insn) { \
samples/bpf/bpf_insn.h
120
((struct bpf_insn) { \
samples/bpf/bpf_insn.h
130
((struct bpf_insn) { \
samples/bpf/bpf_insn.h
153
((struct bpf_insn) { \
samples/bpf/bpf_insn.h
166
((struct bpf_insn) { \
samples/bpf/bpf_insn.h
176
((struct bpf_insn) { \
samples/bpf/bpf_insn.h
186
((struct bpf_insn) { \
samples/bpf/bpf_insn.h
19
((struct bpf_insn) { \
samples/bpf/bpf_insn.h
196
((struct bpf_insn) { \
samples/bpf/bpf_insn.h
206
((struct bpf_insn) { \
samples/bpf/bpf_insn.h
216
((struct bpf_insn) { \
samples/bpf/bpf_insn.h
226
((struct bpf_insn) { \
samples/bpf/bpf_insn.h
29
((struct bpf_insn) { \
samples/bpf/bpf_insn.h
37
((struct bpf_insn) { \
samples/bpf/bpf_insn.h
47
((struct bpf_insn) { \
samples/bpf/bpf_insn.h
55
((struct bpf_insn) { \
samples/bpf/bpf_insn.h
6
struct bpf_insn;
samples/bpf/bpf_insn.h
65
((struct bpf_insn) { \
samples/bpf/bpf_insn.h
73
((struct bpf_insn) { \
samples/bpf/bpf_insn.h
85
((struct bpf_insn) { \
samples/bpf/bpf_insn.h
91
((struct bpf_insn) { \
samples/bpf/cookie_uid_helper_example.c
80
struct bpf_insn prog[] = {
samples/bpf/fds_example.c
52
static struct bpf_insn insns[] = {
samples/bpf/sock_example.c
48
struct bpf_insn prog[] = {
tools/bpf/bpftool/cfg.c
131
static bool cfg_partition_funcs(struct cfg *cfg, struct bpf_insn *cur,
tools/bpf/bpftool/cfg.c
132
struct bpf_insn *end)
tools/bpf/bpftool/cfg.c
167
struct bpf_insn *cur, *end;
tools/bpf/bpftool/cfg.c
20
struct bpf_insn *start;
tools/bpf/bpftool/cfg.c
21
struct bpf_insn *end;
tools/bpf/bpftool/cfg.c
244
struct bpf_insn *insn)
tools/bpf/bpftool/cfg.c
279
struct bpf_insn *insn;
tools/bpf/bpftool/cfg.c
30
struct bpf_insn *head;
tools/bpf/bpftool/cfg.c
31
struct bpf_insn *tail;
tools/bpf/bpftool/cfg.c
334
static bool cfg_build(struct cfg *cfg, struct bpf_insn *insn, unsigned int len)
tools/bpf/bpftool/cfg.c
479
struct bpf_insn *insn = buf;
tools/bpf/bpftool/cfg.c
63
static struct func_node *cfg_append_func(struct cfg *cfg, struct bpf_insn *insn)
tools/bpf/bpftool/cfg.c
89
struct bpf_insn *insn)
tools/bpf/bpftool/common.c
104
struct bpf_insn insns[] = {
tools/bpf/bpftool/feature.c
436
const struct bpf_insn *insns, size_t insns_cnt,
tools/bpf/bpftool/feature.c
459
struct bpf_insn insns[2] = {
tools/bpf/bpftool/feature.c
580
struct bpf_insn insns[2] = {
tools/bpf/bpftool/feature.c
703
probe_misc_feature(struct bpf_insn *insns, size_t len,
tools/bpf/bpftool/feature.c
733
struct bpf_insn insns[BPF_MAXINSNS + 1];
tools/bpf/bpftool/feature.c
754
struct bpf_insn insns[4] = {
tools/bpf/bpftool/feature.c
775
struct bpf_insn insns[4] = {
tools/bpf/bpftool/feature.c
796
struct bpf_insn insns[4] = {
tools/bpf/bpftool/feature.c
817
struct bpf_insn insns[5] = {
tools/bpf/bpftool/xlated_dumper.c
148
const struct bpf_insn *insn)
tools/bpf/bpftool/xlated_dumper.c
177
const struct bpf_insn *insn)
tools/bpf/bpftool/xlated_dumper.c
195
const struct bpf_insn *insn,
tools/bpf/bpftool/xlated_dumper.c
229
struct bpf_insn *insn = buf;
tools/bpf/bpftool/xlated_dumper.c
314
struct bpf_insn *insn = buf;
tools/bpf/bpftool/xlated_dumper.c
380
struct bpf_insn *insn_start = buf_start;
tools/bpf/bpftool/xlated_dumper.c
381
struct bpf_insn *insn_end = buf_end;
tools/bpf/bpftool/xlated_dumper.c
382
struct bpf_insn *cur = insn_start;
tools/include/linux/filter.h
107
((struct bpf_insn) { \
tools/include/linux/filter.h
117
((struct bpf_insn) { \
tools/include/linux/filter.h
125
((struct bpf_insn) { \
tools/include/linux/filter.h
135
((struct bpf_insn) { \
tools/include/linux/filter.h
143
((struct bpf_insn) { \
tools/include/linux/filter.h
153
((struct bpf_insn) { \
tools/include/linux/filter.h
163
((struct bpf_insn) { \
tools/include/linux/filter.h
173
((struct bpf_insn) { \
tools/include/linux/filter.h
183
((struct bpf_insn) { \
tools/include/linux/filter.h
206
((struct bpf_insn) { \
tools/include/linux/filter.h
219
((struct bpf_insn) { \
tools/include/linux/filter.h
229
((struct bpf_insn) { \
tools/include/linux/filter.h
239
((struct bpf_insn) { \
tools/include/linux/filter.h
249
((struct bpf_insn) { \
tools/include/linux/filter.h
259
((struct bpf_insn) { \
tools/include/linux/filter.h
269
((struct bpf_insn) { \
tools/include/linux/filter.h
279
((struct bpf_insn) { \
tools/include/linux/filter.h
289
((struct bpf_insn) { \
tools/include/linux/filter.h
299
((struct bpf_insn) { \
tools/include/linux/filter.h
312
((struct bpf_insn) { \
tools/include/linux/filter.h
318
((struct bpf_insn) { \
tools/include/linux/filter.h
326
((struct bpf_insn) { \
tools/include/linux/filter.h
332
((struct bpf_insn) { \
tools/include/linux/filter.h
35
((struct bpf_insn) { \
tools/include/linux/filter.h
352
((struct bpf_insn) { \
tools/include/linux/filter.h
362
((struct bpf_insn) { \
tools/include/linux/filter.h
43
((struct bpf_insn) { \
tools/include/linux/filter.h
53
((struct bpf_insn) { \
tools/include/linux/filter.h
61
((struct bpf_insn) { \
tools/include/linux/filter.h
71
((struct bpf_insn) { \
tools/include/linux/filter.h
81
((struct bpf_insn) { \
tools/include/linux/filter.h
89
((struct bpf_insn) { \
tools/include/linux/filter.h
99
((struct bpf_insn) { \
tools/lib/bpf/bpf.c
109
struct bpf_insn insns[] = {
tools/lib/bpf/bpf.c
240
const struct bpf_insn *insns, size_t insn_cnt,
tools/lib/bpf/bpf.h
122
const struct bpf_insn *insns, size_t insn_cnt,
tools/lib/bpf/bpf_gen_internal.h
67
const char *license, struct bpf_insn *insns, size_t insn_cnt,
tools/lib/bpf/features.c
230
struct bpf_insn insns[] = {
tools/lib/bpf/features.c
25
struct bpf_insn insns[] = {
tools/lib/bpf/features.c
251
struct bpf_insn insns[] = {
tools/lib/bpf/features.c
267
struct bpf_insn insns[] = {
tools/lib/bpf/features.c
334
struct bpf_insn insns[] = {
tools/lib/bpf/features.c
370
struct bpf_insn insns[] = {
tools/lib/bpf/features.c
429
struct bpf_insn insns[] = {
tools/lib/bpf/features.c
475
const struct bpf_insn insns[] = {
tools/lib/bpf/features.c
49
struct bpf_insn insns[] = {
tools/lib/bpf/features.c
524
struct bpf_insn insns[] = {
tools/lib/bpf/gen_loader.c
1035
const char *license, struct bpf_insn *insns, size_t insn_cnt,
tools/lib/bpf/gen_loader.c
104
static void emit2(struct bpf_gen *gen, struct bpf_insn insn1, struct bpf_insn insn2)
tools/lib/bpf/gen_loader.c
1052
insns_off = add_data(gen, insns, insn_cnt * sizeof(struct bpf_insn));
tools/lib/bpf/gen_loader.c
1058
struct bpf_insn *insn = gen->data_start + insns_off;
tools/lib/bpf/gen_loader.c
415
struct bpf_insn *insn = (struct bpf_insn *)opts->insns;
tools/lib/bpf/gen_loader.c
416
int insn_cnt = opts->insns_sz / sizeof(struct bpf_insn);
tools/lib/bpf/gen_loader.c
464
struct bpf_insn *insn =
tools/lib/bpf/gen_loader.c
465
(struct bpf_insn *)(gen->insn_start + gen->hash_insn_offset[i]);
tools/lib/bpf/gen_loader.c
754
move_blob2blob(gen, insn + offsetof(struct bpf_insn, imm), 4,
tools/lib/bpf/gen_loader.c
755
kdesc->insn + offsetof(struct bpf_insn, imm));
tools/lib/bpf/gen_loader.c
756
move_blob2blob(gen, insn + offsetof(struct bpf_insn, off), 2,
tools/lib/bpf/gen_loader.c
757
kdesc->insn + offsetof(struct bpf_insn, off));
tools/lib/bpf/gen_loader.c
777
emit(gen, BPF_ST_MEM(BPF_W, BPF_REG_8, offsetof(struct bpf_insn, imm), 0));
tools/lib/bpf/gen_loader.c
778
emit(gen, BPF_ST_MEM(BPF_H, BPF_REG_8, offsetof(struct bpf_insn, off), 0));
tools/lib/bpf/gen_loader.c
782
emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_8, BPF_REG_7, offsetof(struct bpf_insn, imm)));
tools/lib/bpf/gen_loader.c
794
emit(gen, BPF_ST_MEM(BPF_H, BPF_REG_8, offsetof(struct bpf_insn, off), 0));
tools/lib/bpf/gen_loader.c
798
emit(gen, BPF_ST_MEM(BPF_H, BPF_REG_8, offsetof(struct bpf_insn, off), btf_fd_idx));
tools/lib/bpf/gen_loader.c
803
offsetof(struct bpf_insn, imm)));
tools/lib/bpf/gen_loader.c
805
offsetof(struct bpf_insn, off)));
tools/lib/bpf/gen_loader.c
821
offsetof(struct bpf_insn, imm)));
tools/lib/bpf/gen_loader.c
822
emit(gen, BPF_LDX_MEM(BPF_H, BPF_REG_9, BPF_REG_8, sizeof(struct bpf_insn) +
tools/lib/bpf/gen_loader.c
823
offsetof(struct bpf_insn, imm)));
tools/lib/bpf/gen_loader.c
826
emit(gen, BPF_LDX_MEM(BPF_B, BPF_REG_9, BPF_REG_8, offsetofend(struct bpf_insn, code)));
tools/lib/bpf/gen_loader.c
844
move_blob2blob(gen, insn + offsetof(struct bpf_insn, imm), 4,
tools/lib/bpf/gen_loader.c
845
kdesc->insn + offsetof(struct bpf_insn, imm));
tools/lib/bpf/gen_loader.c
846
move_blob2blob(gen, insn + sizeof(struct bpf_insn) + offsetof(struct bpf_insn, imm), 4,
tools/lib/bpf/gen_loader.c
847
kdesc->insn + sizeof(struct bpf_insn) + offsetof(struct bpf_insn, imm));
tools/lib/bpf/gen_loader.c
858
emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_8, BPF_REG_9, offsetof(struct bpf_insn, imm)));
tools/lib/bpf/gen_loader.c
862
sizeof(struct bpf_insn) + offsetof(struct bpf_insn, imm)));
tools/lib/bpf/gen_loader.c
891
move_blob2blob(gen, insn + sizeof(struct bpf_insn) + offsetof(struct bpf_insn, imm), 4,
tools/lib/bpf/gen_loader.c
892
kdesc->insn + sizeof(struct bpf_insn) + offsetof(struct bpf_insn, imm));
tools/lib/bpf/gen_loader.c
893
move_blob2blob(gen, insn + offsetof(struct bpf_insn, imm), 4,
tools/lib/bpf/gen_loader.c
894
kdesc->insn + offsetof(struct bpf_insn, imm));
tools/lib/bpf/gen_loader.c
909
emit(gen, BPF_ST_MEM(BPF_W, BPF_REG_8, offsetof(struct bpf_insn, imm), 0));
tools/lib/bpf/gen_loader.c
910
emit(gen, BPF_ST_MEM(BPF_W, BPF_REG_8, sizeof(struct bpf_insn) + offsetof(struct bpf_insn, imm), 0));
tools/lib/bpf/gen_loader.c
914
emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_8, BPF_REG_7, offsetof(struct bpf_insn, imm)));
tools/lib/bpf/gen_loader.c
918
sizeof(struct bpf_insn) + offsetof(struct bpf_insn, imm)));
tools/lib/bpf/gen_loader.c
924
emit(gen, BPF_LDX_MEM(BPF_B, BPF_REG_9, BPF_REG_8, offsetofend(struct bpf_insn, code)));
tools/lib/bpf/gen_loader.c
926
emit(gen, BPF_STX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, offsetofend(struct bpf_insn, code)));
tools/lib/bpf/gen_loader.c
953
insn = insns + sizeof(struct bpf_insn) * relo->insn_idx;
tools/lib/bpf/gen_loader.c
96
static void emit(struct bpf_gen *gen, struct bpf_insn insn)
tools/lib/bpf/gen_loader.c
993
insn += sizeof(struct bpf_insn) + offsetof(struct bpf_insn, imm);
tools/lib/bpf/libbpf.c
4528
struct bpf_insn *purged;
tools/lib/bpf/libbpf.c
4557
libbpf_sha256(purged, prog->insns_cnt * sizeof(struct bpf_insn),
tools/lib/bpf/libbpf.c
4569
struct bpf_insn *insn = &prog->insns[insn_idx];
tools/lib/bpf/libbpf.c
474
struct bpf_insn *insns;
tools/lib/bpf/libbpf.c
5119
struct bpf_insn insns[] = {
tools/lib/bpf/libbpf.c
6036
struct bpf_insn *insn;
tools/lib/bpf/libbpf.c
6150
int insn_idx, struct bpf_insn *insn,
tools/lib/bpf/libbpf.c
6180
int insn_idx, struct bpf_insn *insn,
tools/lib/bpf/libbpf.c
6310
insn_off = jt[i]/sizeof(struct bpf_insn);
tools/lib/bpf/libbpf.c
6362
struct bpf_insn *insn = &prog->insns[relo->insn_idx];
tools/lib/bpf/libbpf.c
66
#define BPF_INSN_SZ (sizeof(struct bpf_insn))
tools/lib/bpf/libbpf.c
6678
struct bpf_insn *insns;
tools/lib/bpf/libbpf.c
6721
struct bpf_insn *insn;
tools/lib/bpf/libbpf.c
7407
struct bpf_insn *insn = &prog->insns[relo->insn_idx];
tools/lib/bpf/libbpf.c
7664
static bool insn_is_helper_call(struct bpf_insn *insn, enum bpf_func_id *func_id)
tools/lib/bpf/libbpf.c
7679
struct bpf_insn *insn = prog->insns;
tools/lib/bpf/libbpf.c
7784
struct bpf_insn *insns, int insns_cnt,
tools/lib/bpf/libbpf.c
818
static bool insn_is_subprog_call(const struct bpf_insn *insn)
tools/lib/bpf/libbpf.c
828
static bool is_call_insn(const struct bpf_insn *insn)
tools/lib/bpf/libbpf.c
833
static bool insn_is_pseudo_func(struct bpf_insn *insn)
tools/lib/bpf/libbpf.c
9637
const struct bpf_insn *bpf_program__insns(const struct bpf_program *prog)
tools/lib/bpf/libbpf.c
9648
struct bpf_insn *new_insns, size_t new_insn_cnt)
tools/lib/bpf/libbpf.c
9650
struct bpf_insn *insns;
tools/lib/bpf/libbpf.c
989
struct bpf_insn *insn;
tools/lib/bpf/libbpf.h
383
struct bpf_insn;
tools/lib/bpf/libbpf.h
405
LIBBPF_API const struct bpf_insn *bpf_program__insns(const struct bpf_program *prog);
tools/lib/bpf/libbpf.h
422
struct bpf_insn *new_insns, size_t new_insn_cnt);
tools/lib/bpf/libbpf_internal.h
630
static inline bool is_ldimm64_insn(struct bpf_insn *insn)
tools/lib/bpf/libbpf_internal.h
635
static inline void bpf_insn_bswap(struct bpf_insn *insn)
tools/lib/bpf/libbpf_probes.c
104
const struct bpf_insn *insns, size_t insns_cnt,
tools/lib/bpf/libbpf_probes.c
207
struct bpf_insn insns[] = {
tools/lib/bpf/libbpf_probes.c
423
struct bpf_insn insns[] = {
tools/lib/bpf/linker.c
1052
if (relo->r_offset % sizeof(struct bpf_insn) != 0) {
tools/lib/bpf/linker.c
1251
const int insn_cnt = size / sizeof(struct bpf_insn);
tools/lib/bpf/linker.c
1252
struct bpf_insn *insn = raw_data;
tools/lib/bpf/linker.c
2260
struct bpf_insn *insn;
tools/lib/bpf/linker.c
2274
insn->imm += sec->dst_off / sizeof(struct bpf_insn);
tools/lib/bpf/linker.c
884
if (sec->shdr->sh_size % sizeof(struct bpf_insn) != 0) {
tools/lib/bpf/relo_core.c
1000
static int insn_bpf_size_to_bytes(struct bpf_insn *insn)
tools/lib/bpf/relo_core.c
1039
int bpf_core_patch_insn(const char *prog_name, struct bpf_insn *insn,
tools/lib/bpf/relo_core.c
16
static bool is_ldimm64_insn(struct bpf_insn *insn)
tools/lib/bpf/relo_core.c
985
int insn_idx, struct bpf_insn *insn)
tools/lib/bpf/relo_core.h
89
int bpf_core_patch_insn(const char *prog_name, struct bpf_insn *insn,
tools/lib/bpf/skel_internal.h
393
attr.insn_cnt = opts->insns_sz / sizeof(struct bpf_insn);
tools/testing/selftests/bpf/disasm.c
140
const struct bpf_insn *insn)
tools/testing/selftests/bpf/disasm.c
150
const struct bpf_insn *insn)
tools/testing/selftests/bpf/disasm.c
157
static bool is_sdiv_smod(const struct bpf_insn *insn)
tools/testing/selftests/bpf/disasm.c
163
static bool is_movsx(const struct bpf_insn *insn)
tools/testing/selftests/bpf/disasm.c
169
static bool is_addr_space_cast(const struct bpf_insn *insn)
tools/testing/selftests/bpf/disasm.c
17
const struct bpf_insn *insn,
tools/testing/selftests/bpf/disasm.c
181
static inline bool is_mov_percpu_addr(const struct bpf_insn *insn)
tools/testing/selftests/bpf/disasm.c
187
const struct bpf_insn *insn,
tools/testing/selftests/bpf/disasm.c
44
const struct bpf_insn *insn,
tools/testing/selftests/bpf/disasm.h
25
const struct bpf_insn *insn);
tools/testing/selftests/bpf/disasm.h
27
const struct bpf_insn *insn,
tools/testing/selftests/bpf/disasm.h
38
const struct bpf_insn *insn,
tools/testing/selftests/bpf/disasm_helpers.c
22
static const char *print_call_cb(void *private_data, const struct bpf_insn *insn)
tools/testing/selftests/bpf/disasm_helpers.c
38
struct bpf_insn *disasm_insn(struct bpf_insn *insn, char *buf, size_t buf_sz)
tools/testing/selftests/bpf/disasm_helpers.h
10
struct bpf_insn *disasm_insn(struct bpf_insn *insn, char *buf, size_t buf_sz);
tools/testing/selftests/bpf/disasm_helpers.h
8
struct bpf_insn;
tools/testing/selftests/bpf/prog_tests/align.c
15
struct bpf_insn insns[MAX_INSNS];
tools/testing/selftests/bpf/prog_tests/align.c
590
static int probe_filter_length(const struct bpf_insn *fp)
tools/testing/selftests/bpf/prog_tests/align.c
604
struct bpf_insn *prog = test->insns;
tools/testing/selftests/bpf/prog_tests/bpf_gotox.c
258
static int prog_load(struct bpf_insn *insns, __u32 insn_cnt)
tools/testing/selftests/bpf/prog_tests/bpf_gotox.c
265
struct bpf_insn insns[] = {
tools/testing/selftests/bpf/prog_tests/bpf_gotox.c
318
static int __check_ldimm64_gotox_prog_load(struct bpf_insn *insns,
tools/testing/selftests/bpf/prog_tests/bpf_gotox.c
357
static void reject_offsets(struct bpf_insn *insns, __u32 insn_cnt, __u32 off1, __u32 off2)
tools/testing/selftests/bpf/prog_tests/bpf_gotox.c
372
struct bpf_insn insns[] = {
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
112
struct bpf_insn insns[] = {
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
131
struct bpf_insn insns[] = {
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
155
struct bpf_insn insns[] = {
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
16
static int prog_load(struct bpf_insn *insns, __u32 insn_cnt, int *fd_array, __u32 fd_array_cnt)
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
194
struct bpf_insn insns[] = {
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
26
static void __check_success(struct bpf_insn *insns, __u32 insn_cnt, __u32 *map_in, __u32 *map_out)
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
268
struct bpf_insn insns[] = {
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
325
struct bpf_insn insns[] = {
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
371
struct bpf_insn insns[] = {
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
420
struct bpf_insn insns[] = {
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
70
struct bpf_insn insns[] = {
tools/testing/selftests/bpf/prog_tests/bpf_insn_array.c
91
struct bpf_insn insns[] = {
tools/testing/selftests/bpf/prog_tests/btf.c
5684
struct bpf_insn insns[MAX_INSNS];
tools/testing/selftests/bpf/prog_tests/btf.c
6488
static size_t probe_prog_length(const struct bpf_insn *fp)
tools/testing/selftests/bpf/prog_tests/btf_dump.c
793
TEST_BTF_DUMP_DATA_C(btf, d, "struct", str, struct bpf_insn, BTF_F_COMPACT,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
795
TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct bpf_insn,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
800
TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct bpf_insn, 0,
tools/testing/selftests/bpf/prog_tests/btf_dump.c
811
TEST_BTF_DUMP_DATA(btf, d, "struct", str, struct bpf_insn, BTF_F_COMPACT,
tools/testing/selftests/bpf/prog_tests/cgroup_attach_autodetach.c
13
struct bpf_insn prog[] = {
tools/testing/selftests/bpf/prog_tests/cgroup_attach_multi.c
39
struct bpf_insn prog[] = {
tools/testing/selftests/bpf/prog_tests/cgroup_attach_override.c
15
struct bpf_insn prog[] = {
tools/testing/selftests/bpf/prog_tests/core_reloc_raw.c
52
struct bpf_insn insns[] = {
tools/testing/selftests/bpf/prog_tests/ctx_rewrite.c
638
struct bpf_insn *prog;
tools/testing/selftests/bpf/prog_tests/ctx_rewrite.c
648
struct bpf_insn *buf = NULL, *insn, *insn_end;
tools/testing/selftests/bpf/prog_tests/ctx_rewrite.c
737
struct bpf_insn ldx_prog[] = {
tools/testing/selftests/bpf/prog_tests/ctx_rewrite.c
755
struct bpf_insn stx_prog[] = {
tools/testing/selftests/bpf/prog_tests/ctx_rewrite.c
766
struct bpf_insn st_prog[] = {
tools/testing/selftests/bpf/prog_tests/fd_array.c
101
struct bpf_insn insns[] = {
tools/testing/selftests/bpf/prog_tests/fexit_bpf2bpf.c
466
struct bpf_insn insns[] = {
tools/testing/selftests/bpf/prog_tests/fexit_stress.c
20
const struct bpf_insn trace_program[] = {
tools/testing/selftests/bpf/prog_tests/flow_dissector_load_bytes.c
8
struct bpf_insn prog[] = {
tools/testing/selftests/bpf/prog_tests/flow_dissector_reattach.c
44
struct bpf_insn prog[] = {
tools/testing/selftests/bpf/prog_tests/kptr_xchg_inline.c
11
struct bpf_insn *insn = NULL;
tools/testing/selftests/bpf/prog_tests/kptr_xchg_inline.c
12
struct bpf_insn exp;
tools/testing/selftests/bpf/prog_tests/log_buf.c
147
const struct bpf_insn good_prog_insns[] = {
tools/testing/selftests/bpf/prog_tests/log_buf.c
152
const struct bpf_insn bad_prog_insns[] = {
tools/testing/selftests/bpf/prog_tests/module_fentry_shadow.c
74
const struct bpf_insn trace_program[] = {
tools/testing/selftests/bpf/prog_tests/obj_name.c
16
struct bpf_insn prog[] = {
tools/testing/selftests/bpf/prog_tests/raw_tp_writable_reject_nbd_invalid.c
13
const struct bpf_insn program[] = {
tools/testing/selftests/bpf/prog_tests/raw_tp_writable_test_run.c
13
const struct bpf_insn trace_program[] = {
tools/testing/selftests/bpf/prog_tests/raw_tp_writable_test_run.c
34
const struct bpf_insn skb_program[] = {
tools/testing/selftests/bpf/prog_tests/reg_bounds.c
897
struct bpf_insn __insns[] = { insn }; \
tools/testing/selftests/bpf/prog_tests/reg_bounds.c
905
struct bpf_insn insns[64];
tools/testing/selftests/bpf/prog_tests/signal_pending.c
12
struct bpf_insn prog[4096];
tools/testing/selftests/bpf/prog_tests/sock_create.c
16
const struct bpf_insn insns[64];
tools/testing/selftests/bpf/prog_tests/sock_create.c
255
static int load_prog(const struct bpf_insn *insns,
tools/testing/selftests/bpf/prog_tests/sock_post_bind.c
13
const struct bpf_insn insns[64];
tools/testing/selftests/bpf/prog_tests/sock_post_bind.c
280
static int load_prog(const struct bpf_insn *insns,
tools/testing/selftests/bpf/prog_tests/sockopt.c
26
const struct bpf_insn insns[64];
tools/testing/selftests/bpf/prog_tests/sockopt.c
964
static int load_prog(const struct bpf_insn *insns,
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2381
const struct bpf_insn prog_insns[] = {
tools/testing/selftests/bpf/prog_tests/test_sysctl.c
1387
static size_t probe_prog_length(const struct bpf_insn *fp)
tools/testing/selftests/bpf/prog_tests/test_sysctl.c
1398
struct bpf_insn *prog, size_t insn_num)
tools/testing/selftests/bpf/prog_tests/test_sysctl.c
1424
struct bpf_insn *prog = test->insns;
tools/testing/selftests/bpf/prog_tests/test_sysctl.c
16
struct bpf_insn insns[MAX_INSNS];
tools/testing/selftests/bpf/prog_tests/token.c
641
struct bpf_insn insns[] = {
tools/testing/selftests/bpf/prog_tests/unpriv_bpf_disabled.c
146
const struct bpf_insn prog_insns[] = {
tools/testing/selftests/bpf/prog_tests/verifier_log.c
33
static const struct bpf_insn *insns;
tools/testing/selftests/bpf/prog_tests/wq.c
47
const struct bpf_insn *insns;
tools/testing/selftests/bpf/prog_tests/xdp_dev_bound_only.c
10
struct bpf_insn insns[] = { BPF_MOV64_IMM(BPF_REG_0, 0), BPF_EXIT_INSN() };
tools/testing/selftests/bpf/progs/netif_receive_skb.c
240
TEST_BTF_C(str, struct bpf_insn, 0,
tools/testing/selftests/bpf/progs/netif_receive_skb.c
242
TEST_BTF(str, struct bpf_insn, BTF_F_NONAME, "{1,0x2,0x3,4,5,}",
tools/testing/selftests/bpf/progs/syscall.c
102
static struct bpf_insn insns[] = {
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1491
static int st_ops_gen_prologue_with_kfunc(struct bpf_insn *insn_buf, bool direct_write,
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1494
struct bpf_insn *insn = insn_buf;
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1526
static int st_ops_gen_epilogue_with_kfunc(struct bpf_insn *insn_buf, const struct bpf_prog *prog,
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1529
struct bpf_insn *insn = insn_buf;
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1567
static int st_ops_gen_prologue(struct bpf_insn *insn_buf, bool direct_write,
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1570
struct bpf_insn *insn = insn_buf;
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1593
static int st_ops_gen_epilogue(struct bpf_insn *insn_buf, const struct bpf_prog *prog,
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
1596
struct bpf_insn *insn = insn_buf;
tools/testing/selftests/bpf/test_loader.c
1086
struct bpf_insn *insn_start = NULL, *insn, *insn_end;
tools/testing/selftests/bpf/test_lru_map.c
45
struct bpf_insn insns[] = {
tools/testing/selftests/bpf/test_tag.c
133
insns *= sizeof(struct bpf_insn);
tools/testing/selftests/bpf/test_tag.c
25
static struct bpf_insn prog[BPF_MAXINSNS];
tools/testing/selftests/bpf/test_tag.c
42
struct bpf_insn tmp[] = {
tools/testing/selftests/bpf/test_verifier.c
1008
struct bpf_insn *prog, int *map_fds, int *fd_array)
tools/testing/selftests/bpf/test_verifier.c
1035
test->fill_insns = calloc(MAX_TEST_INSNS, sizeof(struct bpf_insn));
tools/testing/selftests/bpf/test_verifier.c
104
struct bpf_insn unexpected_insns[MAX_UNEXPECTED_INSNS];
tools/testing/selftests/bpf/test_verifier.c
1337
static bool is_null_insn(struct bpf_insn *insn)
tools/testing/selftests/bpf/test_verifier.c
1339
struct bpf_insn null_insn = {};
tools/testing/selftests/bpf/test_verifier.c
1344
static bool is_skip_insn(struct bpf_insn *insn)
tools/testing/selftests/bpf/test_verifier.c
1346
struct bpf_insn skip_insn = SKIP_INSNS();
tools/testing/selftests/bpf/test_verifier.c
1351
static int null_terminated_insn_len(struct bpf_insn *seq, int max_len)
tools/testing/selftests/bpf/test_verifier.c
1362
static bool compare_masked_insn(struct bpf_insn *orig, struct bpf_insn *masked)
tools/testing/selftests/bpf/test_verifier.c
1364
struct bpf_insn orig_masked;
tools/testing/selftests/bpf/test_verifier.c
1375
static int find_insn_subseq(struct bpf_insn *seq, struct bpf_insn *subseq,
tools/testing/selftests/bpf/test_verifier.c
1399
static int find_skip_insn_marker(struct bpf_insn *seq, int len)
tools/testing/selftests/bpf/test_verifier.c
1414
static bool find_all_insn_subseqs(struct bpf_insn *seq, struct bpf_insn *subseqs,
tools/testing/selftests/bpf/test_verifier.c
1436
static void print_insn(struct bpf_insn *buf, int cnt)
tools/testing/selftests/bpf/test_verifier.c
1442
struct bpf_insn *insn = &buf[i];
tools/testing/selftests/bpf/test_verifier.c
1458
struct bpf_insn *buf;
tools/testing/selftests/bpf/test_verifier.c
1509
struct bpf_insn *prog = test->insns;
tools/testing/selftests/bpf/test_verifier.c
192
struct bpf_insn *insn = self->fill_insns;
tools/testing/selftests/bpf/test_verifier.c
235
struct bpf_insn *insn = self->fill_insns;
tools/testing/selftests/bpf/test_verifier.c
257
struct bpf_insn *insn = self->fill_insns;
tools/testing/selftests/bpf/test_verifier.c
264
struct bpf_insn tmp[2] = { BPF_LD_IMM64(BPF_REG_1, val) };
tools/testing/selftests/bpf/test_verifier.c
285
struct bpf_insn *insn = self->fill_insns;
tools/testing/selftests/bpf/test_verifier.c
311
struct bpf_insn *insn = self->fill_insns;
tools/testing/selftests/bpf/test_verifier.c
350
static int bpf_fill_torturous_jumps_insn_1(struct bpf_insn *insn)
tools/testing/selftests/bpf/test_verifier.c
366
static int bpf_fill_torturous_jumps_insn_2(struct bpf_insn *insn)
tools/testing/selftests/bpf/test_verifier.c
390
struct bpf_insn *insn = self->fill_insns;
tools/testing/selftests/bpf/test_verifier.c
424
struct bpf_insn *insn = self->fill_insns;
tools/testing/selftests/bpf/test_verifier.c
521
static int probe_filter_length(const struct bpf_insn *fp)
tools/testing/selftests/bpf/test_verifier.c
577
struct bpf_insn prog[] = {
tools/testing/selftests/bpf/test_verifier.c
588
struct bpf_insn prog[] = {
tools/testing/selftests/bpf/test_verifier.c
86
struct bpf_insn insns[MAX_INSNS];
tools/testing/selftests/bpf/test_verifier.c
87
struct bpf_insn *fill_insns;
tools/testing/selftests/bpf/test_verifier.c
968
static void fixup_prog_kfuncs(struct bpf_insn *prog, int *fd_array,
tools/testing/selftests/bpf/test_verifier.c
99
struct bpf_insn expected_insns[MAX_EXPECTED_INSNS];
tools/testing/selftests/bpf/testing_helpers.c
261
static struct bpf_insn insns[] = {
tools/testing/selftests/bpf/testing_helpers.c
325
int bpf_test_load_program(enum bpf_prog_type type, const struct bpf_insn *insns,
tools/testing/selftests/bpf/testing_helpers.c
455
int get_xlated_program(int fd_prog, struct bpf_insn **buf, __u32 *cnt)
tools/testing/selftests/bpf/testing_helpers.c
457
__u32 buf_element_size = sizeof(struct bpf_insn);
tools/testing/selftests/bpf/testing_helpers.h
19
int bpf_test_load_program(enum bpf_prog_type type, const struct bpf_insn *insns,
tools/testing/selftests/bpf/testing_helpers.h
54
struct bpf_insn;
tools/testing/selftests/bpf/testing_helpers.h
58
int get_xlated_program(int fd_prog, struct bpf_insn **buf, __u32 *cnt);
tools/testing/selftests/bpf/veristat.c
1325
struct bpf_insn insns[] = {
tools/testing/selftests/bpf/xskxceiver.c
299
struct bpf_insn insns[2] = {
tools/testing/selftests/net/psock_fanout.c
177
struct bpf_insn prog[] = {
tools/testing/selftests/net/reuseport_bpf.c
342
struct bpf_insn ecode[] = {
tools/testing/selftests/net/reuseport_bpf.c
98
const struct bpf_insn prog[] = {
tools/testing/selftests/net/reuseport_bpf_numa.c
79
const struct bpf_insn prog[] = {