[for-next,00/13] tracing: Updates for 6.5

Message ID 20230621162923.953123395@goodmis.org
Headers
Series tracing: Updates for 6.5 |

Message

Steven Rostedt June 21, 2023, 4:29 p.m. UTC
  git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git
trace/for-next

Head SHA1: 513f25cdf82cec8eb98b111dc0570116562391e0


Azeem Shaikh (1):
      tracing/boot: Replace strlcpy with strscpy

Daniel Bristot de Oliveira (3):
      tracing/osnoise: Switch from PF_NO_SETAFFINITY to migrate_disable
      tracing/osnoise: Skip running osnoise if all instances are off
      tracing/timerlat: Add user-space interface

Donglin Peng (7):
      function_graph: Support recording and printing the return value of function
      tracing: Add documentation for funcgraph-retval and funcgraph-retval-hex
      arm64: ftrace: Enable HAVE_FUNCTION_GRAPH_RETVAL
      x86/ftrace: Enable HAVE_FUNCTION_GRAPH_RETVAL
      LoongArch: ftrace: Enable HAVE_FUNCTION_GRAPH_RETVAL
      selftests/ftrace: Add funcgraph-retval test case
      riscv: ftrace: Enable HAVE_FUNCTION_GRAPH_RETVAL

Jiri Olsa (1):
      ftrace: Show all functions with addresses in available_filter_functions_addrs

Steven Rostedt (Google) (1):
      fgraph: Add declaration of "struct fgraph_ret_regs"

----
 Documentation/trace/ftrace.rst                     | 132 ++++++
 Documentation/trace/timerlat-tracer.rst            |  78 ++++
 arch/arm64/Kconfig                                 |   1 +
 arch/arm64/include/asm/ftrace.h                    |  22 +
 arch/arm64/kernel/asm-offsets.c                    |  13 +
 arch/arm64/kernel/entry-ftrace.S                   |  27 +-
 arch/loongarch/Kconfig                             |   1 +
 arch/loongarch/include/asm/ftrace.h                |  22 +
 arch/loongarch/kernel/asm-offsets.c                |  15 +-
 arch/loongarch/kernel/mcount.S                     |  14 +-
 arch/loongarch/kernel/mcount_dyn.S                 |  15 +-
 arch/riscv/Kconfig                                 |   1 +
 arch/riscv/include/asm/ftrace.h                    |  21 +
 arch/riscv/kernel/mcount.S                         |   7 +-
 arch/x86/Kconfig                                   |   1 +
 arch/x86/include/asm/ftrace.h                      |  20 +
 arch/x86/kernel/ftrace_32.S                        |   8 +-
 arch/x86/kernel/ftrace_64.S                        |   7 +-
 include/linux/ftrace.h                             |   4 +
 kernel/trace/Kconfig                               |  15 +
 kernel/trace/fgraph.c                              |  26 +-
 kernel/trace/ftrace.c                              |  37 ++
 kernel/trace/trace.h                               |   2 +
 kernel/trace/trace_boot.c                          |   8 +-
 kernel/trace/trace_entries.h                       |  26 ++
 kernel/trace/trace_functions_graph.c               |  93 +++-
 kernel/trace/trace_osnoise.c                       | 477 ++++++++++++++++++++-
 kernel/trace/trace_output.c                        |   4 +-
 .../ftrace/test.d/ftrace/fgraph-retval.tc          |  44 ++
 29 files changed, 1079 insertions(+), 62 deletions(-)
 create mode 100644 tools/testing/selftests/ftrace/test.d/ftrace/fgraph-retval.tc
  

Comments

Steven Rostedt June 21, 2023, 4:36 p.m. UTC | #1
Sending manually, as quilt mail didn't acknowledge some character in this
email, and it was rejected by lkml as wrong mime type.

-- Steve

On Wed, 21 Jun 2023 12:29:24 -0400
Steven Rostedt <rostedt@goodmis.org> wrote:

> From: "Steven Rostedt (Google)" <rostedt@goodmis.org>
> 
> In final testing of:
> 
>   https://patchwork.kernel.org/project/linux-trace-kernel/patch/1fc502712c981e0e6742185ba242992170ac9da8.1680954589.git.pengdonglin@sangfor.com.cn/
>   "function_graph: Support recording and printing the return value of function"
> 
> The test failed due to a new warning found in the build:
> 
> kernel/trace/fgraph.c:243:56: warning: ‘struct fgraph_ret_regs’ declared inside parameter list will not be visible outside of this definition or declaration
> 
> Instead of asking to send another patch series, just add it and then apply
> the updates.
> 
> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
> ---
>  kernel/trace/fgraph.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/kernel/trace/fgraph.c b/kernel/trace/fgraph.c
> index 218cd95bf8e4..ea3d7bb235d3 100644
> --- a/kernel/trace/fgraph.c
> +++ b/kernel/trace/fgraph.c
> @@ -236,6 +236,9 @@ static struct notifier_block ftrace_suspend_notifier = {
>  	.notifier_call = ftrace_suspend_notifier_call,
>  };
>  
> +/* fgraph_ret_regs is not defined without CONFIG_FUNCTION_GRAPH_RETVAL */
> +struct fgraph_ret_regs;
> +
>  /*
>   * Send the trace to the ring-buffer.
>   * @return the original return address.