[PATCH v3 -tip 0/4] tracing: make a snapshot feature available fromuserspace

From: Hiraku Toyooka
Date: Wed Dec 19 2012 - 02:02:31 EST


Hi, Steven,

Thank you for your review.
I applied your review comments.

These patches depend on the next patch.

tracing: Add a resize function to make one buffer equivalent to another buffer
http://lkml.kernel.org/r/20121017025616.2627.91226.stgit@falsita

v2->v3:
[1/4] tracing: add checks if tr->buffer is NULL in tracing_reset{_online_cpus}
- (new patch)
[2/4] tracing: replace static old_tracer with strcmp
- (new patch)
[3/4] tracing: make a snapshot feature available from userspace
- changed snapshot file I/F (removed "snapshot_allocate")
- changed CONFIG_TRACER_SNAPSHOT's location and description
- changed an integer flag of __tracing_open() to bool
- switched to use seq_read() directly for reading snapshot
[4/4] tracing: add description of snapshot to Documentation/trace/ftrace.txt
- updated documentation of the snapshot

ToDo:
- adding "trace_snapshot" kernel parameter to allocate spare buffer on boot.

(v1: https://lkml.org/lkml/2012/10/2/67)
(v2: https://lkml.org/lkml/2012/10/16/585)

---

Hiraku Toyooka (4):
tracing: add checks if tr->buffer is NULL in tracing_reset{_online_cpus}
tracing: replace static old_tracer with strcmp
tracing: make a snapshot feature available from userspace
tracing: add description of snapshot to Documentation/trace/ftrace.txt


Documentation/trace/ftrace.txt | 83 +++++++++++++++++++++
include/linux/ftrace_event.h | 3 +
kernel/trace/Kconfig | 10 +++
kernel/trace/trace.c | 158 ++++++++++++++++++++++++++++++++++------
kernel/trace/trace.h | 1
5 files changed, 231 insertions(+), 24 deletions(-)

--
Hiraku TOYOOKA
Linux Technology Center
Yokohama Research Laboratory
Hitachi Ltd.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/