Skip to content

ftrace/x86: function_graph stack dump fixes

Josh Poimboeuf lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8ftrace: remove CONFIG_HAVE_FUNCTION_GRAPH_FP_TEST from configarch/arm64/kernel/entry-ftrace.S arch/blackfin/kernel/ftrace-entry.S arch/sparc/Kconfig +5 more+9 -110 replies
2/8ftrace: only allocate the ret_stack 'fp' field when neededinclude/linux/ftrace.h kernel/trace/trace_functions_graph.c+4 -00 replies
3/8ftrace: add return address pointer to ftrace_ret_stackDocumentation/trace/ftrace-design.txt arch/arm/kernel/ftrace.c arch/arm64/kernel/ftrace.c +12 more+34 -150 replies
4/8ftrace: add ftrace_graph_ret_addr() stack unwinding helpersinclude/linux/ftrace.h kernel/trace/trace_functions_graph.c+68 -00 replies
5/8x86/dumpstack/ftrace: convert dump_trace() callbacks to use ftrace_graph_ret_addr()arch/x86/kernel/dumpstack.c+22 -430 replies
6/8ftrace/x86: implement HAVE_FUNCTION_GRAPH_RET_ADDR_PTRarch/x86/include/asm/ftrace.h arch/x86/kernel/ftrace.c+3 -10 replies
7/8x86/dumpstack/ftrace: mark function graph handler function as unreliablearch/x86/kernel/dumpstack.c+16 -80 replies
8/8x86/dumpstack/ftrace: don't print unreliable addresses in print_context_stack_bp()arch/x86/kernel/dumpstack.c+0 -20 replies

Reviews trailers per patch

None of the 8 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSteven Rostedt
SeriesA-b
1/8
2/8
3/8
4/8
5/8
6/8
7/8
8/8

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

Read the v1 thread

Cover letter [PATCH 0/8] ftrace/x86: function_graph stack dump fixes

Some stack dump fixes related to function_graph tracing.

Josh Poimboeuf (8):
ftrace: remove CONFIG_HAVE_FUNCTION_GRAPH_FP_TEST from config
ftrace: only allocate the ret_stack 'fp' field when needed
ftrace: add return address pointer to ftrace_ret_stack
ftrace: add ftrace_graph_ret_addr() stack unwinding helpers x86/dumpstack/ftrace: convert dump_trace() callbacks to use
ftrace_graph_ret_addr()
ftrace/x86: implement HAVE_FUNCTION_GRAPH_RET_ADDR_PTR x86/dumpstack/ftrace: mark function graph handler function as
unreliable
x86/dumpstack/ftrace: don't print unreliable addresses in
print_context_stack_bp()

 Documentation/trace/ftrace-design.txt | 11 ++++++
 arch/arm/kernel/ftrace.c              |  2 +-
 arch/arm64/kernel/entry-ftrace.S      |  2 +-
 arch/arm64/kernel/ftrace.c            |  2 +-
 arch/blackfin/kernel/ftrace-entry.S   |  4 +-
 arch/blackfin/kernel/ftrace.c         |  2 +-
 arch/microblaze/kernel/ftrace.c       |  2 +-
 arch/mips/kernel/ftrace.c             |  4 +-
 arch/parisc/kernel/ftrace.c           |  2 +-
 arch/powerpc/kernel/ftrace.c          |  3 +-
 arch/s390/kernel/ftrace.c             |  3 +-
 arch/sh/kernel/ftrace.c               |  2 +-
 arch/sparc/Kconfig                    |  1 -
 arch/sparc/include/asm/ftrace.h       |  4 ++
 arch/sparc/kernel/ftrace.c            |  2 +-
 arch/tile/kernel/ftrace.c             |  2 +-
 arch/x86/Kconfig                      |  1 -
 arch/x86/include/asm/ftrace.h         |  3 ++
 arch/x86/kernel/dumpstack.c           | 73 ++++++++++++++---------------------
 arch/x86/kernel/ftrace.c              |  2 +-
 include/linux/ftrace.h                | 17 +++++++-
 kernel/trace/Kconfig                  |  5 ---
 kernel/trace/trace_functions_graph.c  | 67 +++++++++++++++++++++++++++++++-
 23 files changed, 146 insertions(+), 70 deletions(-)
Signature · 1 line
2.7.4