Home
last modified time | relevance | path

Searched refs:strs_data (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/tools/lib/bpf/
Dstrset.c13 void *strs_data; member
25 const char *str = s->strs_data + key; in strset_hash_fn()
33 const char *str1 = s->strs_data + key1; in strset_equal_fn()
34 const char *str2 = s->strs_data + key2; in strset_equal_fn()
58 set->strs_data = malloc(init_data_sz); in strset__new()
59 if (!set->strs_data) in strset__new()
62 memcpy(set->strs_data, init_data, init_data_sz); in strset__new()
66 for (off = 0; off < set->strs_data_len; off += strlen(set->strs_data + off) + 1) { in strset__new()
90 free(set->strs_data); in strset__free()
101 return set->strs_data; in strset__data()
[all …]
Dbtf.c113 void *strs_data; member
275 const char *start = btf->strs_data; in btf_parse_str_sec()
1016 btf->strs_data = btf->raw_data + btf->hdr->hdr_len; in btf_new_empty()
1065 btf->strs_data = btf->raw_data + btf->hdr->hdr_len + btf->hdr->str_off; in btf_new()
1476 return btf->strs_data ? btf->strs_data : strset__data(btf->strs_set); in btf_strs_data()
1678 set = strset__new(BTF_MAX_STR_OFFSET, btf->strs_data, btf->hdr->str_len); in btf_ensure_modifiable()
1688 btf->strs_data = NULL; in btf_ensure_modifiable()
1977 memset(btf->strs_data + old_strs_len, 0, btf->hdr->str_len - old_strs_len); in btf__add_btf()