Searched refs:bpf_gen (Results 1 – 3 of 3) sorted by relevance
| /Linux-v5.15/tools/lib/bpf/ |
| D | bpf_gen_internal.h | 12 struct bpf_gen { struct 29 void bpf_gen__init(struct bpf_gen *gen, int log_level); argument 30 int bpf_gen__finish(struct bpf_gen *gen); 31 void bpf_gen__free(struct bpf_gen *gen); 32 void bpf_gen__load_btf(struct bpf_gen *gen, const void *raw_data, __u32 raw_size); 33 void bpf_gen__map_create(struct bpf_gen *gen, struct bpf_create_map_attr *map_attr, int map_idx); 35 void bpf_gen__prog_load(struct bpf_gen *gen, struct bpf_prog_load_params *load_attr, int prog_idx); 36 void bpf_gen__map_update_elem(struct bpf_gen *gen, int map_idx, void *value, __u32 value_size); 37 void bpf_gen__map_freeze(struct bpf_gen *gen, int map_idx); 38 void bpf_gen__record_attach_target(struct bpf_gen *gen, const char *name, enum bpf_attach_type type… [all …]
|
| D | gen_loader.c | 42 static int realloc_insn_buf(struct bpf_gen *gen, __u32 size) in realloc_insn_buf() 65 static int realloc_data_buf(struct bpf_gen *gen, __u32 size) in realloc_data_buf() 88 static void emit(struct bpf_gen *gen, struct bpf_insn insn) in emit() 96 static void emit2(struct bpf_gen *gen, struct bpf_insn insn1, struct bpf_insn insn2) in emit2() 102 void bpf_gen__init(struct bpf_gen *gen, int log_level) in bpf_gen__init() 136 static int add_data(struct bpf_gen *gen, const void *data, __u32 size) in add_data() 160 static void emit_rel_store(struct bpf_gen *gen, int off, int data) in emit_rel_store() 170 static void emit_rel_store_sp(struct bpf_gen *gen, int off, int stack_off) in emit_rel_store_sp() 179 static void move_ctx2blob(struct bpf_gen *gen, int off, int size, int ctx_off, in move_ctx2blob() 193 static void move_stack2blob(struct bpf_gen *gen, int off, int size, int stack_off) in move_stack2blob() [all …]
|
| D | libbpf.c | 455 struct bpf_gen *gen_loader; 7630 struct bpf_gen *gen; in bpf_object__gen_loader()
|