-l Run in network listen mode (blktrace server)
-h Run in network client mode, connecting to the given host
-p Network port to use (default 8462)
- -s Make the network client use sendfile() to transfer data
+ -s Disable network client use of sendfile() to transfer data
-V Print program version info.
$ blkparse -i <input> [ -o <output> ] [ -b rb_batch ] [ -s ] [ -t ] [ -q ]
.val = 'p'
},
{
- .name = "sendfile",
+ .name = "no-sendfile",
.has_arg = no_argument,
.flag = NULL,
.val = 's'
static char hostname[MAXHOSTNAMELEN];
static int net_port = TRACE_NET_PORT;
static int net_mode = 0;
-static int net_use_sendfile;
+static int net_use_sendfile = 1;
struct net_connection {
int in_fd;
net_port = atoi(optarg);
break;
case 's':
- net_use_sendfile = 1;
+ net_use_sendfile = 0;
break;
default:
show_usage(argv[0]);