#! stap -gp4 %( runtime == "kernel" %? # check that STAP_NEED_GETTIMEOFDAY is NOT defined without a gettimeofday function check() %{ #ifdef STAP_NEED_GETTIMEOFDAY #error "STAP_NEED_GETTIMEOFDAY should not be defined!" #endif %} %) probe begin { %( runtime == "kernel" %? check() %) println(get_cycles()) }