Jens Axboe [Thu, 22 Sep 2005 08:46:06 +0000 (10:46 +0200)]
[PATCH] blkparse: fix some pc command dumping
Jens Axboe [Thu, 22 Sep 2005 08:29:10 +0000 (10:29 +0200)]
[PATCH] Add support for bounce and split operations
Jens Axboe [Wed, 21 Sep 2005 16:45:29 +0000 (18:45 +0200)]
[PATCH] README: typo
Jens Axboe [Wed, 21 Sep 2005 16:38:38 +0000 (18:38 +0200)]
[PATCH] blkparse: just skip unknown events, there are not fatal
Jens Axboe [Wed, 21 Sep 2005 15:36:01 +0000 (17:36 +0200)]
Merge branch 'master' of ssh://axboe@/linux/kernel/git/axboe/blktrace
Jens Axboe [Wed, 21 Sep 2005 15:35:30 +0000 (17:35 +0200)]
[PATCH] blkparse: split queue and insert into two operations
We need this to support md/dm actions.
Jens Axboe [Wed, 21 Sep 2005 11:59:23 +0000 (13:59 +0200)]
[PATCH] Fix output naming, really
It's still confusing since the manual name wont include _out like
the automatically generated one will. So now a trace of /dev/sda
will generate sda.blktrace.cpu and blkparse -i sda will catch
those files. Similarly, a blktrace -o sda will generate the
same filename.
Jens Axboe [Wed, 21 Sep 2005 11:52:52 +0000 (13:52 +0200)]
[PATCH] blkparse: fix the alphasorting
Bad qsort size passed in and missing increment in ppis assignment.
Verified that it actually works now :-)
Jens Axboe [Wed, 21 Sep 2005 09:57:25 +0000 (11:57 +0200)]
[PATCH] blkparse: missing free of ppis
Doesn't really matter since we exit after this, but...
Jens Axboe [Wed, 21 Sep 2005 09:46:51 +0000 (11:46 +0200)]
[PATCH] blkparse: include pid in stat output
Avoids name conflict with threads.
Jens Axboe [Wed, 21 Sep 2005 09:45:39 +0000 (11:45 +0200)]
[PATCH] blkparse: sort the processes by name in stat output
Jens Axboe [Tue, 20 Sep 2005 12:41:37 +0000 (14:41 +0200)]
[PATCH] Change output/input file expectations
I think it's a little confusing right now with the naming, giving
-o foo to blktrace results in foo_dev_out.cpu files. Change this
to instead generate foo.cpu files, if the option is given.
Jens Axboe [Tue, 20 Sep 2005 07:43:49 +0000 (09:43 +0200)]
[PATCH] blktrace: fix exit
get_data() workers should return failure on is_done(), otherwise
extract() will attempt to verify a bad trace.
Alan D. Brunelle [Tue, 20 Sep 2005 07:34:45 +0000 (09:34 +0200)]
[PATCH] blkparse: Add format specifiers and format field identifiers
This allows the user to completely customize the output format.
Jens Axboe [Tue, 20 Sep 2005 07:13:34 +0000 (09:13 +0200)]
[PATCH] blktrace: prepare for mmap usage again
It isn't enabled right now, we need a proper consumed/produced
notification model to signal availability of data. poll() doesn't
work well enough, since it only works on a sub-buffer granularity.
Jens Axboe [Tue, 20 Sep 2005 07:12:34 +0000 (09:12 +0200)]
[PATCH] blkparse: account skips for file reads as well
Jens Axboe [Mon, 19 Sep 2005 11:59:30 +0000 (13:59 +0200)]
[PATCH] blkparse: allow a few more skips
Jens Axboe [Mon, 19 Sep 2005 11:46:19 +0000 (13:46 +0200)]
[PATCH] btrace: need space between options
Jens Axboe [Mon, 19 Sep 2005 11:34:56 +0000 (13:34 +0200)]
[PATCH] blkparse: more file breakage
If we have skipped entries in a file, don't wait around for more entries.
Jens Axboe [Mon, 19 Sep 2005 11:07:29 +0000 (13:07 +0200)]
[PATCH] blkparse: actually include blkparse diff
Forgot to update the cache for the file breakage patch
Jens Axboe [Mon, 19 Sep 2005 10:39:22 +0000 (12:39 +0200)]
[PATCH] blkparse: Fixup breakage in file reads
The pipe fixed broke file reads:
- Don't kill individual entries in show_entries_rb(),
since it's a big chunk on file reads
- Need to "lookup" pdi, in case it was resized.
Jens Axboe [Mon, 19 Sep 2005 10:25:14 +0000 (12:25 +0200)]
[PATCH] blkparse: reinstate __find_track() failures
It's informational and can help find bugs.
Jens Axboe [Mon, 19 Sep 2005 10:22:57 +0000 (12:22 +0200)]
[PATCH] blkparse: fix frontmerge tracking
Need to lookup by sector + size and remember that sectors are shifted
9, not 10.
Jens Axboe [Mon, 19 Sep 2005 10:14:18 +0000 (12:14 +0200)]
[PATCH] blkparse: better sorting over a pipe
It's quite easy to skip events when reading on an SMP system over
a pipe, since the events are per-CPU. Place incoming events in
a staging area and back off displaying traces if we detect skipped
events.
Jens Axboe [Sat, 17 Sep 2005 18:48:56 +0000 (20:48 +0200)]
[PATCH] Add TODO of action items before 1.0 release
Jens Axboe [Fri, 16 Sep 2005 13:25:05 +0000 (15:25 +0200)]
[PATCH] blkparse: don't print an error on failure to find request
This can happen if we lose or have out-of-order events when
passing the data through a pipe.
Jens Axboe [Fri, 16 Sep 2005 12:08:49 +0000 (14:08 +0200)]
[PATCH] blkparse: include plugging in stats
Jens Axboe [Fri, 16 Sep 2005 11:31:35 +0000 (13:31 +0200)]
[PATCH] Makefile: make sure to keep CFLAGS for link
Jens Axboe [Fri, 16 Sep 2005 08:10:50 +0000 (10:10 +0200)]
[PATCH] Improve unplug logging
Extend it to capture whether this was an io based unplug (eg someone
doing a wait_on_page() or similar), or of it was a timeout based event).
The logging code also forget to turn the unplug payload into on-wire
big endian and the parsing pdu offset was wrong.
Jens Axboe [Thu, 15 Sep 2005 16:03:41 +0000 (18:03 +0200)]
[PATCH] README: update to say it needs 2.6.14-rc1 or newer
Jens Axboe [Thu, 15 Sep 2005 13:09:49 +0000 (15:09 +0200)]
[PATCH] blkparse: add log_action()
For events where sectors and length don't really apply (eg plugging)
Jens Axboe [Thu, 15 Sep 2005 13:07:30 +0000 (15:07 +0200)]
[PATCH] blkparse: improve unplug logging
Add the queued number of requests count as the payload data.
Jens Axboe [Thu, 15 Sep 2005 08:26:20 +0000 (10:26 +0200)]
[PATCH] blkparse: Add support for the plug/unplug events
Jens Axboe [Thu, 15 Sep 2005 08:25:48 +0000 (10:25 +0200)]
[PATCH] kernel: Update to 2.6.14-rc1-git
Includes functional changes as well:
- Move the BLK_TA_QUEUE trace to where it belongs, in __elv_add_request(). This
will catch internal queueing of drivers as well.
- Add tracing of plug and unplug events.
Nathan Scott [Thu, 15 Sep 2005 07:31:12 +0000 (09:31 +0200)]
[PATCH] blktrace: better check for mounted relayfs
Don't just check for the presence of the directory, also check whether
relayfs really is mounted there.
Nathan Scott [Thu, 15 Sep 2005 07:29:24 +0000 (09:29 +0200)]
[PATCH] blkparse: add stopwatch functionality
Like the blktrace -w option, but allow for defining an interval as well.
Nathan Scott [Wed, 14 Sep 2005 17:32:27 +0000 (19:32 +0200)]
[PATCH] blktrace: add stopwatch functionality
Enables you to stop the trace after a defined period has passed.
Nathan Scott [Wed, 14 Sep 2005 17:30:49 +0000 (19:30 +0200)]
[PATCH] btrace: make the output easily parsably by default
Drop CPU/device summary unless specifically requested.
Nathan Scott [Wed, 14 Sep 2005 17:30:14 +0000 (19:30 +0200)]
[PATCH] Add btrace to Makefile
Nathan Scott [Wed, 14 Sep 2005 17:29:40 +0000 (19:29 +0200)]
[PATCH] Add btrace script
Using blktrace and blkparse in the "standard" piped setup is a little
cumbersome and not very intuitive, so add a script to do this automatically.
This is what users would expect.
Nathan Scott [Mon, 12 Sep 2005 08:06:59 +0000 (10:06 +0200)]
[PATCH] Add support for tracing multiple devices
This bumps the protocol number to 0x05, as device info was added to the
trace structure.
Nathan Scott [Mon, 12 Sep 2005 07:21:00 +0000 (09:21 +0200)]
[PATCH] blkparse: Fix mistaken double rb lookup in find_track()
Jens Axboe [Fri, 9 Sep 2005 19:10:58 +0000 (21:10 +0200)]
[PATCH] README: document the -t option
Jens Axboe [Fri, 9 Sep 2005 18:13:55 +0000 (20:13 +0200)]
[PATCH] blkparse: move magic check a little earlier in stdin read
Otherwise we don't know if ->pdu_len and other fields are truly valid.
Jens Axboe [Fri, 9 Sep 2005 15:07:17 +0000 (17:07 +0200)]
[PATCH] blkparse: fix quit on stdin reads
If the blocking read returns 0, we really are done. So safely exit.
Jens Axboe [Fri, 9 Sep 2005 14:28:14 +0000 (16:28 +0200)]
[PATCH] blkparse: fixup stats
Pretty up the output a little, split into read/write.
Jens Axboe [Fri, 9 Sep 2005 14:07:39 +0000 (16:07 +0200)]
[PATCH] blkparse: add per-process stats for longest waits
Jens Axboe [Fri, 9 Sep 2005 13:56:02 +0000 (15:56 +0200)]
[PATCH] blkparse: Add request allocation -> queue time
Jens Axboe [Fri, 9 Sep 2005 13:47:26 +0000 (15:47 +0200)]
[PATCH] blkparse: change formatting of output a little
Jens Axboe [Fri, 9 Sep 2005 11:36:42 +0000 (13:36 +0200)]
[PATCH] blkparse: optimize the read_sort_events() memory allocations
It's a little silly to malloc/free the buffer all the time, more practical
to let it settle on its own.
Jens Axboe [Fri, 9 Sep 2005 13:25:47 +0000 (15:25 +0200)]
Merge refs/heads/master from origin
Jens Axboe [Fri, 9 Sep 2005 13:24:13 +0000 (15:24 +0200)]
[PATCH] blkparse: Display io queue/completion stats
Display the time a request spent in the io scheduler and the time it took
that given request to be completed by the drive/driver.
Jens Axboe [Fri, 9 Sep 2005 10:30:33 +0000 (12:30 +0200)]
[PATCH] blkparse: fix leak in stdin read and sort
Jens Axboe [Fri, 9 Sep 2005 10:04:17 +0000 (12:04 +0200)]
[PATCH] blkparse: add framework for tracking individual ios
Jens Axboe [Fri, 9 Sep 2005 07:25:31 +0000 (09:25 +0200)]
[PATCH] blkparse: change output buffering
If logging to stdout, only use a per-line buffer instead of fully buffered.
Nathan Scott [Fri, 9 Sep 2005 07:22:52 +0000 (09:22 +0200)]
[PATCH] blktrace: Fix whitespace in log_merge()
Nathan Scott [Fri, 9 Sep 2005 07:22:13 +0000 (09:22 +0200)]
[PATCH] blktrace: remove unneeded strdup
Nathan Scott [Fri, 9 Sep 2005 07:20:26 +0000 (09:20 +0200)]
[PATCH] Fix dispatch reporting
Nathan Scott [Fri, 9 Sep 2005 07:19:26 +0000 (09:19 +0200)]
[PATCH] Fix time typo, it's in nanoseconds
Jens Axboe [Fri, 9 Sep 2005 07:18:49 +0000 (09:18 +0200)]
[PATCH] Use __WORDSIZE in hash
Originally fron Nathan, improved to remove 'bpl' as well.
Jens Axboe [Thu, 8 Sep 2005 18:15:18 +0000 (20:15 +0200)]
[PATCH] blkparse: Add per-process stats and fix output
Add the option (-s) to display per-process read/write stats as well as
the per-processor and total output. At the same time, fix the output so
it's a single file instead of per-processor (doesn't make sense here) and
put everything in the output file given with -o. If no output file is given,
stdout is used.
Jens Axboe [Thu, 8 Sep 2005 09:34:26 +0000 (11:34 +0200)]
[PATCH] Update README with info about the snapshots
Jens Axboe [Thu, 8 Sep 2005 06:37:57 +0000 (08:37 +0200)]
Merge refs/heads/master from origin
Jens Axboe [Thu, 8 Sep 2005 06:37:33 +0000 (08:37 +0200)]
[PATCH] Add patch for Linus' kernel
relayfs has been merged now, so it's easier to provide a mainline patch as well.
Jens Axboe [Wed, 7 Sep 2005 14:17:07 +0000 (16:17 +0200)]
[PATCH] Fix unaligned access on pthread_join(..., &int)
Jens Axboe [Wed, 7 Sep 2005 11:05:20 +0000 (13:05 +0200)]
[PATCH] Misc stdin fixes
- Allow skipping in the returned stdin data, otherwise I've noticed loss
of as many as 'nr' events when reading from the network.
- Use realloc() in resize_buffers()
- Detect sort_entries() errors in stdin read
Jens Axboe [Tue, 6 Sep 2005 12:52:04 +0000 (14:52 +0200)]
[PATCH] Set locale in blkparse
Otherwise the 1000 numerator wont work.
Jens Axboe [Tue, 6 Sep 2005 12:49:51 +0000 (14:49 +0200)]
[PATCH] Correct netcat examples
Jens Axboe [Tue, 6 Sep 2005 12:46:45 +0000 (14:46 +0200)]
[PATCH] Minimize output fd lock time
Extract both trace and payload before acquiring the output descriptor lock.
The writes should take very shortly thus minimizing the hold time, the read
may take much longer.
Jens Axboe [Tue, 6 Sep 2005 12:10:33 +0000 (14:10 +0200)]
[PATCH] Unify error returns
It's all a mess of dupes now anyway.
Jens Axboe [Tue, 6 Sep 2005 07:34:28 +0000 (09:34 +0200)]
[PATCH] Update documentation
Some of it was a little out of sync with reality. Add an example for live
tracing, locally as well as over the network.
Jens Axboe [Tue, 6 Sep 2005 07:09:52 +0000 (09:09 +0200)]
[PATCH] Add option to limit rb batching for live traces
Right now, blkparse keeps going until there's a delay in events read.
Add an option to cap the number of pending entries (-b) and default to
1024 events.
Jens Axboe [Tue, 6 Sep 2005 07:01:30 +0000 (09:01 +0200)]
[PATCH] Missed the ->device in endianness conversions
Jens Axboe [Tue, 6 Sep 2005 07:00:17 +0000 (09:00 +0200)]
[PATCH] Update kernel patch to revision 4 protocol
Jens Axboe [Tue, 6 Sep 2005 06:57:57 +0000 (08:57 +0200)]
[PATCH] Backout the ->device change from revision 4
Nathan Scott [Tue, 6 Sep 2005 06:53:36 +0000 (08:53 +0200)]
[PATCH] allow devices as arguments (as well as via -d option)
Nathan Scott [Tue, 6 Sep 2005 06:52:44 +0000 (08:52 +0200)]
[PATCH] Pretty up output on large SMP machines
Nathan Scott [Tue, 6 Sep 2005 06:51:55 +0000 (08:51 +0200)]
[PATCH] Missing colon in some output
Jens Axboe [Tue, 6 Sep 2005 06:51:15 +0000 (08:51 +0200)]
[PATCH] Fix per_cpu_info->cpu setting
Not all traces are from CPU 0! Noticed by Nathan.
Nathan Scott [Tue, 6 Sep 2005 06:49:15 +0000 (08:49 +0200)]
[PATCH] Dump command process names, they are available now
Nathan Scott [Tue, 6 Sep 2005 06:48:11 +0000 (08:48 +0200)]
[PATCH] Bump ->cpu to 32-bits for alignment and add process name
Nathan Scott [Tue, 6 Sep 2005 06:46:31 +0000 (08:46 +0200)]
[PATCH] Fix some wierd pthread/atexit interactions
Jens Axboe [Tue, 6 Sep 2005 06:25:57 +0000 (08:25 +0200)]
[PATCH] Forgot to update last file on checkin
Nathan Scott [Tue, 6 Sep 2005 06:23:03 +0000 (08:23 +0200)]
[PATHC] Plug some more stoptrace holes
I came across some more places where we can bail out of blktrace while
accidentally leaving the bdev trace running... this patch fixes them.
Nathan Scott [Tue, 6 Sep 2005 06:21:43 +0000 (08:21 +0200)]
[PATCH] Make per_cpu_info[] dynamically allocated and extendable
Nathan Scott [Tue, 6 Sep 2005 06:05:07 +0000 (08:05 +0200)]
[PATCH] Missing ->cpu endianness conversion
Jens Axboe [Mon, 5 Sep 2005 17:50:29 +0000 (19:50 +0200)]
[PATCH] Misc error handling and style fixes
Jens Axboe [Mon, 5 Sep 2005 14:35:10 +0000 (16:35 +0200)]
[PATCH] Move open of logging file
It should not be in the sorting, move it to the dumping place instead.
Jens Axboe [Mon, 5 Sep 2005 14:01:46 +0000 (16:01 +0200)]
[PATCH] Add support for killing running trace
Sometimes if the program dies, it's really annoying to not be able to
terminate a running trace. Add option -k to manually kill such a trace.
Jens Axboe [Mon, 5 Sep 2005 13:51:33 +0000 (15:51 +0200)]
[PATCH] Read and sort events in chunks from stdin
This should improve performance of the piped live tracing and at the same
time add support for sorting of incoming events at least in batches.
Nathan Scott [Mon, 5 Sep 2005 11:12:48 +0000 (13:12 +0200)]
[PATCH] Better strcmp fix
I looked at that strcmp memleak again for some reason, and wondered why not
use strcasecmp instead to further simplify things?
Jens Axboe [Mon, 5 Sep 2005 11:09:45 +0000 (13:09 +0200)]
[PATCH] Support for live tracing
This patch adds support for doing live traces again, by allowing pipe of
data from blktrace to blkparse. A structural change was needed in blk_io_trace
to pass the CPU number info directly instead of inferring it from the filename.
To parse realtime:
$ blktrace -d /dev/xxx -o - | blkparse -i -
Jens Axboe [Sun, 4 Sep 2005 15:37:06 +0000 (17:37 +0200)]
[PATCH] Style fixups
Alan seems to be fond of replacing tabs with space.s
Jens Axboe [Sun, 4 Sep 2005 15:31:23 +0000 (17:31 +0200)]
[PATCH] Stop threads before stopping trace
Otherwise the BLKSTOPTRACE will be called with the relayfs fd still being
open, and the <dev> directory wont be removed then causing subsequent
traces to fail.
Jens Axboe [Fri, 2 Sep 2005 12:26:24 +0000 (14:26 +0200)]
[PATCH] Update kernel patch to match new relayfs layout
Lay out the relayfs files a little nicer, so it's not so confusing to look
at.
Original patch from Nathan Scott <nathans@sgi.com>
Jens Axboe [Fri, 2 Sep 2005 11:47:23 +0000 (13:47 +0200)]
[PATCH] Fix the stop trace logic to not attempt to stop it twice
Jens Axboe [Fri, 2 Sep 2005 11:17:03 +0000 (13:17 +0200)]
[PATCH] blktrace fixes
- Threads don't close the trace fd
- Switch to newer /relay/block/<dev>/trace<cpu> naming
Jens Axboe [Fri, 2 Sep 2005 08:57:07 +0000 (10:57 +0200)]
[PATCH] Kill silly changelog, it's too bothersome
Nathan Scott [Fri, 2 Sep 2005 08:56:20 +0000 (10:56 +0200)]
[PATCH] Fix usage of uninitialized array in pdu extraction
Nathan Scott [Fri, 2 Sep 2005 08:54:37 +0000 (10:54 +0200)]
[PATCH] Fix memory leak in blktrace arg parsing