diff options
| author | Martin KaFai Lau <[email protected]> | 2020-01-13 23:26:47 -0800 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2020-01-14 09:54:31 -0800 |
| commit | 3b4130418f62b0e7a4685cc2c03bb41c6cb8922d (patch) | |
| tree | e21b8e78a62af42310fbf7d9e0c92061df9ccf97 /tools/perf/scripts/python | |
| parent | 6dd42aa17fdd59f383998c6c3e0ecc89414f4a04 (diff) | |
bpf: Fix seq_show for BPF_MAP_TYPE_STRUCT_OPS
Instead of using bpf_struct_ops_map_lookup_elem() which is
not implemented, bpf_struct_ops_map_seq_show_elem() should
also use bpf_struct_ops_map_sys_lookup_elem() which does
an inplace update to the value. The change allocates
a value to pass to bpf_struct_ops_map_sys_lookup_elem().
[root@arch-fb-vm1 bpf]# cat /sys/fs/bpf/dctcp
{{{1}},BPF_STRUCT_OPS_STATE_INUSE,{{00000000df93eebc,00000000df93eebc},0,2, ...
Fixes: 85d33df357b6 ("bpf: Introduce BPF_MAP_TYPE_STRUCT_OPS")
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Martin KaFai Lau <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions