Operating system instrumentation and monitoring