projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean-up and simplify event_agent_disable_all
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
list.c
diff --git
a/src/bin/lttng/commands/list.c
b/src/bin/lttng/commands/list.c
index 0c0a37a7ae74012adf896918a3edc882ae8898eb..108925eecca9134d90e59462ee3a2419b64985e7 100644
(file)
--- a/
src/bin/lttng/commands/list.c
+++ b/
src/bin/lttng/commands/list.c
@@
-493,7
+493,7
@@
static int list_ust_events(void)
int i, size, ret = CMD_SUCCESS;
struct lttng_domain domain;
struct lttng_handle *handle;
int i, size, ret = CMD_SUCCESS;
struct lttng_domain domain;
struct lttng_handle *handle;
- struct lttng_event *event_list;
+ struct lttng_event *event_list
= NULL
;
pid_t cur_pid = 0;
char *cmdline = NULL;
pid_t cur_pid = 0;
char *cmdline = NULL;
@@
-1855,7
+1855,8
@@
int cmd_list(int argc, const char **argv)
if (ret) {
goto end;
}
if (ret) {
goto end;
}
- continue;
+
+ goto next_domain;
}
switch (domains[i].type) {
}
switch (domains[i].type) {
@@
-1875,6
+1876,7
@@
int cmd_list(int argc, const char **argv)
goto end;
}
goto end;
}
+next_domain:
if (lttng_opt_mi) {
/* Close domain element */
ret = mi_lttng_writer_close_element(writer);
if (lttng_opt_mi) {
/* Close domain element */
ret = mi_lttng_writer_close_element(writer);
This page took
0.025688 seconds
and
4
git commands to generate.