Debian Codegraph @

testsuite/systemtap.syscall/times.c

raw
1 /* COVERAGE: times */
2
3 #include <sys/times.h>
4
5 int main()
6 {
7 struct tms tms;
8
9 times(&tms);
10 //staptest// times ({tms_utime=NNNN, tms_stime=NNNN, tms_cutime=NNNN, tms_cstime=NNNN}) = NNNN
11
12 // The following SEGVs at the pointer dereference in __times()
13 #if 0
14 times((struct tms *)-1);
15 #ifdef __s390__
16 //staptest// times (0x[7]?[f]+) = -NNNN
17 #else
18 //staptest// times (0x[f]+) = -NNNN
19 #endif
20 #endif
21
22 return 0;
23 }