[PATCH 0/2] tracing: Fix ftrace_boot_snapshot command line

Steven Rostedt posted 2 patches 2 years, 10 months ago
There is a newer version of this series
kernel/trace/trace.c | 25 ++++++++++++-------------
1 file changed, 12 insertions(+), 13 deletions(-)
[PATCH 0/2] tracing: Fix ftrace_boot_snapshot command line
Posted by Steven Rostedt 2 years, 10 months ago
While debugging some boot up code, I found that the snapshots were
constantly triggering at boot up, even though there was no boot
snapshot specified. Looking into it, I found there were too bugs.

1) It would trigger a snapshot on any instance if one was created
   from the kernel command line.

2) The error handling would only affect the top level instance.
   So the fact that a snapshot was done on a instance that didn't
   allocate a buffer triggered a warning written into the top level
   buffer, and worse yet, disabled the top level buffer.

This addresses both of the above bugs.

Steven Rostedt (Google) (2):
      tracing: Have tracing_snapshot_instance_cond() write errors to the appropriate instance
      tracing: Fix ftrace_boot_snapshot command line logic

----
 kernel/trace/trace.c | 25 ++++++++++++-------------
 1 file changed, 12 insertions(+), 13 deletions(-)