Debian Codegraph @

testsuite/buildok/gtod_init.stp

raw
1 #! stap -gp4
2
3 %( runtime == "kernel" %?
4
5 # check that STAP_NEED_GETTIMEOFDAY is defined with a gettimeofday
6 function check() %{
7 #ifndef STAP_NEED_GETTIMEOFDAY
8 #error "gettimeofday should define STAP_NEED_GETTIMEOFDAY!"
9 #endif
10 %}
11
12 %)
13
14 probe begin {
15 %( runtime == "kernel" %?
16 check()
17 %)
18 println(gettimeofday_s())
19 }