Bug 2223426

Summary: [RFE]:Add speculatvie tracing functionality to bpftrace command
Product: Red Hat Enterprise Linux 8 Reporter: cdeardor <cdeardor>
Component: bpftraceAssignee: Viktor Malik <vmalik>
Status: NEW --- QA Contact: Ziqian SUN (Zamir) <zsun>
Severity: unspecified 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 19:10:11 UTC
Add the ability to tentatively trace data and decide whether to commit the data to a tracing buffer or discard it.  This would be similar to 'speculative tracing' in dtrace.

This would allow for focused investigations as it should only print when the specific trace criteria is met, thereby reducing the amount of data collected.

Comment 2 Viktor Malik 2023-07-18 06:16:24 UTC
Thanks for suggesting this. Could you also open this request in the official bpftrace issue tracker?

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

Comment 3 cdeardor@redhat.com 2023-07-18 17:30:46 UTC
Thank you.  I've created upstream issue #2684 for this request.

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