diff options
| author | Yonghong Song <[email protected]> | 2023-08-27 08:28:11 -0700 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2023-09-08 08:42:18 -0700 |
| commit | 6adf82a4398d774398b4538dad561958c2c9521e (patch) | |
| tree | f94db8a13ea660ba284fb176cbd09cebfc460791 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py | |
| parent | 968c76cb3dc6cc86e8099ecaa5c30dc0d4738a30 (diff) | |
selftests/bpf: Add tests for array map with local percpu kptr
Add non-sleepable and sleepable tests with percpu kptr. For
non-sleepable test, four programs are executed in the order of:
1. allocate percpu data.
2. assign values to percpu data.
3. retrieve percpu data.
4. de-allocate percpu data.
The sleepable prog tried to exercise all above 4 steps in a
single prog. Also for sleepable prog, rcu_read_lock is needed
to protect direct percpu ptr access (from map value) and
following bpf_this_cpu_ptr() and bpf_per_cpu_ptr() helpers.
Signed-off-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py')
0 files changed, 0 insertions, 0 deletions