- 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;
- }