Home
last modified time | relevance | path

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

/tools/lib/bpf/
Drelo_core.c159 int access_idx, parsed_len, i; in bpf_core_parse_spec() local
185 if (sscanf(spec_str, "%d%n", &access_idx, &parsed_len) != 1) in bpf_core_parse_spec()
190 spec->raw_spec[spec->raw_len++] = access_idx; in bpf_core_parse_spec()
200 access_idx = spec->raw_spec[0]; in bpf_core_parse_spec()
203 acc->idx = access_idx; in bpf_core_parse_spec()
207 if (!btf_is_enum(t) || spec->raw_len > 1 || access_idx >= btf_vlen(t)) in bpf_core_parse_spec()
211 acc->name = btf__name_by_offset(btf, btf_enum(t)[access_idx].name_off); in bpf_core_parse_spec()
221 spec->bit_offset = access_idx * sz * 8; in bpf_core_parse_spec()
228 access_idx = spec->raw_spec[i]; in bpf_core_parse_spec()
235 if (access_idx >= btf_vlen(t)) in bpf_core_parse_spec()
[all …]