Home
last modified time | relevance | path

Searched refs:bpf_insn (Results 1 - 25 of 28) sorted by relevance

12

/third_party/libbpf/include/linux/
H A Dfilter.h9 ((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 Dgen_loader.c96 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 Dlibbpf_probes.c104 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 Dbpf_gen_internal.h64 const char *license, struct bpf_insn *insns, size_t insn_cnt,
H A Drelo_core.h89 int bpf_core_patch_insn(const char *prog_name, struct bpf_insn *insn,
H A Dlibbpf.h315 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 Drelo_core.c16 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 Dskel_internal.h333 attr.insn_cnt = opts->insns_sz / sizeof(struct bpf_insn); in bpf_load_and_run()
H A Dlibbpf.c66 #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 Dbpf.h111 const struct bpf_insn *insns, size_t insn_cnt,
H A Dlibbpf_internal.h602 static inline bool is_ldimm64_insn(struct bpf_insn *insn) in is_ldimm64_insn()
H A Dlinker.c740 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 Dbpf.c109 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 Dbpf.h74 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 Dbpf_disasm.c74 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 Dbpf_prog05.c66 const struct bpf_insn prog_insn[] = { in ensure_ptr_arithmetic()
105 const struct bpf_insn prog_insn[] = { in load_prog()
H A Dbpf_common.c83 const struct bpf_insn *const prog, in bpf_init_prog_attr()
87 static struct bpf_insn *buf; in bpf_init_prog_attr()
H A Dbpf_common.h54 const struct bpf_insn *const prog,
H A Dbpf_prog01.c48 struct bpf_insn PROG[] = { in load_prog()
H A Dbpf_prog06.c61 const struct bpf_insn prog_insn[] = { in load_prog()
H A Dbpf_prog04.c42 struct bpf_insn insn[] = { in load_prog()
H A Dbpf_prog03.c47 struct bpf_insn insn[] = { in load_prog()
H A Dbpf_prog07.c61 const struct bpf_insn prog_insn[] = { in load_prog()
H A Dbpf_prog02.c38 struct bpf_insn insn[] = { in load_prog()
/third_party/elfutils/lib/
H A Dbpf.h77 struct bpf_insn struct

Completed in 32 milliseconds

12