linux/arch/riscv
Alan Kao c15ac4fd60
riscv/ftrace: Add dynamic function tracer support
We now have dynamic ftrace with the following added items:

* ftrace_make_call, ftrace_make_nop (in kernel/ftrace.c)
  The two functions turn each recorded call site of filtered functions
  into a call to ftrace_caller or nops

* ftracce_update_ftrace_func (in kernel/ftrace.c)
  turns the nops at ftrace_call into a call to a generic entry for
  function tracers.

* ftrace_caller (in kernel/mcount-dyn.S)
  The entry where each _mcount call sites calls to once they are
  filtered to be traced.

Also, this patch fixes the semantic problems in mcount.S, which will be
treated as only a reference implementation once we have the dynamic
ftrace.

Cc: Greentime Hu <greentime@andestech.com>
Signed-off-by: Alan Kao <alankao@andestech.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
2018-04-02 19:59:12 -07:00
..
configs RISC-V: Add a basic defconfig 2018-01-07 15:14:36 -08:00
include riscv/ftrace: Add dynamic function tracer support 2018-04-02 19:59:12 -07:00
kernel riscv/ftrace: Add dynamic function tracer support 2018-04-02 19:59:12 -07:00
lib RISC-V: Export some expected symbols for modules 2017-11-30 10:01:10 -08:00
mm RISC-V changes for 4.16 2018-02-07 11:33:08 -08:00
Kconfig riscv/ftrace: Add dynamic function tracer support 2018-04-02 19:59:12 -07:00
Makefile riscv/ftrace: Add RECORD_MCOUNT support 2018-04-02 19:59:10 -07:00