You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge: tracing/osnoise: Do not cancel timer if no kthread and add cpumask to identify user threads
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/5167
JIRA: https://issues.redhat.com/browse/RHEL-39968
rtla crashes the timerlat tracer if killed with SIGTERM and subsequently re-run:
while true; do rtla timerlat top -u -q & PID=$!; sleep 5; kill -INT $PID; sleep 0.001; kill -TERM $PID; wait $PID; done
Fix two separate causes of the issue:
- Check for an active kthread before doing hrtimer_cancel() in both timerlat_fd_release() and tlat_var_reset(). Add necessary locking to prevent race between the kthread read and the timer cancel.
- Identify CPUs on which a user workload is running with a cpumask and prevent calling of kthread_stop() on the thread such CPUs.
Signed-off-by: Tomas Glozar <[email protected]>
Approved-by: Luis Claudio R. Goncalves <[email protected]>
Approved-by: Andrew Halaney <[email protected]>
Approved-by: CKI KWF Bot <[email protected]>
Merged-by: Rado Vrbovsky <[email protected]>
0 commit comments