iowatcher: Merge trace dumping functions into one
authorAndrew Price <anprice@redhat.com>
Fri, 28 Mar 2014 01:47:27 +0000 (01:47 +0000)
committerChris Mason <clm@fb.com>
Wed, 24 Sep 2014 19:02:09 +0000 (12:02 -0700)
commitd6b58e52984f6c53958266b09baa5360cf7cbb62
treeaedfc9c56114ed40c73b1e32ec5123bb200d3553
parent6061d941fc91e079edf76402bab2056063637d96
iowatcher: Merge trace dumping functions into one

Now that combine_blktrace_devs() takes a list of traces it's fairly
generic so we might as well merge blktrace_to_dump() into it. The latter
can be replaced with a call using a list with a single entry.

combine_blktrace_devs() is renamed dump_traces() because that's what it
does.

Also eradicate the big global char array 'line' that was being used in a
bunch of places along with some more unnecessary strdup()s.

Signed-off-by: Andrew Price <anprice@redhat.com>
iowatcher/blkparse.c
iowatcher/tracers.c
iowatcher/tracers.h