aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLorenz Bauer <[email protected]>2020-09-23 17:01:55 +0100
committerAlexei Starovoitov <[email protected]>2020-09-23 11:46:46 -0700
commit0789e13bc3f84f0adafe1935af036956638950f9 (patch)
tree119e9fb88d0db8851514aefc6e5c6c1f69fd6dbc /tools/perf/scripts/python
parenta8a717963fe5ecfd274eb93dd1285ee9428ffca7 (diff)
bpf: Explicitly size compatible_reg_types
Arrays with designated initializers have an implicit length of the highest initialized value plus one. I used this to ensure that newly added entries in enum bpf_reg_type get a NULL entry in compatible_reg_types. This is difficult to understand since it requires knowledge of the peculiarities of designated initializers. Use __BPF_ARG_TYPE_MAX to size the array instead. Suggested-by: Alexei Starovoitov <[email protected]> Signed-off-by: Lorenz Bauer <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions