sizeof(lsm.u.enable.channel_name));
}
- lttng_ctl_copy_lttng_domain(&lsm.domain, &handle->domain);
-
- /* figure out correct command type, based on if we have a filter or exclusions */
- if (exclusion_count == 0) {
- if (filter_expression == NULL) {
- if (ev->name[0] != '\0') {
- lsm.cmd_type = LTTNG_ENABLE_EVENT;
- } else {
- lsm.cmd_type = LTTNG_ENABLE_ALL_EVENT;
- }
- } else {
- lsm.cmd_type = LTTNG_ENABLE_EVENT_WITH_FILTER;
- }
+ if (ev->name[0] != '\0') {
+ lsm.cmd_type = LTTNG_ENABLE_EVENT;
} else {
- lsm.cmd_type = LTTNG_ENABLE_EVENT_WITH_EXCLUSION;
+ lsm.cmd_type = LTTNG_ENABLE_ALL_EVENT;
}
+ lttng_ctl_copy_lttng_domain(&lsm.domain, &handle->domain);
memcpy(&lsm.u.enable.event, ev, sizeof(lsm.u.enable.event));
lttng_ctl_copy_string(lsm.session.name, handle->session_name,
}
ret = lttng_ctl_ask_sessiond_varlen(&lsm, varlen_data,
- LTTNG_SYMBOL_NAME_LEN * lsm.u.enable.exclusion_count
- + lsm.u.enable.bytecode_len,
- NULL);
+ (LTTNG_SYMBOL_NAME_LEN * lsm.u.enable.exclusion_count) +
+ lsm.u.enable.bytecode_len, NULL);
if (lsm.u.enable.exclusion_count != 0) {
free(varlen_data);