diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-02-20 14:56:38 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-02-20 14:56:38 +0100 |
commit | 02615365a92ca2570c1f96abc8a97674aa2ccae1 (patch) | |
tree | ebedfd91a0f6d299b39e84295e091e12c0767dc8 /testsuite/systemtap.samples/gtod.c | |
parent | c3bad3042df505a3470f1e20b09822a9df1d4761 (diff) | |
parent | adc67597f327cd43d58b1d0cb740dab14a75a058 (diff) | |
download | systemtap-steved-02615365a92ca2570c1f96abc8a97674aa2ccae1.tar.gz systemtap-steved-02615365a92ca2570c1f96abc8a97674aa2ccae1.tar.xz systemtap-steved-02615365a92ca2570c1f96abc8a97674aa2ccae1.zip |
Merge branch 'master' into pr6866
Conflicts:
ChangeLog: Removed
runtime/ChangeLog: Removed
runtime/sym.c: Merged
runtime/task_finder.c: Merged
tapset/ChangeLog: Removed
testsuite/ChangeLog: Removed
Diffstat (limited to 'testsuite/systemtap.samples/gtod.c')
-rw-r--r-- | testsuite/systemtap.samples/gtod.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/testsuite/systemtap.samples/gtod.c b/testsuite/systemtap.samples/gtod.c deleted file mode 100644 index abc08543..00000000 --- a/testsuite/systemtap.samples/gtod.c +++ /dev/null @@ -1,26 +0,0 @@ -#include <stdio.h> -#include <stdlib.h> -#include <sys/time.h> -#include <unistd.h> - -int main (int argc, char *argv[]) -{ - int i; - struct timeval tv[100][2]; - int us = 0; - if (argc == 2) us = atoi(argv[1]); - for (i=0; i<100; i++) { - gettimeofday(&tv[i][0], NULL); - setsid(); - gettimeofday(&tv[i][1], NULL); - if (us) usleep(us); - } - for (i=0; i<100; i++) { - // change last 4 chars for correctly sorting even if the - // time stamps are completely same. - printf("%8d%06d :%02d appl\n", tv[i][0].tv_sec, tv[i][0].tv_usec, i); - printf("%8d%06d :%02d prog\n", tv[i][1].tv_sec, tv[i][1].tv_usec, i); - } - return 0; -} - |