diff options
author | 2021-04-08 09:13:05 +0300 | |
---|---|---|
committer | 2021-04-08 23:54:47 -0700 | |
commit | 7a85e4dfa7f5d052ae5016e96f1ee426a8870e78 (patch) | |
tree | 22cc3b3b4ff4dc5ab95e6e6392e586bf76593c29 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | selftests/bpf: Pass page size from userspace in sockopt_sk (diff) | |
download | wireguard-linux-7a85e4dfa7f5d052ae5016e96f1ee426a8870e78.tar.xz wireguard-linux-7a85e4dfa7f5d052ae5016e96f1ee426a8870e78.zip |
selftests/bpf: Pass page size from userspace in map_ptr
Use ASSERT to check result but keep CHECK where format was used to
report error.
Use bpf_map__set_max_entries() to set map size dynamically from
userspace according to page size.
Zero-initialize the variable in bpf prog, otherwise it will cause
problems on some versions of Clang.
Signed-off-by: Yauheni Kaliuta <yauheni.kaliuta@redhat.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210408061310.95877-4-yauheni.kaliuta@redhat.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions