pengdonglin
f83ac7544f
function_graph: Enable funcgraph-args and funcgraph-retaddr to work simultaneously
Currently, the funcgraph-args and funcgraph-retaddr features are
mutually exclusive. This patch resolves this limitation by allowing
funcgraph-retaddr to have an args array.
To verify the change, use perf to trace vfs_write with both options
enabled:
Before:
# perf ftrace -G vfs_write --graph-opts args,retaddr
......
down_read() { /* <-n_tty_write+0xa3/0x540 */
__cond_resched(); /* <-down_read+0x12/0x160 */
preempt_count_add(); /* <-down_read+0x3b/0x160 */
preempt_count_sub(); /* <-down_read+0x8b/0x160 */
}
After:
# perf ftrace -G vfs_write --graph-opts args,retaddr
......
down_read(sem=0xffff8880100bea78) { /* <-n_tty_write+0xa3/0x540 */
__cond_resched(); /* <-down_read+0x12/0x160 */
preempt_count_add(val=1); /* <-down_read+0x3b/0x160 */
preempt_count_sub(val=1); /* <-down_read+0x8b/0x160 */
}
Cc: Steven Rostedt (Google) <[email protected]>
Cc: Sven Schnelle <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Xiaoqin Zhang <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: pengdonglin <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
2025-11-26 15:13:30 -05:00
..
2025-10-20 12:47:40 +02:00
2025-11-04 21:44:00 +09:00
2025-10-03 16:32:36 -07:00
2025-11-14 14:30:55 -05:00
2025-09-24 23:18:26 +09:00
2025-11-26 15:13:28 -05:00
2025-11-26 15:13:30 -05:00
2025-11-26 15:13:30 -05:00
2025-11-13 15:15:54 -05:00
2025-11-13 15:15:54 -05:00
2025-07-21 16:40:56 -04:00
2025-07-08 18:17:38 -04:00
2024-10-19 11:12:25 -04:00
2025-10-08 21:48:58 -04:00
2025-05-09 15:19:10 -04:00
2024-10-09 19:59:49 -04:00
2025-11-10 19:26:14 -05:00
2025-05-13 22:23:34 +09:00
2025-11-26 15:13:30 -05:00
2025-11-26 15:13:29 -05:00
2025-02-26 14:13:58 -05:00
2025-08-01 10:29:36 -07:00
2025-11-26 15:13:29 -05:00
2025-11-04 21:44:00 +09:00
2025-11-26 15:13:30 -05:00
2025-10-05 09:43:36 -07:00
2025-11-04 21:44:00 +09:00
2025-11-04 21:44:00 +09:00
2025-11-26 15:13:30 -05:00
2025-11-12 09:59:54 -05:00
2025-07-08 18:17:29 -04:00
2025-11-04 21:44:00 +09:00
2025-11-04 21:44:00 +09:00
2025-11-04 21:44:00 +09:00
2025-05-08 09:36:09 -04:00
2025-10-09 12:18:22 -07:00
2025-11-04 10:12:32 -05:00
2025-11-04 21:44:00 +09:00
2024-12-05 09:28:58 -05:00
2024-12-26 10:50:04 -05:00
2025-07-30 15:38:01 -07:00
2025-10-02 08:05:01 +09:00
2025-09-30 17:27:58 -04:00
2025-11-04 21:44:00 +09:00
2024-12-26 10:50:03 -05:00
2025-05-29 21:04:36 -07:00
2024-12-26 10:38:37 -05:00
2025-11-10 14:23:53 -05:00
2025-10-02 08:05:01 +09:00
2025-11-26 15:13:30 -05:00
2025-11-26 15:13:30 -05:00
2025-09-23 09:31:58 -04:00