mbox series

[v2,0/2] trace-cmd ftrace: support function retval feature in function_graph

Message ID 20240521213730.67993-1-jianfeng.w.wang@oracle.com (mailing list archive)
Headers show
Series trace-cmd ftrace: support function retval feature in function_graph | expand

Message

Jianfeng Wang May 21, 2024, 9:37 p.m. UTC
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(+)