[[!template id=project title="Port XRay to the NetBSD kernel" contact=""" [tech-kern](mailto:tech-kern@NetBSD.org) """ done_by="kamil" category="analyzers" difficulty="hard" duration="3 months" description=""" ***Note:** This project has been abandoned. XRay as DTrace is currently viewed to be unsuitable for NetBSD because it requires RWX kernel mappings, and the workaround for this is expected to be very slow and introduce unacceptable bloat to the kernel. XRay is a function call tracing system which combines compiler-inserted instrumentation points and a runtime library that can dynamically enable and disable the instrumentation. Research and port XRay to the NetBSD kernel getting DTrace-like features of dynamic tracing. Milestones: * Compile the NetBSD kernel with XRay instrumentation * Write from scratch an XRay runtime for the kernel * Export handlers for the XRay management to userland References: * https://llvm.org/docs/XRay.html * http://www.brendangregg.com/dtrace.html """ ]]