Skip to content

tracing: Remove trace_printk.h from kernel.h

Steven Rostedt linux-trace-kernel lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3lockdep: Add #include <linux/instruction_pointer.h> to lockdep.hinclude/linux/lockdep.h+1 -00 replies
2/3tracing: Move non-trace_printk prototypes into trace_controls.harch/powerpc/xmon/xmon.c arch/s390/kernel/ipl.c arch/s390/kernel/machine_kexec.c +11 more+66 -510 replies
3/3tracing: Remove trace_printk.h from kernel.harch/powerpc/kvm/book3s_xics.c drivers/gpu/drm/i915/gt/intel_gtt.h drivers/gpu/drm/i915/i915_gem.h +13 more+18 -40 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchYury NorovPeter Zijlstra (Intel)Masami Hiramatsu (Google)
1/3R-b A-b
2/3R-b A-b
3/3R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/3] tracing: Remove trace_printk.h from kernel.h

Remove trace_printk.h by creating a trace_controls.h for those places that need access to tracing prototypes like tracing_off() and for the places that need trace_printk() directly, to have it included directly.

Changse since v4: https://lore.kernel.org/linux-trace-kernel/[email protected]/

- Forward ported to latest kernel.

- Added lockdep patch for _THIS_IP_
https://patch.msgid.link/[email protected]

Steven Rostedt (3):
lockdep: Add #include <linux/instruction_pointer.h> to lockdep.h
tracing: Move non-trace_printk prototypes into trace_controls.h
tracing: Remove trace_printk.h from kernel.h

----

 arch/powerpc/kvm/book3s_xics.c         |  1 +
 arch/powerpc/xmon/xmon.c               |  1 +
 arch/s390/kernel/ipl.c                 |  1 +
 arch/s390/kernel/machine_kexec.c       |  1 +
 drivers/gpu/drm/i915/gt/intel_gtt.h    |  1 +
 drivers/gpu/drm/i915/i915_gem.h        |  2 ++
 drivers/hwtracing/stm/dummy_stm.c      |  1 +
 drivers/infiniband/hw/hfi1/trace_dbg.h |  1 +
 drivers/tty/sysrq.c                    |  1 +
 drivers/usb/early/xhci-dbc.c           |  1 +
 fs/ext4/inline.c                       |  1 +
 include/linux/ftrace.h                 |  2 ++
 include/linux/kernel.h                 |  1 -
 include/linux/lockdep.h                |  1 +
 include/linux/sunrpc/debug.h           |  1 +
 include/linux/trace_controls.h         | 54 ++++++++++++++++++++++++++++++++
 include/linux/trace_printk.h           | 56 ++--------------------------------
 include/trace/trace_events.h           |  2 ++
 kernel/debug/debug_core.c              |  1 +
 kernel/panic.c                         |  1 +
 kernel/rcu/rcu.h                       |  1 +
 kernel/rcu/rcutorture.c                |  1 +
 kernel/trace/ring_buffer_benchmark.c   |  1 +
 kernel/trace/trace.h                   |  1 +
 kernel/trace/trace_benchmark.c         |  1 +
 lib/sys_info.c                         |  1 +
 samples/fprobe/fprobe_example.c        |  1 +
 samples/ftrace/ftrace-direct-too.c     |  1 -
 samples/trace_printk/trace-printk.c    |  1 +
 29 files changed, 85 insertions(+), 55 deletions(-)
 create mode 100644 include/linux/trace_controls.h