[PATCH] Cleaned up old LVM/MD references, cleaned up btt/README.
authorAlan David Brunelle <Alan.Brunelle@hp.com>
Thu, 21 Sep 2006 07:17:02 +0000 (09:17 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Sep 2006 07:17:02 +0000 (09:17 +0200)
Signed-off-by: Alan D. Brunelle <Alan.Brunelle@hp.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
btt/README
btt/args.c
btt/bt_timeline.c
btt/globals.h

index 23eac049f928e2ad7f82b8f4c30df5e78f4c5c8e..41ecdc40f1ae590880ac387a14e5ceead0d0374a 100644 (file)
@@ -6,37 +6,48 @@ Alan D. Brunelle (initial version)
 Usage
 -----
 
-$ btt -i <input file> (-l | -m) [-d <range delta>] [-D <devices...>]
-      [-e <executables...>] [-h] [-M map information] [-o <output file>]
-      [-v] [-V]
+Usage: btt
+       [ -d <seconds>     | --range-delta=<seconds> ]
+       [ -D <dev;...>     | --devices=<dev;...> ]
+       [ -e <exe,...>     | --exes=<exe,...>  ]
+       [ -h               | --help ]
+       [ -i <input name>  | --input-file=<input name> ]
+       [ -I <output name> | --iostat=<output name> ]
+       [ -M <dev map>     | --dev-maps=<dev map>
+       [ -o <output name> | --output-file=<output name> ]
+       [ -s <output name> | --seeks=<output name> ]
+       [ -S <interval>    | --iostat-interval=<interval> ]
+       [ -V               | --version ]
+       [ -v               | --verbose ]
 
-You are required to:
+You are required to specify an input file (-i)
 
-o  Specify an input file (-i)
-
-o  Specify MD (-m) or LVM2/DM (-l) devices present (If no software RAID
-   devices, use -m.) This is a workaround for issues between LVM2 and MD
-   remap events that needs to be cleaned up. [DM devices are not working
-   as of right now, always specify -m for individual disks and/or MD
-   devices.]
-
-The -d argument allows you to specify the granularity which dtermines
+The -d option allows you to specify the granularity which determines
 "activity" with regard to the .dat files -- this specific the time
 (in seconds) that must elapse without a particular event occuring to
 signify inactivity. The larger the number, the fewer ranges output --
 the default is 0.1 seconds.
 
-The -D argument supplies the devices which should be looked at when
+The -D option supplies the devices which should be looked at when
 analyzing the input. This is a ":" separated list of devices, devices are
 specified by a mjr,mnr tuple (e.g.: -D "8,0:8,8" specifies two devices
 with major 8 and minor 0 and 8 respectively).
 
-The -e argument supplies the list of executables that will have I/Os
+The -e option supplies the list of executables that will have I/Os
 analyzed.
 
-The -M argument takes in a file generated by the provided script
+The -I option directs btt to output iostat-like data to the specified
+file.  Refer to the iostat (sysstat) documentation for details on the
+data columns. The -S option specifies the interval to use between data
+output, it defaults to once per second.
+
+The -M option takes in a file generated by the provided script
 (gen_disk_info.py), and allows for better output of device names.
 
+The -s option instructs btt to output seek data, the argument provided
+is the basis for file names output. There are two files per device,
+read seeks and write seeks.
+
 Overview
 --------
 
@@ -54,4 +65,4 @@ The list is called linux-btrace@vger.kernel.org, subscribe by sending
 a mail to majordomo@vger.kernel.org with 'subscribe linux-btrace' in
 the mail body.
 
-2006-05-17, Alan D. Brunelle <alan.brunelle@hp.com>
+2006-09_18, Alan D. Brunelle <alan.brunelle@hp.com>
index a198da26fc9b3b9dc2f46fceffc5230522233603..7b4d0ee474472c792a9ea9cb48e80e08e5ec2f54 100644 (file)
@@ -28,7 +28,7 @@
 
 #include "globals.h"
 
-#define S_OPTS "d:D:e:hi:I:lmM:o:s:S:Vv"
+#define S_OPTS "d:D:e:hi:I:M:o:s:S:Vv"
 static struct option l_opts[] = {
        {
                .name = "range-delta",
@@ -66,18 +66,6 @@ static struct option l_opts[] = {
                .flag = NULL,
                .val = 'I'
        },
-       {
-               .name = "lvm",
-               .has_arg = no_argument,
-               .flag = NULL,
-               .val = 'l'
-       },
-       {
-               .name = "md",
-               .has_arg = no_argument,
-               .flag = NULL,
-               .val = 'm'
-       },
        {
                .name = "dev-maps",
                .has_arg = required_argument,
@@ -121,11 +109,11 @@ static struct option l_opts[] = {
 
 static char usage_str[] = \
        "\n[ -d <seconds>     | --range-delta=<seconds> ]\n" \
+       "[ -D <dev;...>     | --devices=<dev;...> ]\n" \
        "[ -e <exe,...>     | --exes=<exe,...>  ]\n" \
        "[ -h               | --help ]\n" \
        "[ -i <input name>  | --input-file=<input name> ]\n" \
        "[ -I <output name> | --iostat=<output name> ]\n" \
-       "(-l | -m)          | (--lvm | -md)\n" \
        "[ -M <dev map>     | --dev-maps=<dev map>\n" \
        "[ -o <output name> | --output-file=<output name> ]\n" \
        "[ -s <output name> | --seeks=<output name> ]\n" \
@@ -164,12 +152,6 @@ void handle_args(int argc, char *argv[])
                case 'I':
                        iostat_name = optarg;
                        break;
-               case 'l':
-                       is_lvm = 1;
-                       break;
-               case 'm':
-                       is_lvm = 0;
-                       break;
                case 'M':
                        dev_map_fname = optarg;
                        break;
@@ -197,7 +179,7 @@ void handle_args(int argc, char *argv[])
                }
        }
 
-       if (input_name == NULL || is_lvm < 0) {
+       if (input_name == NULL) {
                usage(argv[0]);
                exit(1);
        }
index ce5662e230ae8a1cc588a54e567551fca29528a5..9e69fe51a609df6c94d70b4e2046083b7ea0f0e2 100644 (file)
@@ -33,7 +33,6 @@ char *output_name = NULL;
 char *seek_name = NULL;
 double range_delta = 0.1;
 FILE *ranges_ofp, *avgs_ofp;
-int is_lvm = -1;
 int verbose = 0;
 int ifd;
 unsigned long n_traces, n_io_allocs, n_io_frees;
index dcb25a66ddd05430684e545471ecbfb322e3c3be..de67e0433af4530163c332ad70cc9155bc7ec051 100644 (file)
@@ -207,7 +207,7 @@ extern char bt_timeline_version[], *devices, *exes, *input_name, *output_name;
 extern char *seek_name, *iostat_name;
 extern double range_delta;
 extern FILE *ranges_ofp, *avgs_ofp, *iostat_ofp;
-extern int is_lvm, verbose, ifd;
+extern int verbose, ifd;
 extern unsigned int n_devs;
 extern unsigned long n_traces, n_io_allocs, n_io_frees;
 extern struct list_head all_devs, all_ios, all_procs;