diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2010-11-03 15:31:55 -0400 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2010-11-09 16:35:33 -0500 |
commit | 310881b43bcf20d0a74e94cfcd0090716e90e8ea (patch) | |
tree | 6567bbdcf3ceedab007ad9f9ee9a14bfe5f581e1 | |
parent | a957bc576d0bdab19f41d367dc662acd3bb82ae9 (diff) |
output header to STDERR in measure_syscall
This hopefully helps a bit to clarify the output.
-rw-r--r-- | bin/null_call.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/null_call.c b/bin/null_call.c index 61c4629..d714e77 100644 --- a/bin/null_call.c +++ b/bin/null_call.c | |||
@@ -48,6 +48,8 @@ int main(int argc, char **argv) | |||
48 | "%lus and %luns.\n", | 48 | "%lus and %luns.\n", |
49 | (unsigned long) sleep_time.tv_sec, | 49 | (unsigned long) sleep_time.tv_sec, |
50 | (unsigned long) sleep_time.tv_nsec); | 50 | (unsigned long) sleep_time.tv_nsec); |
51 | fprintf(stderr, "%10s, %10s, %10s, %10s, %10s, %10s\n", | ||
52 | "pre", "in kernel", "post", "entry", "exit", "total"); | ||
51 | do { | 53 | do { |
52 | time_null_call(); | 54 | time_null_call(); |
53 | } while (nanosleep(&sleep_time, NULL) == 0); | 55 | } while (nanosleep(&sleep_time, NULL) == 0); |