diff options
author | 2020-09-02 16:53:41 -0700 | |
---|---|---|
committer | 2020-09-03 17:36:41 -0700 | |
commit | 4daab7132731ac5ec9384c8a070cdb9607dc38c8 (patch) | |
tree | 1b6e2a0484ce01d82c58a29824b8c251a334fc8d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bpf: Do not use bucket_lock for hashmap iterator (diff) | |
download | wireguard-linux-4daab7132731ac5ec9384c8a070cdb9607dc38c8.tar.xz wireguard-linux-4daab7132731ac5ec9384c8a070cdb9607dc38c8.zip |
selftests/bpf: Add bpf_{update, delete}_map_elem in hashmap iter program
Added bpf_{updata,delete}_map_elem to the very map element the
iter program is visiting. Due to rcu protection, the visited map
elements, although stale, should still contain correct values.
$ ./test_progs -n 4/18
#4/18 bpf_hash_map:OK
#4 bpf_iter:OK
Summary: 1/1 PASSED, 0 SKIPPED, 0 FAILED
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200902235341.2001534-1-yhs@fb.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions