Home
last modified time | relevance | path

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

/linux-6.1.9/tools/lib/bpf/
Dlibbpf_internal.h109 size_t sfx_len = strlen(sfx); in str_has_sfx() local
111 if (sfx_len > str_len) in str_has_sfx()
113 return strcmp(str + str_len - sfx_len, sfx) == 0; in str_has_sfx()
Dlibbpf.c1529 int pfx_len, sfx_len = max((size_t)7, strlen(real_name)); in internal_map_name() local
1564 if (sfx_len >= BPF_OBJ_NAME_LEN) in internal_map_name()
1565 sfx_len = BPF_OBJ_NAME_LEN - 1; in internal_map_name()
1571 pfx_len = min((size_t)BPF_OBJ_NAME_LEN - sfx_len - 1, strlen(obj->name)); in internal_map_name()
1574 sfx_len, real_name); in internal_map_name()
/linux-6.1.9/kernel/bpf/
Dbtf.c6185 int len, sfx_len = sizeof("__sz") - 1; in is_kfunc_arg_mem_size() local
6198 if (len < sfx_len) in is_kfunc_arg_mem_size()
6200 param_name += len - sfx_len; in is_kfunc_arg_mem_size()
6201 if (strncmp(param_name, "__sz", sfx_len)) in is_kfunc_arg_mem_size()