提交 978defee 编写于 作者: S Steven Rostedt (VMware)

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: NSteven Rostedt (VMware) <rostedt@goodmis.org>
上级 82fbc8c4
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册