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.
Thanks for suggesting this. Could you also open this request in the official bpftrace issue tracker? https://github.com/iovisor/bpftrace/issues
Thank you. I've created upstream issue #2684 for this request. https://github.com/iovisor/bpftrace/issues/2684