[PATCH v3 00/12] event tracing expose change and bugfix/cleanup
Date: Tue Apr 09 2013 - 23:27:32 EST
From: "zhangwei(Jovi)" <jovi.zhangwei@xxxxxxxxxx>
I have reworked this patchset again with minor change.
[v2 -> v3:
- change trace_descripte_t defintion in patch 3
- new patch "export ftrace_events"
- remove patch "export syscall metadata"
(syscall tracing are use same event_trace_ops backend as normal event tracepoint,
so there's no need to export anything of syscall)
- remove private data field in ftrace_event_file struct (also not needed)
This patchset contain:
1) event tracing expose work (v3)
new implementation is based on multi-instances buffer work,
it also integrate syscall tracing code to use same event backend store mechanism.
The change include patch 1-6(patch 2 also fix a long-term minor bug)
2) some cleanup
This include patch 7-11.
3) patch 12 fix libtraceevent warning
Note that these patches is based on latest linux-trace git tree:
(on top of multi-instances buffer implementation)
All patches pass basic testing.
Note that ktap code already make use of this event tracing export work,
If you are interesting, you can check ktap code in below link to see
how this export work is implemented by external modules.
And even more, you can try it. :)
Thanks very much
tracing: move trace_array definition into include/linux/trace_array.h
tracing: fix irqs-off tag display in syscall tracing
tracing: expose event tracing infrastructure
tracing: export ftrace_events
tracing: switch syscall tracing to use event_trace_ops backend
tracing: expose structure ftrace_event_field
tracing: remove TRACE_EVENT_TYPE enum definition
tracing: remove obsolete macro guard _TRACE_PROFILE_INIT
tracing: remove ftrace(...) function
tracing: use per trace_array clock_id instead of global
tracing: guard tracing_selftest_disabled by
libtraceevent: add libtraceevent prefix in warning message
include/linux/ftrace_event.h | 32 ++++++++
include/linux/trace_array.h | 118 +++++++++++++++++++++++++++++
include/trace/ftrace.h | 71 ++++++------------
kernel/trace/trace.c | 27 +++----
kernel/trace/trace.h | 144 +-----------------------------------
kernel/trace/trace_events.c | 55 ++++++++++++++
kernel/trace/trace_syscalls.c | 36 ++++-----
tools/lib/traceevent/event-parse.c | 2 +-
8 files changed, 257 insertions(+), 228 deletions(-)
create mode 100644 include/linux/trace_array.h
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/