diff options
| author | Steven Rostedt (Google) <[email protected]> | 2023-05-28 05:17:42 +0000 |
|---|---|---|
| committer | Steven Rostedt (Google) <[email protected]> | 2023-05-29 01:15:46 +0000 |
| commit | a2d910f02231f33118647fc438157ae69c073f89 (patch) | |
| tree | 0fa929835374eb979fd7da76241a027d50455e9d /lib/xarray.c | |
| parent | tracing: Only make selftest conditionals affect the global_trace (diff) | |
| download | kernel-a2d910f02231f33118647fc438157ae69c073f89.tar.gz kernel-a2d910f02231f33118647fc438157ae69c073f89.zip | |
tracing: Have function_graph selftest call cond_resched()
When all kernel debugging is enabled (lockdep, KSAN, etc), the function
graph enabling and disabling can take several seconds to complete. The
function_graph selftest enables and disables function graph tracing
several times. With full debugging enabled, the soft lockup watchdog was
triggering because the selftest was running without ever scheduling.
Add cond_resched() throughout the test to make sure it does not trigger
the soft lockup detector.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'lib/xarray.c')
0 files changed, 0 insertions, 0 deletions
