projects
/
lttng-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f6e4c3
)
Fix: send disable ALL command code if event is *
author
David Goulet
<dgoulet@efficios.com>
Fri, 5 Sep 2014 16:12:38 +0000
(12:12 -0400)
committer
David Goulet
<dgoulet@efficios.com>
Fri, 5 Sep 2014 16:20:36 +0000
(12:20 -0400)
$ lttng disable-event -a
and
$ lttng disable-event '*'
Both commands should do the same meaning send the DISABLE_EVENT_ALL
command to the session daemon.
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/lib/lttng-ctl/lttng-ctl.c
patch
|
blob
|
blame
|
history
diff --git
a/src/lib/lttng-ctl/lttng-ctl.c
b/src/lib/lttng-ctl/lttng-ctl.c
index acf894e41509522d9af959f51a436343b0d4272a..23b84db4f9519e209d4477db2a6e645ac9c45157 100644
(file)
--- a/
src/lib/lttng-ctl/lttng-ctl.c
+++ b/
src/lib/lttng-ctl/lttng-ctl.c
@@
-1056,7
+1056,7
@@
int lttng_disable_event(struct lttng_handle *handle, const char *name,
lttng_ctl_copy_lttng_domain(&lsm.domain, &handle->domain);
- if (name != NULL) {
+ if (name != NULL
&& *name != '*'
) {
lttng_ctl_copy_string(lsm.u.disable.name, name,
sizeof(lsm.u.disable.name));
lsm.cmd_type = LTTNG_DISABLE_EVENT;
This page took
0.027282 seconds
and
4
git commands to generate.