#!/usr/bin/env stap // Note, we don't have any $var access without full debuginfo. // Make sure @defined can mask it in both call and return probes. probe process.function("*") { log(@choose_defined($foo, probefunc())) } probe process.function("main").return { log(@choose_defined($foo, "return")) }