Skip to content

ftrace: recordmcount for sh and arm, plus permanent disable API

Steven Rostedt lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ftrace: Specify $alignment for sh architecturescripts/recordmcount.pl+2 -10 replies
2/5ftrace: mcountrecord.pl for armscripts/recordmcount.pl+7 -10 replies
3/5ring-buffer: add tracing_off_permanentinclude/linux/ring_buffer.h kernel/trace/ring_buffer.c+67 -130 replies
4/5ftrace: add ftrace_off_permanentinclude/linux/ftrace.h kernel/trace/trace.c+17 -00 replies
5/5trace: fix compiler warning in branch profilerkernel/trace/trace_branch.c+5 -50 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/5] ftrace: recordmcount for sh and arm, plus permanent disable API

Ingo,

The first two patches are changes to recordmcount.pl that I've tested to make sure they do not break x86 or PPC. These are changes that are needed for sh and ARM. I do not include the changes needed in the arch itself, those need to go through the arch maintainers.

The other patches are for the permanent disabling of the tracer and ring buffer.

I know you prefered having the ring buffer disable flag be 0 1 -1 for off, on, and disable respectively, but this becomes a problem to implement safely for all archs. What I did instead was to have two bits in the flags. On is a simple on/off bit for the users to use, the other is a set once flag that will permantly disable the ring buffers once set. This allows me to use the set/clear bit API that works on all architectures nicely. And I personally find this easier to understand.

The following patches are in:

git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace.git

branch: tip/devel

Jim Radford (1):
ftrace: mcountrecord.pl for arm

Matt Fleming (1):
ftrace: Specify $alignment for sh architecture

Steven Rostedt (3):
ring-buffer: add tracing_off_permanent
ftrace: add ftrace_off_permanent
trace: fix compiler warning in branch profiler

----

 include/linux/ftrace.h      |    2 +
 include/linux/ring_buffer.h |    1 +
 kernel/trace/ring_buffer.c  |   79 ++++++++++++++++++++++++++++++++++++-------
 kernel/trace/trace.c        |   15 ++++++++
 kernel/trace/trace_branch.c |   10 +++---
 scripts/recordmcount.pl     |   11 +++++-
 6 files changed, 98 insertions(+), 20 deletions(-)