Home
last modified time | relevance | path

Searched refs:btf (Results 1 – 24 of 24) sorted by relevance

/kernel/bpf/
A Dbtf.c1454 struct btf *btf = env->btf; in __btf_verifier_log_type() local
1504 struct btf *btf = env->btf; in btf_verifier_log_member() local
1604 struct btf *btf = env->btf; in btf_add_type() local
1802 struct btf *btf = env->btf; in env_resolve_init() local
1918 struct btf *btf = env->btf; in env_stack_pop_resolved() local
2518 struct btf *btf = env->btf; in btf_modifier_check_member() local
2543 struct btf *btf = env->btf; in btf_modifier_check_kflag_member() local
2640 struct btf *btf = env->btf; in btf_modifier_resolve() local
2682 struct btf *btf = env->btf; in btf_var_resolve() local
2728 struct btf *btf = env->btf; in btf_ptr_resolve() local
[all …]
A Dbpf_struct_ops.c43 struct btf *btf; member
89 static bool is_valid_value_type(struct btf *btf, s32 value_id, in is_valid_value_type() argument
171 static int prepare_arg_info(struct btf *btf, in prepare_arg_info() argument
269 info->btf = btf; in prepare_arg_info()
310 static bool is_module_member(const struct btf *btf, u32 id) in is_module_member() argument
332 struct btf *btf, in bpf_struct_ops_desc_init() argument
1035 struct btf *btf; in bpf_struct_ops_map_alloc() local
1044 btf_put(btf); in bpf_struct_ops_map_alloc()
1052 btf_put(btf); in bpf_struct_ops_map_alloc()
1059 if (!btf) in bpf_struct_ops_map_alloc()
[all …]
A Dinode.c599 const struct btf *btf; member
608 const struct btf *btf; in find_bpffs_btf_enums() local
615 btf = bpf_get_btf_vmlinux(); in find_bpffs_btf_enums()
616 if (IS_ERR(btf)) in find_bpffs_btf_enums()
617 return PTR_ERR(btf); in find_bpffs_btf_enums()
618 if (!btf) in find_bpffs_btf_enums()
621 info->btf = btf; in find_bpffs_btf_enums()
650 static bool find_btf_enum_const(const struct btf *btf, const struct btf_type *enum_t, in find_btf_enum_const() argument
659 if (!btf || !enum_t) in find_btf_enum_const()
681 const struct btf *btf, in seq_print_delegate_opts() argument
[all …]
A Dverifier.c290 struct btf *btf; member
301 struct btf *btf; member
3018 struct btf *btf = aux->btf; in bpf_find_exception_callback_insn_off() local
3089 struct btf *btf; member
3160 struct btf *btf; in __find_kfunc_desc_btf() local
3201 b->btf = btf; in __find_kfunc_desc_btf()
3211 btf = b->btf; in __find_kfunc_desc_btf()
8432 btf = reg->btf; in process_spin_lock()
10558 struct btf *btf = prog->aux->btf; in btf_check_subprog_call() local
13009 const struct btf *btf = meta->btf; in check_kfunc_args() local
[all …]
A Dlog.c386 const struct btf *btf; in verbose_linfo() local
417 btf = env->prog->aux->btf; in verbose_linfo()
418 s = ltrim(btf_name_by_offset(btf, linfo->line_off)); in verbose_linfo()
421 s = btf_name_by_offset(btf, linfo->file_name_off); in verbose_linfo()
430 static const char *btf_type_name(const struct btf *btf, u32 id) in btf_type_name() argument
432 return btf_name_by_offset(btf, btf_type_by_id(btf, id)->name_off); in btf_type_name()
509 const char *iter_type_str(const struct btf *btf, u32 btf_id) in iter_type_str() argument
511 if (!btf || btf_id == 0) in iter_type_str()
515 return btf_type_name(btf, btf_id) + sizeof(ITER_PREFIX) - 1; in iter_type_str()
708 verbose(env, "%s", btf_type_name(reg->btf, reg->btf_id)); in print_reg_state()
[all …]
A Dmap_in_map.c57 if (inner_map->btf) { in bpf_map_meta_alloc()
58 btf_get(inner_map->btf); in bpf_map_meta_alloc()
59 inner_map_meta->btf = inner_map->btf; in bpf_map_meta_alloc()
79 btf_put(map_meta->btf); in bpf_map_meta_free()
A Dlocal_storage.c357 const struct btf *btf, in cgroup_storage_check_btf() argument
385 if (!btf_member_is_reg_int(btf, key_type, m, 0, size)) in cgroup_storage_check_btf()
394 if (!btf_member_is_reg_int(btf, key_type, m, offset, size)) in cgroup_storage_check_btf()
421 btf_type_seq_show(map->btf, map->btf_key_type_id, key, m); in cgroup_storage_seq_show_elem()
425 btf_type_seq_show(map->btf, map->btf_value_type_id, in cgroup_storage_seq_show_elem()
432 btf_type_seq_show(map->btf, map->btf_value_type_id, in cgroup_storage_seq_show_elem()
A Dsyscall.c857 struct btf *btf = map->btf; in bpf_map_free() local
880 btf_put(btf); in bpf_map_free()
1209 const struct btf *btf, in map_check_no_btf() argument
1217 const struct btf *btf, u32 btf_key_id, u32 btf_value_id) in map_check_btf() argument
1510 struct btf *btf; in map_create() local
1513 if (IS_ERR(btf)) { in map_create()
1518 btf_put(btf); in map_create()
1522 map->btf = btf; in map_create()
4919 if (prog->aux->btf) in bpf_prog_get_info_by_fd()
5173 if (map->btf) { in bpf_map_get_info_by_fd()
[all …]
A Dbloom_filter.c184 const struct btf *btf, in bloom_map_check_btf() argument
A Darraymap.c499 btf_type_seq_show(map->btf, map->btf_value_type_id, value, m); in array_map_seq_show_elem()
519 btf_type_seq_show(map->btf, map->btf_value_type_id, in percpu_array_map_seq_show_elem()
529 const struct btf *btf, in array_map_check_btf() argument
1012 btf_type_seq_show(map->btf, map->btf_value_type_id, in prog_array_map_seq_show_elem()
A Dcore.c615 type = btf_type_by_id(prog->aux->btf, in bpf_prog_ksym_set_name()
617 func_name = btf_name_by_offset(prog->aux->btf, type->name_off); in bpf_prog_ksym_set_name()
2876 btf_put(btf_mod->btf); in __bpf_free_used_btfs()
3269 struct btf *btf; in bpf_prog_get_file_line() local
3272 btf = prog->aux->btf; in bpf_prog_get_file_line()
3276 if (!btf || !linfo || !jited_linfo) in bpf_prog_get_file_line()
3298 *filep = btf_name_by_offset(btf, linfo[idx].file_name_off); in bpf_prog_get_file_line()
3301 *linep = btf_name_by_offset(btf, linfo[idx].line_off); in bpf_prog_get_file_line()
A DMakefile17 obj-$(CONFIG_BPF_SYSCALL) += btf.o memalloc.o rqspinlock.o stream.o
A Darena.c211 static int arena_map_check_btf(const struct bpf_map *map, const struct btf *btf, in arena_map_check_btf() argument
A Dlpm_trie.c755 const struct btf *btf, in trie_check_btf() argument
A Dbpf_local_storage.c721 const struct btf *btf, in bpf_local_storage_map_check_btf() argument
A Dhashtab.c1574 btf_type_seq_show(map->btf, map->btf_key_type_id, key, m); in htab_map_seq_show_elem()
1576 btf_type_seq_show(map->btf, map->btf_value_type_id, value, m); in htab_map_seq_show_elem()
2433 btf_type_seq_show(map->btf, map->btf_key_type_id, key, m); in htab_percpu_map_seq_show_elem()
2438 btf_type_seq_show(map->btf, map->btf_value_type_id, in htab_percpu_map_seq_show_elem()
/kernel/bpf/preload/iterators/
A Diterators.bpf.c34 struct btf { struct
46 struct btf *btf; member
59 static const char *get_name(struct btf *btf, long btf_id, const char *fallback) in get_name() argument
65 if (!btf) in get_name()
67 str = btf->strings; in get_name()
68 types = btf->types; in get_name()
71 if (name_off >= btf->hdr.str_len) in get_name()
114 get_name(aux->btf, aux->func_info[0].type_id, aux->name), in dump_bpf_prog()
/kernel/trace/
A Dtrace_btf.c13 const struct btf_type *btf_find_func_proto(const char *func_name, struct btf **btf_p) in btf_find_func_proto()
70 const struct btf_member *btf_find_struct_member(struct btf *btf, in btf_find_struct_member() argument
94 if (btf_type_skip_modifiers(btf, member->type, &tid) && in btf_find_struct_member()
101 name = btf_name_by_offset(btf, member->name_off); in btf_find_struct_member()
113 type = btf_type_by_id(btf, tid); in btf_find_struct_member()
A Dtrace_probe.c382 struct btf *btf = ctx->btf; in check_prepare_btf_string_fetch() local
412 static const char *fetch_type_from_btf_type(struct btf *btf, in fetch_type_from_btf_type() argument
470 struct btf *btf; in query_btf_context() local
473 if (ctx->btf) in query_btf_context()
483 ctx->btf = btf; in query_btf_context()
510 if (ctx->btf) { in clear_btf_context()
511 btf_put(ctx->btf); in clear_btf_context()
512 ctx->btf = NULL; in clear_btf_context()
674 if (!ctx->btf) { in parse_btf_arg()
729 struct btf *btf = ctx->btf; in find_fetch_type_from_btf_type() local
[all …]
A Dtrace_btf.h5 struct btf **btf_p);
8 const struct btf_member *btf_find_struct_member(struct btf *btf,
A Dbpf_trace.c88 u64 flags, const struct btf **btf,
515 const struct btf *btf; in BPF_CALL_4() local
519 ret = bpf_btf_printf_prepare(ptr, btf_ptr_size, flags, &btf, &btf_id); in BPF_CALL_4()
523 return btf_type_seq_show_flags(btf, btf_id, ptr->ptr, m, flags); in BPF_CALL_4()
978 u64 flags, const struct btf **btf, in bpf_btf_printf_prepare() argument
989 *btf = bpf_get_btf_vmlinux(); in bpf_btf_printf_prepare()
991 if (IS_ERR_OR_NULL(*btf)) in bpf_btf_printf_prepare()
992 return IS_ERR(*btf) ? PTR_ERR(*btf) : -EINVAL; in bpf_btf_printf_prepare()
1000 t = btf_type_by_id(*btf, *btf_id); in bpf_btf_printf_prepare()
1010 const struct btf *btf; in BPF_CALL_5() local
[all …]
A Dtrace_output.c701 struct btf *btf; in print_function_args() local
714 t = btf_find_func_proto(name, &btf); in print_function_args()
734 param_name = btf_name_by_offset(btf, param[p].name_off); in print_function_args()
737 t = btf_type_skip_modifiers(btf, param[p].type, &tid); in print_function_args()
774 btf_put(btf); in print_function_args()
A Dtrace_probe.h418 struct btf *btf; /* The BTF to be used */ member
/kernel/sched/
A Dext.c5842 t = btf_type_by_id(reg->btf, reg->btf_id); in bpf_scx_btf_struct_access()
5951 static int bpf_scx_init(struct btf *btf) in bpf_scx_init() argument
5953 task_struct_type = btf_type_by_id(btf, btf_tracing_ids[BTF_TRACING_TYPE_TASK]); in bpf_scx_init()

Completed in 170 milliseconds