Home
last modified time | relevance | path

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

/linux/tools/lib/bpf/
H A Drelo_core.c266 int access_idx, parsed_len, i; in bpf_core_parse_spec() local
293 if (sscanf(spec_str, "%d%n", &access_idx, &parsed_len) != 1) in bpf_core_parse_spec()
295 if (access_idx < 0) in bpf_core_parse_spec()
300 spec->raw_spec[spec->raw_len++] = access_idx; in bpf_core_parse_spec()
310 access_idx = spec->raw_spec[0]; in bpf_core_parse_spec()
313 acc->idx = access_idx; in bpf_core_parse_spec()
317 if (!btf_is_any_enum(t) || spec->raw_len > 1 || access_idx >= btf_vlen(t)) in bpf_core_parse_spec()
321 name_off = btf_is_enum(t) ? btf_enum(t)[access_idx].name_off in bpf_core_parse_spec()
322 : btf_enum64(t)[access_idx].name_off; in bpf_core_parse_spec()
333 spec->bit_offset = access_idx * sz * 8; in bpf_core_parse_spec()
[all …]