CTL_OP_START,
CTL_OP_STOP,
CTL_OP_DAEMON,
- CTL_OP_ALIGN,
CTL_OP_NONE
};
static enum trace_ctl_op op = CTL_OP_NONE;
static char *channel_root = NULL;
static char *trace_root = NULL;
-static unsigned alignment = 0;
static int sigio_received = 0;
printf(" (optionnaly, you can set LTT_DAEMON env. var.)\n");
printf("-t Trace root path. (ex. /root/traces/example_trace)\n");
printf("-l LTT channels root path. (ex. /mnt/relayfs/ltt)\n");
- printf("-a Alignment of a new or existing trace\n");
printf("-z Size of the subbuffers (will be rounded to next page size)\n");
printf("-x Number of subbuffers\n");
printf("\n");
case 'q':
op = CTL_OP_STOP;
break;
- case 'a':
- if(op == CTL_OP_NONE) op = CTL_OP_ALIGN;
- if(argn+1 < argc) {
- alignment = (unsigned)atoi(argv[argn+1]);
- argn++;
- } else {
- printf("Specify an alignment after -a.\n");
- printf("\n");
- ret = -1;
- }
- break;
case 'z':
if(argn+1 < argc) {
subbuf_size = (unsigned)atoi(argv[argn+1]);
case CTL_OP_CREATE:
ret = lttctl_create_trace(handle, trace_name, mode, subbuf_size,
n_subbufs);
- if(alignment != 0)
- ret |= lttctl_align(handle, trace_name, alignment);
- break;
case CTL_OP_DESTROY:
ret = lttctl_destroy_trace(handle, trace_name);
break;
case CTL_OP_DAEMON:
ret = lttctl_daemon(handle, trace_name);
break;
- case CTL_OP_ALIGN:
- ret = lttctl_align(handle, trace_name, alignment);
case CTL_OP_NONE:
break;
}