Defined in 1 files as a prototype:

Defined in 2 files as a function:

Referenced in 13 files:

Smatch caller information:

kernel/bpf/log.c btf_type_name() -> btf_name_by_offset()

Type Parameter Key Value
CAPPED_DATA 0 btf->start_id 1
DATA_SOURCE 0 btf $0

kernel/bpf/log.c verbose_linfo() -> btf_name_by_offset()

Type Parameter Key Value

kernel/bpf/log.c verbose_linfo() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max

kernel/bpf/inode.c find_btf_enum_const() -> btf_name_by_offset()

Type Parameter Key Value
DATA_SOURCE 0 btf $0
STR_LEN 0 btf 4,13-14
STR_LEN 0 btf 4,13-14
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &fc->uapi_mutex

kernel/bpf/inode.c seq_print_delegate_opts() -> btf_name_by_offset()

Type Parameter Key Value
DATA_SOURCE 0 btf $2
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &m->lock
HALF_LOCKED2 global &namespace_sem

kernel/bpf/relo_core.c btf__name_by_offset() -> btf_name_by_offset()

Type Parameter Key Value
DATA_SOURCE 0 btf $0
DATA_SOURCE 1 offset $1
USER_DATA 1 offset 0-u32max

kernel/trace/trace_probe.c sprint_nth_btf_arg() -> btf_name_by_offset()

Type Parameter Key Value

kernel/bpf/btf_relocate.c btf_relocate_map_distilled_base() -> btf_name_by_offset()

Type Parameter Key Value
CAPPED_DATA 0 btf->start_id 1

kernel/bpf/btf_relocate.c btf_relocate_map_distilled_base() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 1-u64max
PARAM_VALUE 1 offset 1-u32max
CAPPED_DATA 0 btf->start_id 1

kernel/bpf/btf_relocate.c btf_relocate_map_distilled_base() -> btf_name_by_offset()

Type Parameter Key Value
CAPPED_DATA 0 btf->start_id 1

kernel/bpf/btf.c bpf_core_add_cands() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
DATA_SOURCE 0 btf $1
LOCK2 global &cand_cache_mutex

kernel/bpf/btf.c bpf_core_find_cands() -> btf_name_by_offset()

Type Parameter Key Value
LOCK2 global &cand_cache_mutex

kernel/bpf/btf.c btf_check_func_type_match() -> btf_name_by_offset()

Type Parameter Key Value
DATA_SOURCE 0 btf $1

kernel/bpf/btf.c btf_check_func_type_match() -> btf_name_by_offset()

Type Parameter Key Value
DATA_SOURCE 0 btf $3

kernel/bpf/btf.c btf_check_func_type_match() -> btf_name_by_offset()

Type Parameter Key Value
DATA_SOURCE 0 btf $1

kernel/bpf/btf.c btf_check_func_type_match() -> btf_name_by_offset()

Type Parameter Key Value
DATA_SOURCE 0 btf $3

kernel/bpf/btf.c btf_check_iter_arg() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
DATA_SOURCE 0 btf $0

kernel/bpf/btf.c btf_check_iter_kfuncs() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
DATA_SOURCE 0 btf $0

kernel/bpf/btf.c btf_check_kfunc_protos() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
DATA_SOURCE 0 btf $0

kernel/bpf/btf.c btf_check_sorted() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
DATA_SOURCE 0 btf $0

kernel/bpf/btf.c btf_check_sorted() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
DATA_SOURCE 0 btf $0

kernel/bpf/btf.c btf_check_sorted() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
DATA_SOURCE 0 btf $0

kernel/bpf/btf.c btf_ctx_access() -> btf_name_by_offset()

Type Parameter Key Value

kernel/bpf/btf.c btf_decl_tag_check_meta() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
PARAM_VALUE 1 offset 0-16777215
BUF_SIZE 0 btf 248
CAPPED_DATA 1 offset 1

kernel/bpf/btf.c btf_find_by_name_kind() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
BUF_SIZE 0 btf s32min-s32max
DATA_SOURCE 0 btf $0
STR_LEN 0 btf (-1)-s32max
STR_LEN 0 btf (-1)-s32max
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 btf->data_size

kernel/bpf/btf.c btf_find_by_name_kind() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
BUF_SIZE 0 btf s32min-s32max
DATA_SOURCE 0 btf $0
STR_LEN 0 btf (-1)-s32max
STR_LEN 0 btf (-1)-s32max
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 btf->data_size

kernel/bpf/btf.c btf_find_by_name_kind_bsearch() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
DATA_SOURCE 0 btf $0
STR_LEN 0 btf (-1)-s32max
STR_LEN 0 btf (-1)-s32max
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 btf->data_size

kernel/bpf/btf.c btf_is_prog_ctx_type() -> btf_name_by_offset()

Type Parameter Key Value
DATA_SOURCE 0 btf $1

kernel/bpf/btf.c btf_is_prog_ctx_type() -> btf_name_by_offset()

Type Parameter Key Value
DATA_SOURCE 0 btf $1

kernel/bpf/btf.c btf_is_prog_ctx_type() -> btf_name_by_offset()

Type Parameter Key Value

kernel/bpf/btf.c btf_nested_type_is_trusted() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max

kernel/bpf/btf.c btf_param_match_suffix() -> btf_name_by_offset()

Type Parameter Key Value
BUF_SIZE 0 btf->struct_ops_tab (-1),8-s32max
DATA_SOURCE 0 btf $0
STR_LEN 0 btf 3-8,10-11,16-17
STR_LEN 0 btf 3-8,10-11,16-17

kernel/bpf/btf.c btf_prepare_func_args() -> btf_name_by_offset()

Type Parameter Key Value

kernel/bpf/btf.c btf_prepare_func_args() -> btf_name_by_offset()

Type Parameter Key Value

kernel/bpf/btf.c btf_ref_type_check_meta() -> btf_name_by_offset()

Type Parameter Key Value

kernel/bpf/btf.c btf_show_name() -> btf_name_by_offset()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

kernel/bpf/btf.c btf_show_name() -> btf_name_by_offset()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

kernel/bpf/btf.c btf_show_name() -> btf_name_by_offset()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

kernel/bpf/btf.c btf_type_ids_nocast_alias() -> btf_name_by_offset()

Type Parameter Key Value
DATA_SOURCE 0 btf $1

kernel/bpf/btf.c btf_type_ids_nocast_alias() -> btf_name_by_offset()

Type Parameter Key Value
DATA_SOURCE 0 btf $3

kernel/bpf/btf.c btf_validate_prog_ctx_type() -> btf_name_by_offset()

Type Parameter Key Value
DATA_SOURCE 0 btf $1

kernel/bpf/btf.c btf_validate_prog_ctx_type() -> btf_name_by_offset()

Type Parameter Key Value
DATA_SOURCE 0 btf $1

kernel/bpf/btf.c btf_validate_prog_ctx_type() -> btf_name_by_offset()

Type Parameter Key Value

kernel/bpf/check_btf.c check_btf_func() -> btf_name_by_offset()

Type Parameter Key Value
CAPPED_DATA 0 btf->start_id 1

kernel/bpf/check_btf.c check_btf_line() -> btf_name_by_offset()

Type Parameter Key Value

kernel/bpf/check_btf.c check_btf_line() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max

kernel/bpf/verifier.c __check_pseudo_btf_id() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
BUF_SIZE 0 btf s32min-(-1),1-s32max
BUF_SIZE 0 btf s32min-(-1),1-s32max
CAPPED_DATA 0 btf->start_id 1
DATA_SOURCE 0 btf $3
PARAM_COMPARE 0 btf->nr_types > $0->start_id

kernel/bpf/verifier.c __check_pseudo_btf_id() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
PARAM_VALUE 0 btf->hdr.str_len 0-4294967295
PARAM_VALUE 0 btf->start_str_off 0-4294967295
BUF_SIZE 0 btf s32min-(-1),1-s32max
BUF_SIZE 0 btf s32min-(-1),1-s32max
DATA_SOURCE 0 btf $3

kernel/bpf/verifier.c __process_kf_arg_ptr_to_graph_node() -> btf_name_by_offset()

Type Parameter Key Value
CAPPED_DATA 0 btf->start_id 1

kernel/bpf/verifier.c __process_kf_arg_ptr_to_graph_node() -> btf_name_by_offset()

Type Parameter Key Value
CAPPED_DATA 0 btf->start_id 1

kernel/bpf/verifier.c __process_kf_arg_ptr_to_graph_node() -> btf_name_by_offset()

Type Parameter Key Value
CAPPED_DATA 0 btf->start_id 1

kernel/bpf/verifier.c bpf_check_attach_btf_id_multi() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 1-u64max
CAPPED_DATA 0 btf->start_id 1
DATA_SOURCE 0 btf $0
PARAM_COMPARE 0 btf->nr_types > $0->start_id

kernel/bpf/verifier.c bpf_check_attach_target() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 1-u64max
CAPPED_DATA 0 btf->start_id 1
PARAM_COMPARE 0 btf->nr_types > $0->start_id
HALF_LOCKED2 &prog->aux->dst_mutex
HALF_LOCKED2 global &cgroup_mutex

kernel/bpf/verifier.c btf_attach_func_proto() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
CAPPED_DATA 0 btf->start_id 1
DATA_SOURCE 0 btf $1
PARAM_COMPARE 0 btf->nr_types > $0->start_id

kernel/bpf/verifier.c btf_id_allow_sleepable() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
CAPPED_DATA 0 btf->start_id 1
DATA_SOURCE 0 btf $3
PARAM_COMPARE 0 btf->nr_types > $0->start_id

kernel/bpf/verifier.c btf_type_name() -> btf_name_by_offset()

Type Parameter Key Value
CAPPED_DATA 0 btf->start_id 1
DATA_SOURCE 0 btf $0

kernel/bpf/verifier.c check_helper_call() -> btf_name_by_offset()

Type Parameter Key Value

kernel/bpf/verifier.c check_kfunc_args() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
CAPPED_DATA 0 btf 1

kernel/bpf/verifier.c check_kfunc_args() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
CAPPED_DATA 0 btf 1

kernel/bpf/verifier.c check_kfunc_call() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max

kernel/bpf/verifier.c check_ptr_to_btf_access() -> btf_name_by_offset()

Type Parameter Key Value
CAPPED_DATA 0 btf->start_id 1

kernel/bpf/verifier.c check_ptr_to_map_access() -> btf_name_by_offset()

Type Parameter Key Value
CAPPED_DATA 0 btf->start_id 1
PARAM_COMPARE 0 btf->nr_types > $0->start_id

kernel/bpf/verifier.c check_struct_ops_btf_id() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
CAPPED_DATA 0 btf->struct_ops_tab->cnt 1

kernel/bpf/verifier.c disasm_kfunc_name() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 0-ptr_max
BUF_SIZE 0 btf s32min-(-1),1-s32max
BUF_SIZE 0 btf s32min-(-1),1-s32max
CAPPED_DATA 0 btf->start_id 1
DATA_SOURCE 0 btf r find_kfunc_desc_btf

kernel/bpf/verifier.c fetch_kfunc_meta() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 0-ptr_max
BUF_SIZE 0 btf s32min-(-1),1-s32max
BUF_SIZE 0 btf s32min-(-1),1-s32max
CAPPED_DATA 0 btf->start_id 1
DATA_SOURCE 0 btf r find_kfunc_desc_btf
PARAM_COMPARE 0 btf->nr_types > $0->start_id

kernel/bpf/verifier.c find_btf_percpu_datasec() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
BUF_SIZE 0 btf s32min-(-1),1-s32max
BUF_SIZE 0 btf s32min-(-1),1-s32max
CAPPED_DATA 0 btf->start_id 1
DATA_SOURCE 0 btf $0
PARAM_COMPARE 0 btf->nr_types > $0->start_id

kernel/bpf/verifier.c get_kfunc_arg_type() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
CAPPED_DATA 0 btf 1

kernel/bpf/verifier.c is_kfunc_arg_scalar_with_name() -> btf_name_by_offset()

Type Parameter Key Value
DATA_SOURCE 0 btf $0
STR_LEN 0 btf 13,15
STR_LEN 0 btf 13,15

kernel/bpf/verifier.c process_kf_arg_ptr_to_btf_id() -> btf_name_by_offset()

Type Parameter Key Value

kernel/bpf/bpf_struct_ops.c bpf_struct_ops_desc_init() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
BUF_SIZE 0 btf->struct_ops_tab (-1),8-s32max
CAPPED_DATA 0 btf->start_id 1
DATA_SOURCE 0 btf $1
PARAM_COMPARE 0 btf->nr_types > $0->start_id

kernel/bpf/bpf_struct_ops.c bpf_struct_ops_map_update_elem() -> btf_name_by_offset()

Type Parameter Key Value
LOCK2 &st_map->lock
TYPE_LOCK (struct bpf_struct_ops_map)->lock

kernel/bpf/bpf_struct_ops.c bpf_struct_ops_map_update_elem() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
LOCK2 &st_map->lock
TYPE_LOCK (struct bpf_struct_ops_map)->lock

kernel/bpf/bpf_struct_ops.c is_module_member() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
BUF_SIZE 0 btf->struct_ops_tab (-1),8-s32max
CAPPED_DATA 0 btf->start_id 1
DATA_SOURCE 0 btf $0

kernel/bpf/bpf_struct_ops.c is_valid_value_type() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
BUF_SIZE 0 btf->struct_ops_tab (-1),8-s32max
CAPPED_DATA 0 btf->start_id 1
DATA_SOURCE 0 btf $0

kernel/bpf/core.c bpf_get_linfo_file_line() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 1-u64max
DATA_SOURCE 0 btf $0
RX_PATH
TASK_NOT_RUNNING

kernel/bpf/core.c bpf_get_linfo_file_line() -> btf_name_by_offset()

Type Parameter Key Value
PARAM_VALUE 0 btf 1-u64max
DATA_SOURCE 0 btf $0
RX_PATH
TASK_NOT_RUNNING

kernel/bpf/core.c bpf_prog_ksym_set_name() -> btf_name_by_offset()

Type Parameter Key Value
CAPPED_DATA 0 btf->start_id 1