Searched refs:bpf_gen (Results 1 – 3 of 3) sorted by relevance
| /linux/tools/lib/bpf/ |
| H A D | bpf_gen_internal.h | 32 struct bpf_gen { struct 56 void bpf_gen__init(struct bpf_gen *gen, int log_level, int nr_progs, int nr_maps); argument 57 int bpf_gen__finish(struct bpf_gen *gen, int nr_progs, int nr_maps); 58 void bpf_gen__free(struct bpf_gen *gen); 59 void bpf_gen__load_btf(struct bpf_gen *gen, const void *raw_data, __u32 raw_size); 60 void bpf_gen__map_create(struct bpf_gen *gen, 64 void bpf_gen__prog_load(struct bpf_gen *gen, 68 void bpf_gen__map_update_elem(struct bpf_gen *gen, int map_idx, void *value, __u32 value_size, 70 void bpf_gen__map_freeze(struct bpf_gen *gen, int map_idx); 71 void bpf_gen__record_attach_target(struct bpf_gen *gen, const char *name, enum bpf_attach_type type… [all …]
|
| H A D | gen_loader.c | 45 static int blob_fd_array_off(struct bpf_gen *gen, int index) in blob_fd_array_off() 50 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() 98 static void emit(struct bpf_gen *gen, struct bpf_insn insn) in emit() 106 static void emit2(struct bpf_gen *gen, struct bpf_insn insn1, struct bpf_insn insn2) in emit2() 112 static int add_data(struct bpf_gen *gen, const void *data, __u32 size); 113 static void emit_sys_close_blob(struct bpf_gen *gen, int blob_off); 115 void bpf_gen__init(struct bpf_gen *gen, int log_level, int nr_progs, int nr_maps) in bpf_gen__init() 158 static int add_data(struct bpf_gen *gen, const void *data, __u32 size) in add_data() 186 static int add_map_fd(struct bpf_gen *gen) in add_map_fd() [all …]
|
| H A D | libbpf.c | 729 struct bpf_gen *gen_loader; 9720 struct bpf_gen *gen; in bpf_object__gen_loader()
|