Searched refs:bpf_gen (Results 1 – 3 of 3) sorted by relevance
/linux/tools/lib/bpf/ |
H A D | bpf_gen_internal.h | 31 struct bpf_gen { struct 55 void bpf_gen__init(struct bpf_gen *gen, int log_level, int nr_progs, int nr_maps); argument 56 int bpf_gen__finish(struct bpf_gen *gen, int nr_progs, int nr_maps); 57 void bpf_gen__free(struct bpf_gen *gen); 58 void bpf_gen__load_btf(struct bpf_gen *gen, const void *raw_data, __u32 raw_size); 59 void bpf_gen__map_create(struct bpf_gen *gen, 63 void bpf_gen__prog_load(struct bpf_gen *gen, 67 void bpf_gen__map_update_elem(struct bpf_gen *gen, int map_idx, void *value, __u32 value_size); 68 void bpf_gen__map_freeze(struct bpf_gen *gen, int map_idx); 69 void bpf_gen__record_attach_target(struct bpf_gen *ge [all...] |
H A D | gen_loader.c | 46 static int blob_fd_array_off(struct bpf_gen *gen, int index) in blob_fd_array_off() 51 static int realloc_insn_buf(struct bpf_gen *gen, __u32 size) in realloc_insn_buf() 74 static int realloc_data_buf(struct bpf_gen *gen, __u32 size) in realloc_data_buf() 97 static void emit(struct bpf_gen *gen, struct bpf_insn insn) in emit() 105 static void emit2(struct bpf_gen *gen, struct bpf_insn insn1, struct bpf_insn insn2) in emit2() 111 static int add_data(struct bpf_gen *gen, const void *data, __u32 size); 112 static void emit_sys_close_blob(struct bpf_gen *gen, int blob_off); 114 void bpf_gen__init(struct bpf_gen *gen, int log_level, int nr_progs, int nr_maps) in bpf_gen__init() 157 static int add_data(struct bpf_gen *gen, const void *data, __u32 size) in add_data() 179 static int add_map_fd(struct bpf_gen *ge [all...] |
H A D | libbpf.c | 701 struct bpf_gen *gen_loader; 9218 struct bpf_gen *gen; in bpf_object__gen_loader()
|