diff options
| author | Namhyung Kim <[email protected]> | 2025-05-15 18:10:42 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2025-05-31 11:45:24 +0000 |
| commit | 0df14c1f1ed530ba21b603a2e282589c034367da (patch) | |
| tree | 4a24285744a1a9f95bdeb47f0ccc18df6aa9149b /rust/helpers/platform.c | |
| parent | perf trace: Set errpid to false for rseq and set_robust_list (diff) | |
| download | kernel-0df14c1f1ed530ba21b603a2e282589c034367da.tar.gz kernel-0df14c1f1ed530ba21b603a2e282589c034367da.zip | |
perf lock contention: Reject more than 10ms delays for safety
Delaying kernel operations can be dangerous and the kernel may kill
(non-sleepable) BPF programs running for long in the future.
Limit the max delay to 10ms and update the document about it.
$ sudo ./perf lock con -abl -J 100000us@cgroup_mutex true
lock delay is too long: 100000us (> 10ms)
Usage: perf lock contention [<options>]
-J, --inject-delay <TIME@FUNC>
Inject delays to specific locks
Suggested-by: Alexei Starovoitov <[email protected]>
Signed-off-by: Namhyung Kim <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Kan Liang <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Song Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions
