aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorHou Tao <[email protected]>2022-10-14 19:39:46 +0800
committerAlexei Starovoitov <[email protected]>2022-10-18 10:27:02 -0700
commit4835f9ee980c1867584018e69cbf1f62d7844cb3 (patch)
treee2b8022025e270d1f39a04f592dbdd468be80f94 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parentd39d1445d37747032e2b26732fed6fe25161cd36 (diff)
bpf: Use rcu_trace_implies_rcu_gp() for program array freeing
To support both sleepable and normal uprobe bpf program, the freeing of trace program array chains a RCU-tasks-trace grace period and a normal RCU grace period one after the other. With the introduction of rcu_trace_implies_rcu_gp(), __bpf_prog_array_free_sleepable_cb() can check whether or not a normal RCU grace period has also passed after a RCU-tasks-trace grace period has passed. If it is true, it is safe to invoke kfree() directly. Signed-off-by: Hou Tao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions