Skip to content

tracing: add support for multibuffer event filters

Tom Zanussi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tracing: Update event filters for multibufferinclude/linux/ftrace_event.h include/linux/syscalls.h include/trace/ftrace.h +12 more+264 -1022 replies
2/3tracing: Make register/unregister_ftrace_command __initinclude/linux/ftrace.h kernel/trace/ftrace.c kernel/trace/trace.c+14 -60 replies
3/3tracing: Add support for SOFT_DISABLE to syscall eventsinclude/linux/syscalls.h kernel/trace/trace.h kernel/trace/trace_syscalls.c+36 -140 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] tracing: add support for multibuffer event filters

The three patches in this patchset are essentially the same patches that have already been reviewed as part of the trace-event-triggers patchset, but are separated out because they're actually completely independent of that patchset and could presumably go into tracing-next at this point.

In the original patchset, these patches came later in the series; moving them up I had to fix up a few conflicts and assumptions from their position in the previous patchset. The only real difference is that for patch 1 I added TRACE_EVENT_FL_USE_CALL_FILTER to the flags, which patch 3 removes since it adds trace_event_files for syscalls.

Basically when ftrace multibuffer support was added, the event filters were neglected and this patchset fixes that. Also when soft-disable was added, it didn't cover syscalls - this adds that and in the process by virtue of using ftrace_event_files, also enables multibuffer event filter support for syscalls as a nice side effect.

The following changes since commit 29ad23b00474c34e3b5040dda508c78d33a1a3eb:

ftrace: Add set_graph_notrace filter (2013-10-18 22:23:16 -0400)

are available in the git repository at:

git://git.yoctoproject.org/linux-yocto-contrib.git tzanussi/tracing-multibuffer-filters
http://git.yoctoproject.org/cgit/cgit.cgi/linux-yocto-contrib/log/?h=tzanussi/tracing-multibuffer-filters

Tom Zanussi (3):
tracing: Update event filters for multibuffer
tracing: Make register/unregister_ftrace_command __init
tracing: Add support for SOFT_DISABLE to syscall events

 include/linux/ftrace.h               |   4 +-
 include/linux/ftrace_event.h         |  25 +++-
 include/linux/syscalls.h             |   4 +-
 include/trace/ftrace.h               |   7 +-
 kernel/trace/ftrace.c                |  12 +-
 kernel/trace/trace.c                 |  44 +++++--
 kernel/trace/trace.h                 |  22 +---
 kernel/trace/trace_branch.c          |   2 +-
 kernel/trace/trace_events.c          |  23 ++--
 kernel/trace/trace_events_filter.c   | 218 ++++++++++++++++++++++++++++-------
 kernel/trace/trace_export.c          |   2 +-
 kernel/trace/trace_functions_graph.c |   4 +-
 kernel/trace/trace_kprobe.c          |   4 +-
 kernel/trace/trace_mmiotrace.c       |   4 +-
 kernel/trace/trace_sched_switch.c    |   4 +-
 kernel/trace/trace_syscalls.c        |  42 +++++--
 kernel/trace/trace_uprobe.c          |   3 +-
 17 files changed, 308 insertions(+), 116 deletions(-)
Signature · 1 line
1.8.3.1