• Palmer Dabbelt's avatar
    Merge patch series "riscv: ftrace: Miscellaneous ftrace improvements" · 3074e8b1
    Palmer Dabbelt authored
    Björn Töpel <bjorn@kernel.org> says:
    
    This series includes a three ftrace improvements for RISC-V:
    
    1. Do not require to run recordmcount at build time (patch 1)
    2. Simplification of the function graph functionality (patch 2)
    3. Enable DYNAMIC_FTRACE_WITH_DIRECT_CALLS (patch 3 and 4)
    
    The series has been tested on Qemu/rv64 virt/Debian sid with the
    following test configs:
      CONFIG_FTRACE_SELFTEST=y
      CONFIG_FTRACE_STARTUP_TEST=y
      CONFIG_SAMPLE_FTRACE_DIRECT=m
      CONFIG_SAMPLE_FTRACE_DIRECT_MULTI=m
      CONFIG_SAMPLE_FTRACE_OPS=m
    
    All tests pass.
    
    * b4-shazam-merge:
      samples: ftrace: Add RISC-V support for SAMPLE_FTRACE_DIRECT[_MULTI]
      riscv: ftrace: Add DYNAMIC_FTRACE_WITH_DIRECT_CALLS support
      riscv: ftrace: Make function graph use ftrace directly
      riscv: select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY
    
    Link: https://lore.kernel.org/r/20231130121531.1178502-1-bjorn@kernel.orgSigned-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
    3074e8b1
mcount-dyn.S 5.55 KB