Stack instrumentation