Home
last modified time | relevance | path

Searched refs:bpf_gen (Results 1 – 3 of 3) sorted by relevance

/linux/tools/lib/bpf/
A Dbpf_gen_internal.h27 struct bpf_gen { struct
48 void bpf_gen__init(struct bpf_gen *gen, int log_level, int nr_progs, int nr_maps); argument
49 int bpf_gen__finish(struct bpf_gen *gen, int nr_progs, int nr_maps);
50 void bpf_gen__free(struct bpf_gen *gen);
51 void bpf_gen__load_btf(struct bpf_gen *gen, const void *raw_data, __u32 raw_size);
52 void bpf_gen__map_create(struct bpf_gen *gen, struct bpf_create_map_params *map_attr, int map_idx);
54 void bpf_gen__prog_load(struct bpf_gen *gen, struct bpf_prog_load_params *load_attr, int prog_idx);
55 void bpf_gen__map_update_elem(struct bpf_gen *gen, int map_idx, void *value, __u32 value_size);
56 void bpf_gen__map_freeze(struct bpf_gen *gen, int map_idx);
57 void bpf_gen__record_attach_target(struct bpf_gen *gen, const char *name, enum bpf_attach_type type…
[all …]
A Dgen_loader.c45 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()
96 static void emit(struct bpf_gen *gen, struct bpf_insn insn) in emit()
178 static int add_map_fd(struct bpf_gen *gen) in add_map_fd()
188 static int add_kfunc_btf_fd(struct bpf_gen *gen) in add_kfunc_btf_fd()
282 static void emit_check_err(struct bpf_gen *gen) in emit_check_err()
344 static void __emit_sys_close(struct bpf_gen *gen) in __emit_sys_close()
407 void bpf_gen__free(struct bpf_gen *gen) in bpf_gen__free()
447 void bpf_gen__map_create(struct bpf_gen *gen, in bpf_gen__map_create()
878 static void emit_relos(struct bpf_gen *gen, int insns) in emit_relos()
[all …]
A Dlibbpf.c519 struct bpf_gen *gen_loader;
8020 struct bpf_gen *gen; in bpf_object__gen_loader()

Completed in 39 milliseconds