All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/6] Add dynamic ftrace support for RISC-V platforms
@ 2018-01-18 15:45 Alan Kao
  2018-01-18 15:45 ` [PATCH v3 1/6] riscv/ftrace: Add RECORD_MCOUNT support Alan Kao
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Alan Kao @ 2018-01-18 15:45 UTC (permalink / raw)
  To: Palmer Dabbelt, Albert Ou, Steven Rostedt, Ingo Molnar,
	Masahiro Yamada, Kamil Rytarowski, Andrew Morton, patches,
	linux-kernel, Stefan O'Rear
  Cc: Alan Kao, Greentime Hu

This patch set includes the building blocks of dynamic ftrace features
for RISC-V machines.

Changes in v3:
 - Replace the nops at the tracer call sites into a "call ftrace_stub"
   instruction for better understanding (1/6 and 2/6)

Changes in v2:
 - Fix the return value as writing to kernel text goes wrong (2/6)
 - Replace manual comparisons by calling memcmp (2/6)
 - Simplify the conditional assignment in the Makefile (1/6)

Alan Kao (6):
  riscv/ftrace: Add RECORD_MCOUNT support
  riscv/ftrace: Add dynamic function tracer support
  riscv/ftrace: Add dynamic function graph tracer support
  riscv/ftrace: Add ARCH_SUPPORTS_FTRACE_OPS support
  riscv/ftrace: Add DYNAMIC_FTRACE_WITH_REGS support
  riscv/ftrace: Add HAVE_FUNCTION_GRAPH_RET_ADDR_PTR support

 arch/riscv/Kconfig              |   3 +
 arch/riscv/Makefile             |   3 +
 arch/riscv/include/asm/ftrace.h |  47 ++++++++
 arch/riscv/kernel/Makefile      |   5 +-
 arch/riscv/kernel/ftrace.c      | 142 ++++++++++++++++++++++-
 arch/riscv/kernel/mcount-dyn.S  | 241 ++++++++++++++++++++++++++++++++++++++++
 arch/riscv/kernel/mcount.S      |  22 ++--
 arch/riscv/kernel/stacktrace.c  |   6 +
 scripts/recordmcount.pl         |   5 +
 9 files changed, 461 insertions(+), 13 deletions(-)
 create mode 100644 arch/riscv/kernel/mcount-dyn.S

-- 
2.15.1

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-02-08  2:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-18 15:45 [PATCH v3 0/6] Add dynamic ftrace support for RISC-V platforms Alan Kao
2018-01-18 15:45 ` [PATCH v3 1/6] riscv/ftrace: Add RECORD_MCOUNT support Alan Kao
2018-01-18 15:45 ` [PATCH v3 2/6] riscv/ftrace: Add dynamic function tracer support Alan Kao
2018-01-18 15:45 ` [PATCH v3 3/6] riscv/ftrace: Add dynamic function graph " Alan Kao
2018-01-18 15:45 ` [PATCH v3 4/6] riscv/ftrace: Add ARCH_SUPPORTS_FTRACE_OPS support Alan Kao
2018-01-18 15:45 ` [PATCH v3 5/6] riscv/ftrace: Add DYNAMIC_FTRACE_WITH_REGS support Alan Kao
2018-01-18 15:45 ` [PATCH v3 6/6] riscv/ftrace: Add HAVE_FUNCTION_GRAPH_RET_ADDR_PTR support Alan Kao
2018-02-08  0:37 ` [patches] [PATCH v3 0/6] Add dynamic ftrace support for RISC-V platforms Palmer Dabbelt
2018-02-08  0:52   ` Alan Kao
2018-02-08  2:57   ` Alan Kao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.