Abstract
Observability, especially for fine-grained internal metrics, is essential for optimizing high-performance user-space systems. Non-intrusive runtime instrumentation provides such visibility without code modification, rebuilding, or redeployment, making it attractive for production environments. However, in microsecond- or sub-microsecond-scale code paths, existing approaches incur prohibitive overhead due to costly context switches. Even with sampling, this overhead remains because sampling are performed inside the instrumentation logic and cannot eliminate the inherent interception cost. We propose FreeProbe, a practical non-intrusive instrumentation mechanism built upon Bpftime for high-performance user-space systems. FreeProbe introduces context-free sampling, which eliminates both metric collection cost and interception overhead. The key insight is that expensive context switches occur only when instrumentation code executes. FreeProbe therefore performs lightweight sampling within trampoline as early as possible. We apply FreeProbe to observe VPP. Evaluation shows that with a sampling rate of 1%, FreeProbe incurs only 1.83% overhead, outperforming Uprobe and Bpftime by 98.60% and 94.68%, respectively.

This publication has 9 references indexed in Scilit: