1
0
Fork 0

tracing: Do a WARN_ON() if start_thread() in hwlat is called when thread exists

The start function of the hwlat tracer should never be called when the hwlat
thread already exists. If it is called, do a WARN_ON().

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
hifive-unleashed-5.1
Steven Rostedt (VMware) 2018-08-01 16:06:02 -04:00
parent 82fbc8c48a
commit 978defee11
1 changed files with 1 additions and 1 deletions

View File

@ -354,7 +354,7 @@ static int start_kthread(struct trace_array *tr)
struct task_struct *kthread;
int next_cpu;
if (hwlat_kthread)
if (WARN_ON(hwlat_kthread))
return 0;
/* Just pick the first CPU on first iteration */