/third_party/libbpf/include/linux/ |
H A D | filter.h | 9 ((struct bpf_insn) { \ 17 ((struct bpf_insn) { \ 25 ((struct bpf_insn) { \ 33 ((struct bpf_insn) { \ 41 ((struct bpf_insn) { \ 49 ((struct bpf_insn) { \ 57 ((struct bpf_insn) { \ 65 ((struct bpf_insn) { \ 73 ((struct bpf_insn) { \ 81 ((struct bpf_insn) { \ [all...] |
/third_party/libbpf/src/ |
H A D | gen_loader.c | 96 static void emit(struct bpf_gen *gen, struct bpf_insn insn) in emit() 104 static void emit2(struct bpf_gen *gen, struct bpf_insn insn1, struct bpf_insn insn2) in emit2() 672 /* try to copy from existing bpf_insn */ in emit_relo_kfunc_btf() 674 move_blob2blob(gen, insn + offsetof(struct bpf_insn, imm), 4, in emit_relo_kfunc_btf() 675 kdesc->insn + offsetof(struct bpf_insn, imm)); in emit_relo_kfunc_btf() 676 move_blob2blob(gen, insn + offsetof(struct bpf_insn, off), 2, in emit_relo_kfunc_btf() 677 kdesc->insn + offsetof(struct bpf_insn, off)); in emit_relo_kfunc_btf() 697 emit(gen, BPF_ST_MEM(BPF_W, BPF_REG_8, offsetof(struct bpf_insn, imm), 0)); in emit_relo_kfunc_btf() 698 emit(gen, BPF_ST_MEM(BPF_H, BPF_REG_8, offsetof(struct bpf_insn, of in emit_relo_kfunc_btf() [all...] |
H A D | libbpf_probes.c | 104 const struct bpf_insn *insns, size_t insns_cnt, in probe_prog_load() 207 struct bpf_insn insns[] = { in libbpf_probe_bpf_prog_type() 406 struct bpf_insn insns[] = { in libbpf_probe_bpf_helper()
|
H A D | bpf_gen_internal.h | 64 const char *license, struct bpf_insn *insns, size_t insn_cnt,
|
H A D | relo_core.h | 89 int bpf_core_patch_insn(const char *prog_name, struct bpf_insn *insn,
|
H A D | libbpf.h | 315 struct bpf_insn; 324 * Returned pointer is always valid and not NULL. Number of `struct bpf_insn` 337 LIBBPF_API const struct bpf_insn *bpf_program__insns(const struct bpf_program *prog); 349 * @param new_insn_cnt number of `struct bpf_insn`'s that form 354 struct bpf_insn *new_insns, size_t new_insn_cnt); 357 * @brief **bpf_program__insn_cnt()** returns number of `struct bpf_insn`'s
|
H A D | relo_core.c | 16 static bool is_ldimm64_insn(struct bpf_insn *insn) in is_ldimm64_insn() 809 /* by default, always check expected value in bpf_insn */ in bpf_core_calc_type_relo() 822 /* type ID, embedded in bpf_insn, might change during linking, in bpf_core_calc_type_relo() 970 int insn_idx, struct bpf_insn *insn) in bpf_core_poison_insn() 985 static int insn_bpf_size_to_bytes(struct bpf_insn *insn) in insn_bpf_size_to_bytes() 1024 int bpf_core_patch_insn(const char *prog_name, struct bpf_insn *insn, in bpf_core_patch_insn() 1321 /* bpf_insn's imm value could get out of sync during linking */ in bpf_core_calc_relo_insn()
|
H A D | skel_internal.h | 333 attr.insn_cnt = opts->insns_sz / sizeof(struct bpf_insn); in bpf_load_and_run()
|
H A D | libbpf.c | 66 #define BPF_INSN_SZ (sizeof(struct bpf_insn)) 431 struct bpf_insn *insns; 769 static bool insn_is_subprog_call(const struct bpf_insn *insn) in insn_is_subprog_call() 779 static bool is_call_insn(const struct bpf_insn *insn) in is_call_insn() 784 static bool insn_is_pseudo_func(struct bpf_insn *insn) in insn_is_pseudo_func() 4437 struct bpf_insn *insn = &prog->insns[insn_idx]; 4913 struct bpf_insn insns[] = { 4954 struct bpf_insn insns[] = { 4976 struct bpf_insn insns[] = { 5124 struct bpf_insn insn [all...] |
H A D | bpf.h | 111 const struct bpf_insn *insns, size_t insn_cnt,
|
H A D | libbpf_internal.h | 602 static inline bool is_ldimm64_insn(struct bpf_insn *insn) in is_ldimm64_insn()
|
H A D | linker.c | 740 if (sec->shdr->sh_size % sizeof(struct bpf_insn) != 0) in linker_sanity_check_elf() 904 if (relo->r_offset % sizeof(struct bpf_insn) != 0) { in linker_sanity_check_elf_relos() 2073 struct bpf_insn *insn; in linker_append_elf_relos() 2087 insn->imm += sec->dst_off / sizeof(struct bpf_insn); in linker_append_elf_relos()
|
H A D | bpf.c | 109 struct bpf_insn insns[] = { in probe_memcg_account() 232 const struct bpf_insn *insns, size_t insn_cnt, in bpf_prog_load()
|
/third_party/ltp/include/lapi/ |
H A D | bpf.h | 74 struct bpf_insn { struct 481 ((struct bpf_insn) { \ 489 ((struct bpf_insn) { \ 497 ((struct bpf_insn) { \ 505 ((struct bpf_insn) { \ 513 ((struct bpf_insn) { \ 521 ((struct bpf_insn) { \ 532 ((struct bpf_insn) { \ 538 ((struct bpf_insn) { \ 550 ((struct bpf_insn) { \ [all...] |
/third_party/elfutils/libcpu/ |
H A D | bpf_disasm.c | 74 bswap_bpf_insn (struct bpf_insn *p) in bswap_bpf_insn() 103 while (start + sizeof(struct bpf_insn) <= end) in bpf_disasm() 105 struct bpf_insn i; in bpf_disasm() 109 memcpy(&i, start, sizeof(struct bpf_insn)); in bpf_disasm() 113 start += sizeof(struct bpf_insn); in bpf_disasm() 114 addr += sizeof(struct bpf_insn); in bpf_disasm() 115 jmp = addr + i.off * sizeof(struct bpf_insn); in bpf_disasm() 122 struct bpf_insn i2; in bpf_disasm() 125 if (start + sizeof(struct bpf_insn) > end) in bpf_disasm() 127 start -= sizeof(struct bpf_insn); in bpf_disasm() [all...] |
/third_party/ltp/testcases/kernel/syscalls/bpf/ |
H A D | bpf_prog05.c | 66 const struct bpf_insn prog_insn[] = { in ensure_ptr_arithmetic() 105 const struct bpf_insn prog_insn[] = { in load_prog()
|
H A D | bpf_common.c | 83 const struct bpf_insn *const prog, in bpf_init_prog_attr() 87 static struct bpf_insn *buf; in bpf_init_prog_attr()
|
H A D | bpf_common.h | 54 const struct bpf_insn *const prog,
|
H A D | bpf_prog01.c | 48 struct bpf_insn PROG[] = { in load_prog()
|
H A D | bpf_prog06.c | 61 const struct bpf_insn prog_insn[] = { in load_prog()
|
H A D | bpf_prog04.c | 42 struct bpf_insn insn[] = { in load_prog()
|
H A D | bpf_prog03.c | 47 struct bpf_insn insn[] = { in load_prog()
|
H A D | bpf_prog07.c | 61 const struct bpf_insn prog_insn[] = { in load_prog()
|
H A D | bpf_prog02.c | 38 struct bpf_insn insn[] = { in load_prog()
|
/third_party/elfutils/lib/ |
H A D | bpf.h | 77 struct bpf_insn struct
|