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

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