Lines Matching refs:bpf_elf_ctx
1088 struct bpf_elf_ctx { struct
1126 bpf_dump_error(struct bpf_elf_ctx *ctx, const char *format, ...) in bpf_dump_error() argument
1152 static int bpf_log_realloc(struct bpf_elf_ctx *ctx) in bpf_log_realloc()
1322 static const char *bpf_custom_pinning(const struct bpf_elf_ctx *ctx, in bpf_custom_pinning()
1334 static bool bpf_no_pinning(const struct bpf_elf_ctx *ctx, in bpf_no_pinning()
1349 const struct bpf_elf_ctx *ctx, uint32_t pinning) in bpf_make_pathname()
1370 static int bpf_probe_pinned(const char *name, const struct bpf_elf_ctx *ctx, in bpf_probe_pinned()
1382 static int bpf_make_obj_path(const struct bpf_elf_ctx *ctx) in bpf_make_obj_path()
1399 static int bpf_make_custom_path(const struct bpf_elf_ctx *ctx, in bpf_make_custom_path()
1430 const struct bpf_elf_ctx *ctx, uint32_t pinning) in bpf_place_pinned()
1452 struct bpf_elf_ctx *ctx) in bpf_prog_report()
1471 struct bpf_elf_ctx *ctx) in bpf_prog_attach()
1501 struct bpf_elf_ctx *ctx, int inner_fd) in bpf_map_report()
1518 static int bpf_find_map_id(const struct bpf_elf_ctx *ctx, uint32_t id) in bpf_find_map_id()
1560 static int bpf_map_attach(const char *name, struct bpf_elf_ctx *ctx, in bpf_map_attach()
1621 static const char *bpf_str_tab_name(const struct bpf_elf_ctx *ctx, in bpf_str_tab_name()
1627 static const char *bpf_map_fetch_name(struct bpf_elf_ctx *ctx, int which) in bpf_map_fetch_name()
1648 static int bpf_maps_attach_all(struct bpf_elf_ctx *ctx) in bpf_maps_attach_all()
1710 static int bpf_map_num_sym(struct bpf_elf_ctx *ctx) in bpf_map_num_sym()
1729 static int bpf_fill_section_data(struct bpf_elf_ctx *ctx, int section, in bpf_fill_section_data()
1768 static int bpf_fetch_maps_begin(struct bpf_elf_ctx *ctx, int section, in bpf_fetch_maps_begin()
1784 static int bpf_map_verify_all_offs(struct bpf_elf_ctx *ctx, int end) in bpf_map_verify_all_offs()
1810 static int bpf_fetch_maps_end(struct bpf_elf_ctx *ctx) in bpf_fetch_maps_end()
1862 static int bpf_fetch_license(struct bpf_elf_ctx *ctx, int section, in bpf_fetch_license()
1873 static int bpf_fetch_symtab(struct bpf_elf_ctx *ctx, int section, in bpf_fetch_symtab()
1882 static int bpf_fetch_strtab(struct bpf_elf_ctx *ctx, int section, in bpf_fetch_strtab()
1890 static bool bpf_has_map_data(const struct bpf_elf_ctx *ctx) in bpf_has_map_data()
1895 static int bpf_fetch_ancillary(struct bpf_elf_ctx *ctx) in bpf_fetch_ancillary()
1941 static int bpf_fetch_prog(struct bpf_elf_ctx *ctx, const char *section, in bpf_fetch_prog()
1983 static int bpf_apply_relo_data(struct bpf_elf_ctx *ctx, in bpf_apply_relo_data()
2046 static int bpf_fetch_prog_relo(struct bpf_elf_ctx *ctx, const char *section, in bpf_fetch_prog_relo()
2107 static int bpf_fetch_prog_sec(struct bpf_elf_ctx *ctx, const char *section) in bpf_fetch_prog_sec()
2122 static int bpf_find_map_by_id(struct bpf_elf_ctx *ctx, uint32_t id) in bpf_find_map_by_id()
2178 static int bpf_fill_prog_arrays(struct bpf_elf_ctx *ctx) in bpf_fill_prog_arrays()
2240 static void bpf_save_finfo(struct bpf_elf_ctx *ctx) in bpf_save_finfo()
2295 static void bpf_hash_init(struct bpf_elf_ctx *ctx, const char *db_file) in bpf_hash_init()
2342 static void bpf_hash_destroy(struct bpf_elf_ctx *ctx) in bpf_hash_destroy()
2356 static int bpf_elf_check_ehdr(const struct bpf_elf_ctx *ctx) in bpf_elf_check_ehdr()
2389 static void bpf_get_cfg(struct bpf_elf_ctx *ctx) in bpf_get_cfg()
2404 static int bpf_elf_ctx_init(struct bpf_elf_ctx *ctx, const char *pathname, in bpf_elf_ctx_init()
2468 static int bpf_maps_count(struct bpf_elf_ctx *ctx) in bpf_maps_count()
2481 static void bpf_maps_teardown(struct bpf_elf_ctx *ctx) in bpf_maps_teardown()
2491 static void bpf_elf_ctx_destroy(struct bpf_elf_ctx *ctx, bool failure) in bpf_elf_ctx_destroy()
2505 static struct bpf_elf_ctx __ctx;
2510 struct bpf_elf_ctx *ctx = &__ctx; in bpf_obj_open()
2630 struct bpf_elf_ctx *ctx = &__ctx; in bpf_send_map_fds()