diff options
author | 2020-08-03 12:05:44 +0300 | |
---|---|---|
committer | 2020-08-03 23:31:59 +0200 | |
commit | fa5cb548ced61b9d3095f32f8a7e427a248c65ee (patch) | |
tree | 04e21e7068cb009498667e619e213bb90ebea164 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | Merge branch 'bpf-libbpf-btf-parsing' (diff) | |
download | wireguard-linux-fa5cb548ced61b9d3095f32f8a7e427a248c65ee.tar.xz wireguard-linux-fa5cb548ced61b9d3095f32f8a7e427a248c65ee.zip |
bpf: Setup socket family and addresses in bpf_prog_test_run_skb
Now it's impossible to test all branches of cgroup_skb bpf program which
accesses skb->family and skb->{local,remote}_ip{4,6} fields because they
are zeroed during socket allocation. This commit fills socket family and
addresses from related fields in constructed skb.
Signed-off-by: Dmitry Yakunin <zeil@yandex-team.ru>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20200803090545.82046-2-zeil@yandex-team.ru
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions