[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250325193935.66020aa3@gandalf.local.home>
Date: Tue, 25 Mar 2025 19:39:35 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: LKML <linux-kernel@...r.kernel.org>, Masami Hiramatsu
<mhiramat@...nel.org>, Mark Rutland <mark.rutland@....com>, Mathieu
Desnoyers <mathieu.desnoyers@...icios.com>, Andrew Morton
<akpm@...ux-foundation.org>, Haiyue Wang <haiyuewa@....com>, Jiapeng Chong
<jiapeng.chong@...ux.alibaba.com>, Sasha Levin <sashal@...nel.org>, Sven
Schnelle <svens@...ux.ibm.com>, Tengda Wu <wutengda@...weicloud.com>
Subject: [GIT PULL] ftrace: Updates for 6.15
Linus,
ftrace changes for v6.15:
- Record function parameters for function and function graph tracers
An option has been added to function tracer (func-args) and the function
graph tracer (funcgraph-args) that when set, the tracers will record the
registers that hold the arguments into each function event. On reading of
the trace, it will use BTF to print those arguments. Most archs support up
to 6 arguments (depending on the complexity of the arguments) and those
are printed. If a function has more arguments then what was recorded, the
output will end with " ... )".
Example of function graph tracer:
6) | dummy_xmit [dummy](skb = 0x8887c100, dev = 0x872ca000) {
6) | consume_skb(skb = 0x8887c100) {
6) | skb_release_head_state(skb = 0x8887c100) {
6) 0.178 us | sock_wfree(skb = 0x8887c100)
6) 0.627 us | }
- The rest of the changes are minor clean ups and fixes
Please pull the latest ftrace-v6.15 tree, which can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git
ftrace-v6.15
Tag SHA1: d96c183fee82a7cb9e3875c6e65fae637768d592
Head SHA1: 391dda1bd7c56de62b96126214f040fe8965561b
Haiyue Wang (1):
fgraph: Correct typo in ftrace_return_to_handler comment
Jiapeng Chong (1):
function_graph: Remove the unused variable func
Sasha Levin (1):
tracing: Use hashtable.h for event_hash
Steven Rostedt (2):
ftrace: Have ftrace_free_filter() WARN and exit if ops is active
ftrace: Have funcgraph-args take affect during tracing
Sven Schnelle (3):
ftrace: Add print_function_args()
ftrace: Add support for function argument to graph tracer
ftrace: Add arguments to function tracer
Tengda Wu (1):
tracing: Fix use-after-free in print_graph_function_flags during tracer switching
----
include/linux/ftrace_regs.h | 5 +
kernel/trace/Kconfig | 12 +++
kernel/trace/fgraph.c | 2 +-
kernel/trace/ftrace.c | 2 +
kernel/trace/trace.c | 14 ++-
kernel/trace/trace.h | 5 +-
kernel/trace/trace_entries.h | 12 ++-
kernel/trace/trace_functions.c | 46 ++++++++-
kernel/trace/trace_functions_graph.c | 176 ++++++++++++++++++++++++++++-------
kernel/trace/trace_irqsoff.c | 14 ++-
kernel/trace/trace_output.c | 122 +++++++++++++++++++++---
kernel/trace/trace_output.h | 9 ++
kernel/trace/trace_sched_wakeup.c | 6 +-
13 files changed, 351 insertions(+), 74 deletions(-)
---------------------------
Powered by blists - more mailing lists