Debian Codegraph @

testsuite/buildok/gtod_noinit.stp

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