Bug 2223423

Summary: [RFE]: Add indent function capability to the bpftrace command output
Product: Red Hat Enterprise Linux 8 Reporter: cdeardor <cdeardor>
Component: bpftraceAssignee: Viktor Malik <vmalik>
Status: NEW --- QA Contact: Ziqian SUN (Zamir) <zsun>
Severity: low Docs Contact:
Priority: unspecified    
Version: 8.6CC: ldoskova
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Enhancement
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description cdeardor@redhat.com 2023-07-17 18:52:07 UTC
Add the capability to indent functions within bpftrace output.  This would be similar to flowindent in dtrace.  

Add a feature to bpftrace that would indent the entry to each function with “->”, and mark the return from this function with “<-“.

Comment 2 Viktor Malik 2023-07-18 06:13:37 UTC
Thanks for suggesting this. As this feature is not present upstream, yet, could you also open it in the official bpftrace issue tracker?

https://github.com/iovisor/bpftrace/issues

Comment 3 cdeardor@redhat.com 2023-07-18 17:28:37 UTC
Thank you Viktor.  I've create upstream issue #2683 for this request.

https://github.com/iovisor/bpftrace/issues/2683