* called directly by the user, we don't have that but we
* still need to honor not logging when disabled.
*/
- if (!(file->flags & EVENT_FILE_FL_ENABLED))
+ if (!(file->flags & EVENT_FILE_FL_ENABLED) ||
+ trace_trigger_soft_disabled(file))
return 0;
event = file->event_call->data;
if (n_vals != event->n_fields)
return -EINVAL;
- if (trace_trigger_soft_disabled(file))
- return -EINVAL;
-
fields_size = event->n_u64 * sizeof(u64);
/*
* called directly by the user, we don't have that but we
* still need to honor not logging when disabled.
*/
- if (!(file->flags & EVENT_FILE_FL_ENABLED))
+ if (!(file->flags & EVENT_FILE_FL_ENABLED) ||
+ trace_trigger_soft_disabled(file))
return 0;
event = file->event_call->data;
if (n_vals != event->n_fields)
return -EINVAL;
- if (trace_trigger_soft_disabled(file))
- return -EINVAL;
-
fields_size = event->n_u64 * sizeof(u64);
/*
* trace case, we save the enabed state upon start and just
* ignore the following data calls.
*/
- if (!(file->flags & EVENT_FILE_FL_ENABLED)) {
+ if (!(file->flags & EVENT_FILE_FL_ENABLED) ||
+ trace_trigger_soft_disabled(file)) {
trace_state->enabled = false;
goto out;
}
trace_state->event = file->event_call->data;
- if (trace_trigger_soft_disabled(file)) {
- ret = -EINVAL;
- goto out;
- }
-
fields_size = trace_state->event->n_u64 * sizeof(u64);
/*