diff options
| author | Martin KaFai Lau <[email protected]> | 2022-10-25 18:45:24 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2022-10-26 06:11:47 +0000 |
| commit | 387b532138eed5b12e1afa68cafb6a389507310f (patch) | |
| tree | fdf22af5765c1f3c2e0c31b61f25e4e249459a20 /scripts/bpf_doc.py | |
| parent | selftests/bpf: Ensure no task storage failure for bpf_lsm.s prog due to deadl... (diff) | |
| download | kernel-387b532138eed5b12e1afa68cafb6a389507310f.tar.gz kernel-387b532138eed5b12e1afa68cafb6a389507310f.zip | |
selftests/bpf: Tracing prog can still do lookup under busy lock
This patch modifies the task_ls_recursion test to check that
the first bpf_task_storage_get(&map_a, ...) in BPF_PROG(on_update)
can still do the lockless lookup even it cannot acquire the percpu
busy lock. If the lookup succeeds, it will increment the value
by 1 and the value in the task storage map_a will become 200+1=201.
After that, BPF_PROG(on_update) tries to delete from map_a and
should get -EBUSY because it cannot acquire the percpu busy lock
after finding the data.
Signed-off-by: Martin KaFai Lau <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions
