summaryrefslogtreecommitdiffstats
path: root/testsuite/buildok/gtod_init.stp
blob: 1d76aeab8f0aa8316c614eced8dc35f16cc780ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#! stap -gp4

# 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 {
    check()
    println(gettimeofday_s())
}