Skip to content

ftrace for MIPS

Wu Zhangjin linux-mips lkml 4 versions – Applied

Status from this message: Queued for 2.6.33 but due to patch 3/3 I won't propagate this series

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v9 Latest10 patches 13 repliesApplied
  2. v816 patches 10 repliesSuperseded
  3. v717 patches 18 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v113 patches15 repliesSuperseded

Patches in v9 Applied

#Subject and filesSizeRepliesApplied
1/10tracing: add static function tracer support for MIPSarch/mips/Kconfig arch/mips/Makefile arch/mips/include/asm/ftrace.h +3 more+121 -11 reply
2/10tracing: enable HAVE_FUNCTION_TRACE_MCOUNT_TEST for MIPSarch/mips/Kconfig arch/mips/kernel/mcount.S+4 -01 reply
3/10tracing: add an endian argument to scripts/recordmcount.plscripts/Makefile.build scripts/recordmcount.pl+4 -32 replies
4/10tracing: add dynamic function tracer support for MIPSarch/mips/Kconfig arch/mips/include/asm/ftrace.h arch/mips/kernel/Makefile +3 more+208 -12 replies
5/10tracing: add IRQENTRY_EXIT section for MIPSarch/mips/include/asm/irq.h arch/mips/kernel/irq.c arch/mips/kernel/smp.c +4 more+53 -371 reply
6/10tracing: add function graph tracer support for MIPSarch/mips/Kconfig arch/mips/kernel/ftrace.c arch/mips/kernel/mcount.S+149 -01 reply
7/10tracing: add dynamic function graph tracer for MIPSarch/mips/kernel/ftrace.c arch/mips/kernel/mcount.S+33 -22 replies
8/10tracing: make ftrace for MIPS work without -fno-omit-frame-pointerarch/mips/include/asm/ftrace.h arch/mips/kernel/ftrace.c arch/mips/kernel/mcount.S+106 -151 reply
9/10tracing: reserve $12(t0) for mcount-ra-address of gcc 4.5arch/mips/kernel/mcount.S+13 -131 reply
10/10tracing: make function graph tracer work with -mmcount-ra-addressarch/mips/Makefile arch/mips/kernel/ftrace.c arch/mips/kernel/mcount.S+38 -71 reply

Reviews trailers per patch

4 of 10 patches have a Reviewed-by or Acked-by.

PatchSteven RostedtFrederic Weisbecker
1/10R-b
2/10
3/10A-b
4/10A-b
5/10R-b
6/10
7/10
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v9 thread

Cover letter [PATCH v9 00/10] ftrace for MIPS

From: Wu Zhangjin <[email protected]>

After getting the feedback of v8 revision from Thomas, I have written a cnt3_to_63() based sched_clock() for MIPS and send it out as a standalone patch("MIPS: Add a high precision sched_clock() via cnt32_to_63()").

This v9 revision only reserve the Ftrace parts. So, Steven or Ralf, Is it time to apply it? Thanks!

Best Regards,
Wu Zhangjin

Wu Zhangjin (10):
tracing: add static function tracer support for MIPS
tracing: enable HAVE_FUNCTION_TRACE_MCOUNT_TEST for MIPS
tracing: add an endian argument to scripts/recordmcount.pl
tracing: add dynamic function tracer support for MIPS
tracing: add IRQENTRY_EXIT section for MIPS
tracing: add function graph tracer support for MIPS
tracing: add dynamic function graph tracer for MIPS
tracing: make ftrace for MIPS work without -fno-omit-frame-pointer
tracing: reserve $12(t0) for mcount-ra-address of gcc 4.5
tracing: make function graph tracer work with -mmcount-ra-address

 arch/mips/Kconfig              |    5 +
 arch/mips/Makefile             |    9 ++
 arch/mips/include/asm/ftrace.h |   91 +++++++++++++-
 arch/mips/include/asm/irq.h    |   29 +----
 arch/mips/kernel/Makefile      |    7 +
 arch/mips/kernel/ftrace.c      |  275 ++++++++++++++++++++++++++++++++++++++++
 arch/mips/kernel/irq.c         |   30 +++++
 arch/mips/kernel/mcount.S      |  189 +++++++++++++++++++++++++++
 arch/mips/kernel/mips_ksyms.c  |    5 +
 arch/mips/kernel/smp.c         |    3 +-
 arch/mips/kernel/smtc.c        |   21 ++-
 arch/mips/kernel/vmlinux.lds.S |    1 +
 arch/mips/sgi-ip22/ip22-int.c  |    3 +-
 arch/mips/sgi-ip22/ip22-time.c |    3 +-
 scripts/Makefile.build         |    1 +
 scripts/recordmcount.pl        |   60 ++++++++-
 16 files changed, 691 insertions(+), 41 deletions(-)
 create mode 100644 arch/mips/kernel/ftrace.c
 create mode 100644 arch/mips/kernel/mcount.S