diff options
author | Steven Rostedt (VMware) <[email protected]> | 2018-08-01 15:40:57 -0400 |
---|---|---|
committer | Steven Rostedt (VMware) <[email protected]> | 2018-08-01 16:01:02 -0400 |
commit | f143641bfef9a4a60c57af30de26c63057e7e695 (patch) | |
tree | 6d1bfaf1544530bee0ae1b60336766d3d2823525 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 5248ee85603067e62a228402afd2fb68f957746b (diff) |
tracing: Do not call start/stop() functions when tracing_on does not change
Currently, when one echo's in 1 into tracing_on, the current tracer's
"start()" function is executed, even if tracing_on was already one. This can
lead to strange side effects. One being that if the hwlat tracer is enabled,
and someone does "echo 1 > tracing_on" into tracing_on, the hwlat tracer's
start() function is called again which will recreate another kernel thread,
and make it unable to remove the old one.
Link: http://lkml.kernel.org/r/[email protected]
Cc: [email protected]
Fixes: 2df8f8a6a897e ("tracing: Fix regression with irqsoff tracer and tracing_on file")
Reported-by: Erica Bugden <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions