iowatcher: Simplify temp movie directory creation
authorAndrew Price <anprice@redhat.com>
Sat, 26 Apr 2014 01:56:17 +0000 (02:56 +0100)
committerChris Mason <clm@fb.com>
Wed, 24 Sep 2014 19:02:09 +0000 (12:02 -0700)
commitc9e749da1b973efddc75ca4d66b9c662ab81b42b
tree6995cb60c03557f70951c1c1fbbfa3070abd8a81
parentd6b58e52984f6c53958266b09baa5360cf7cbb62
iowatcher: Simplify temp movie directory creation

plot_io_movie() was calling create_movie_temp_dir() which unnecessarily
strdup()ed a string constant leaving plot_io_movie() to free it. Replace
the strdup() with a mutable char array and get rid of the free(). Merge
the few remaining lines which create the movie dir into plot_io_movie().

Also prune a duplicate declaration of start_mpstat() in tracers.h

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