linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] trace-cmd ftrace: support function retval feature in function_graph
@ 2024-05-21 21:37 Jianfeng Wang
  2024-05-21 21:37 ` [PATCH v2 1/2] trace-cmd ftrace: print function retval " Jianfeng Wang
  2024-05-21 21:37 ` [PATCH v2 2/2] trace-cmd: Add ftrace options for the fgraph retval feature Jianfeng Wang
  0 siblings, 2 replies; 7+ messages in thread
From: Jianfeng Wang @ 2024-05-21 21:37 UTC (permalink / raw)
  To: linux-trace-devel; +Cc: rostedt, jianfeng.w.wang, junxiao.bi

The upstream Linux kernel has introduced a funcgraph retval feature
for the function_graph tracer. (Commit ID:
a1be9ccc57f07d54278be34eed6bd679bc941c97). This patchset is to utilize
this feature to support printing each function's return value in
'trace-cmd report'. Add two fgraph options so that users can skip
the printing or force the return values to be printed in hex.

Change history:
===============
v2:
- Check if a retval is an error code: if not, print it in hex.
- Make this retval feature on by default.
- Add fgraph:retval-skip and fgraph:retval-hex options.

v1: https://lore.kernel.org/linux-trace-devel/20240415154921.4998-1-jianfeng.w.wang@oracle.com


Jianfeng Wang (2):
  trace-cmd ftrace: print function retval in function_graph
  trace-cmd: Add ftrace options for the fgraph retval feature

 lib/trace-cmd/trace-ftrace.c | 51 ++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

-- 
2.42.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-07-17 20:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-21 21:37 [PATCH v2 0/2] trace-cmd ftrace: support function retval feature in function_graph Jianfeng Wang
2024-05-21 21:37 ` [PATCH v2 1/2] trace-cmd ftrace: print function retval " Jianfeng Wang
2024-07-17 18:48   ` Steven Rostedt
2024-05-21 21:37 ` [PATCH v2 2/2] trace-cmd: Add ftrace options for the fgraph retval feature Jianfeng Wang
2024-07-17 18:50   ` Steven Rostedt
2024-07-17 20:44     ` Jianfeng Wang
2024-07-17 20:58       ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).