Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
- ret = enable_kprobes(handle, channel_name);
- if (ret < 0) {
- goto error_session;
+ if (lttngtop.kprobes_table) {
+ ret = enable_kprobes(handle, channel_name);
+ if (ret < 0) {
+ goto error_session;
+ }
}
kctxpid.ctx = LTTNG_EVENT_CONTEXT_PID;
}
kctxpid.ctx = LTTNG_EVENT_CONTEXT_PID;
struct mmap_stream *mmap_info;
unsigned long mmap_len;
struct mmap_stream *mmap_info;
unsigned long mmap_len;
ret = parse_options(argc, argv);
if (ret < 0) {
fprintf(stdout, "Error parsing options.\n\n");
ret = parse_options(argc, argv);
if (ret < 0) {
fprintf(stdout, "Error parsing options.\n\n");
signal(SIGTERM, handle_textdump_sigterm);
signal(SIGINT, handle_textdump_sigterm);
}
signal(SIGTERM, handle_textdump_sigterm);
signal(SIGINT, handle_textdump_sigterm);
}
ret = setup_live_tracing();
if (ret < 0) {
goto end;
ret = setup_live_tracing();
if (ret < 0) {
goto end;
bt_ctx = bt_context_create();
ret = bt_context_add_traces_recursive(bt_ctx, opt_input_path, "ctf", NULL);
bt_ctx = bt_context_create();
ret = bt_context_add_traces_recursive(bt_ctx, opt_input_path, "ctf", NULL);