diff options
| author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2015-12-16 04:49:43 -0500 |
|---|---|---|
| committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2015-12-16 04:49:43 -0500 |
| commit | cdbdc025351c03fc4fdd39d8282160a520020d33 (patch) | |
| tree | d3ac3b73e6c13c8841674bb4880abb704b3b5a81 /bin | |
| parent | 93f417fbf3aa358ffff40530b6cf5d2446dcd8b7 (diff) | |
rtspin -v: report deadline, current time, and slack
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/rtspin.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/rtspin.c b/bin/rtspin.c index d8366e3..d36c424 100644 --- a/bin/rtspin.c +++ b/bin/rtspin.c | |||
| @@ -400,6 +400,15 @@ int main(int argc, char** argv) | |||
| 400 | get_job_no(&job_no); | 400 | get_job_no(&job_no); |
| 401 | printf("rtspin/%d:%u @ %.4fms\n", gettid(), | 401 | printf("rtspin/%d:%u @ %.4fms\n", gettid(), |
| 402 | job_no, (wctime() - start) * 1000); | 402 | job_no, (wctime() - start) * 1000); |
| 403 | if (cp) { | ||
| 404 | double deadline, current; | ||
| 405 | deadline = cp->deadline * 1e-9; | ||
| 406 | current = monotime(); | ||
| 407 | printf("\tdeadline: %" PRIu64 "ns (=%.2fs)\n", | ||
| 408 | (uint64_t) cp->deadline, deadline); | ||
| 409 | printf("\tcurrent time: %.2fs, slack: %.2fms\n", | ||
| 410 | current, (deadline - current) * 1000); | ||
| 411 | } | ||
| 403 | if (report_interrupts && cp) { | 412 | if (report_interrupts && cp) { |
| 404 | uint64_t irq = cp->irq_count; | 413 | uint64_t irq = cp->irq_count; |
| 405 | 414 | ||
