btt: Added in I/O activity per device and system-wide
authorAlan D. Brunelle <alan.brunelle@hp.com>
Thu, 8 Oct 2009 18:12:12 +0000 (14:12 -0400)
committerAlan D. Brunelle <alan.brunelle@hp.com>
Thu, 8 Oct 2009 18:12:12 +0000 (14:12 -0400)
commit2e37a10ee8b470b805e7c26c703073dbc54ca84e
tree377cf2978262ff70087d60ae30905a2b56ba128b
parenta155ab989ffc8b9cf95a631309e9a825d04bcc68
btt: Added in I/O activity per device and system-wide

It now keeps track of I/O activity on a per-device basis (as well as a
cumulative system-wide view). ``I/O activity'' is defined as defined as
the time during which the device driver and device are activelty working
on at least one I/O. Here's a sample output:

==================== I/O Active Period Information ====================

       DEV |     # Live      Avg. Act     Avg. !Act % Live
---------- | ---------- ------------- ------------- ------
 (254,  0) |          0   0.000000000   0.000000000   0.00
 (  8, 17) |          0   0.000000000   0.000000000   0.00
 (  8, 16) |         29   0.909596815   0.094646263  90.87
 (  8, 33) |          0   0.000000000   0.000000000   0.00
 (  8, 32) |        168   0.097848226   0.068231948  59.06
---------- | ---------- ------------- ------------- ------
 Total Sys |         33   0.799808811   0.082334758  90.92

Also added a new btt -Z option that generates per-device and system-wide
I/O activity data that can be plotted.

Refer to the documentation updates (btt.1, btt.tex) for more information.
13 files changed:
btt/Makefile
btt/args.c
btt/bt_timeline.c
btt/btt_plot.py
btt/devs.c
btt/doc/Makefile
btt/doc/btt.tex
btt/doc/live.eps [new file with mode: 0644]
btt/globals.h
btt/output.c
btt/p_live.c [new file with mode: 0644]
btt/trace_complete.c
doc/btt.1