projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add kernel enable event support
[lttng-tools.git]
/
lttng
/
lttng.c
diff --git
a/lttng/lttng.c
b/lttng/lttng.c
index beb67ffb446afa430ab4ca34982e26b8237bb0a0..c7c88f6315a0a8987912dc003979d0f8454247bd 100644
(file)
--- a/
lttng/lttng.c
+++ b/
lttng/lttng.c
@@
-131,11
+131,12
@@
static int process_client_opt(void)
if (opt_event_list != NULL) {
ret = process_opt_kernel_event();
if (opt_event_list != NULL) {
ret = process_opt_kernel_event();
+ if (ret < 0) {
+ goto end;
+ }
} else {
// Enable all events
}
} else {
// Enable all events
}
-
- goto error;
}
if (opt_trace_pid != 0) {
}
if (opt_trace_pid != 0) {
@@
-521,7
+522,7
@@
static int validate_options(void)
}
/* If start trace, auto start tracing */
}
/* If start trace, auto start tracing */
- if (opt_start_trace) {
+ if (opt_start_trace
|| opt_event_list != NULL
) {
DBG("Requesting auto tracing");
auto_trace = 1;
}
DBG("Requesting auto tracing");
auto_trace = 1;
}
This page took
0.023143 seconds
and
4
git commands to generate.