#! stap -gp4

%( runtime == "kernel" %?

# check that STAP_NEED_GETTIMEOFDAY is defined with a gettimeofday
function check() %{
#ifndef STAP_NEED_GETTIMEOFDAY
#error "gettimeofday should define STAP_NEED_GETTIMEOFDAY!"
#endif
%}

%)

probe begin {
%( runtime == "kernel" %?
    check()
%)
    println(gettimeofday_s())
}
