Skip to content

Allow instances to independently set trace options.

Bharath Ravi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tracing: Replace usage of trace_flags with new accessors.kernel/trace/blktrace.c kernel/trace/ftrace.c kernel/trace/trace.c +9 more+68 -481 reply
2/3tracing: Allow instances to have independent trace flags/trace options.kernel/trace/trace.c kernel/trace/trace.h+57 -180 replies
3/3tracing: Allow instances to independently set trace_overwrite.kernel/trace/trace.c kernel/trace/trace.h kernel/trace/trace_irqsoff.c +1 more+28 -260 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] Allow instances to independently set trace options.

Currently, the trace options are global, and shared among all instances. This patchset allows instances to set certain trace options independently, without affecting the global instance or other instances. With this change, trace_overwrite will become an instance specific option, while others remain global options.

This is achieved in three steps
1. Replace references to the global trace_flags mask with get/set accessors. This allows global trace_flags to be replaced by instance specific flags in step 2.
2. Replace the global trace_flags mask with instance specific trace_flags from the trace_array. Divide the set of trace options into global options, and instance options (that may be set independently by instances).
3. Make trace_overwrite an instance specific option.

Bharath Ravi (3):
tracing: Replace usage of trace_flags with new accessors.
tracing: Allow instances to have independent trace flags/trace
options.
tracing: Allow instances to independently set trace_overwrite.

 kernel/trace/blktrace.c              |   3 +-
 kernel/trace/ftrace.c                |   4 +-
 kernel/trace/trace.c                 | 127 +++++++++++++++++++++++++----------
 kernel/trace/trace.h                 |  48 ++++++-------
 kernel/trace/trace_events.c          |   2 +-
 kernel/trace/trace_functions_graph.c |  10 +--
 kernel/trace/trace_irqsoff.c         |   4 +-
 kernel/trace/trace_kdb.c             |   6 +-
 kernel/trace/trace_output.c          |   8 +--
 kernel/trace/trace_printk.c          |   8 +--
 kernel/trace/trace_sched_wakeup.c    |   3 +-
 kernel/trace/trace_syscalls.c        |   2 +-
 12 files changed, 143 insertions(+), 82 deletions(-)
Signature · 1 line
1.9.1.423.g4596e3a