projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Truncate exclusion names to have a terminal '\0'
[lttng-tools.git]
/
src
/
lib
/
lttng-ctl
/
lttng-ctl.c
diff --git
a/src/lib/lttng-ctl/lttng-ctl.c
b/src/lib/lttng-ctl/lttng-ctl.c
index 779ee675fc92257e58c910dc4ee44703b3cfa08d..665aba57d7cb80f37656c670fe6d3760747eb7a0 100644
(file)
--- a/
src/lib/lttng-ctl/lttng-ctl.c
+++ b/
src/lib/lttng-ctl/lttng-ctl.c
@@
-19,7
+19,6
@@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#define _GNU_SOURCE
#define _LGPL_SOURCE
#include <assert.h>
#include <grp.h>
#define _LGPL_SOURCE
#include <assert.h>
#include <grp.h>
@@
-759,7
+758,7
@@
error:
}
/*
}
/*
- * Generate the filter bytecode from a give filter expression string. Put the
+ * Generate the filter bytecode from a give
n
filter expression string. Put the
* newly allocated parser context in ctxp and populate the lsm object with the
* expression len.
*
* newly allocated parser context in ctxp and populate the lsm object with the
* expression len.
*
@@
-1000,7
+999,8
@@
int lttng_enable_event_with_exclusions(struct lttng_handle *handle,
/* Put exclusion names first in the data */
while (exclusion_count--) {
strncpy(varlen_data + LTTNG_SYMBOL_NAME_LEN * exclusion_count,
/* Put exclusion names first in the data */
while (exclusion_count--) {
strncpy(varlen_data + LTTNG_SYMBOL_NAME_LEN * exclusion_count,
- *(exclusion_list + exclusion_count), LTTNG_SYMBOL_NAME_LEN);
+ *(exclusion_list + exclusion_count),
+ LTTNG_SYMBOL_NAME_LEN - 1);
}
/* Add filter expression next */
if (lsm.u.enable.expression_len != 0) {
}
/* Add filter expression next */
if (lsm.u.enable.expression_len != 0) {
@@
-1091,10
+1091,6
@@
int lttng_disable_event_ext(struct lttng_handle *handle,
}
lsm.cmd_type = LTTNG_DISABLE_EVENT;
}
lsm.cmd_type = LTTNG_DISABLE_EVENT;
- if (ev->name[0] == '\0') {
- /* Disable all events */
- lttng_ctl_copy_string(ev->name, "*", sizeof(ev->name));
- }
lttng_ctl_copy_lttng_domain(&lsm.domain, &handle->domain);
/* FIXME: copying non-packed struct to packed struct. */
lttng_ctl_copy_lttng_domain(&lsm.domain, &handle->domain);
/* FIXME: copying non-packed struct to packed struct. */
This page took
0.024633 seconds
and
4
git commands to generate.