projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82fbc8c
)
tracing: Do a WARN_ON() if start_thread() in hwlat is called when thread exists
author
Steven Rostedt (VMware)
<rostedt@goodmis.org>
Wed, 1 Aug 2018 20:06:02 +0000
(16:06 -0400)
committer
Steven Rostedt (VMware)
<rostedt@goodmis.org>
Wed, 1 Aug 2018 20:06:02 +0000
(16:06 -0400)
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>
kernel/trace/trace_hwlat.c
patch
|
blob
|
history
diff --git
a/kernel/trace/trace_hwlat.c
b/kernel/trace/trace_hwlat.c
index
2d9d36d
..
688e48b
100644
(file)
--- a/
kernel/trace/trace_hwlat.c
+++ b/
kernel/trace/trace_hwlat.c
@@
-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 */