int opt_textdump;
int opt_child;
int opt_begin;
+int opt_all;
int quit = 0;
OPT_RELAY_HOSTNAME,
OPT_KPROBES,
OPT_BEGIN,
+ OPT_ALL,
};
static struct poptOption long_options[] = {
{ "relay-hostname", 'r', POPT_ARG_STRING, &opt_relay_hostname,
OPT_RELAY_HOSTNAME, NULL, NULL },
{ "kprobes", 'k', POPT_ARG_STRING, &opt_kprobes, OPT_KPROBES, NULL, NULL },
+ { "all", 'a', POPT_ARG_NONE, NULL, OPT_ALL, NULL, NULL },
{ NULL, 0, 0, NULL, 0, NULL, NULL },
};
goto error;
}
if (!lookup_filter_tid_list(next_tid)) {
- goto end;
+ if (!opt_all)
+ goto end;
+ } else {
+ if (opt_all)
+ printf("%c[1m", 27);
}
- } else {
+ } else if (!opt_all) {
goto end;
}
+ } else {
+ if (opt_all)
+ printf("%c[1m", 27);
}
}
(current_syscall) ? '\0' : '\n');
free(from_syscall);
+ printf("%c[0m", 27);
end:
return BT_CB_OK;
fprintf(fp, " -p, --pid Comma-separated list of PIDs to display\n");
fprintf(fp, " -f, --child Follow threads associated with selected PIDs\n");
fprintf(fp, " -n, --hostname Comma-separated list of hostnames to display (require hostname context in trace)\n");
+ fprintf(fp, " -a, --all In textdump mode, display all events but write in bold the processes we are interested in (-f, -p and -n)\n");
fprintf(fp, " -k, --kprobes Comma-separated list of kprobes to insert (same format as lttng enable-event)\n");
fprintf(fp, " -r, --relay-hostname Network live streaming : hostname of the lttng-relayd (default port)\n");
fprintf(fp, " -b, --begin Network live streaming : read the trace for the beginning of the recording\n");
case OPT_TEXTDUMP:
opt_textdump = 1;
break;
+ case OPT_ALL:
+ opt_all = 1;
+ break;
case OPT_CHILD:
opt_child = 1;
break;