Lines Matching full:trigger
214 if (free_event->trigger) in trace_events_free()
215 free(free_event->trigger); in trace_events_free()
263 * trace_event_add_trigger - record an event trigger action
265 int trace_event_add_trigger(struct trace_events *event, char *trigger) in trace_event_add_trigger() argument
267 if (event->trigger) in trace_event_add_trigger()
268 free(event->trigger); in trace_event_add_trigger()
270 event->trigger = strdup(trigger); in trace_event_add_trigger()
271 if (!event->trigger) in trace_event_add_trigger()
307 * If the trigger is a hist: one, save the content of the hist file.
320 /* trigger enables hist */ in trace_event_save_hist()
321 if (!tevent->trigger) in trace_event_save_hist()
324 /* is this a hist: trigger? */ in trace_event_save_hist()
325 retval = strncmp(tevent->trigger, "hist:", strlen("hist:")); in trace_event_save_hist()
356 * trace_event_disable_trigger - disable an event trigger
361 char trigger[1024]; in trace_event_disable_trigger() local
364 if (!tevent->trigger) in trace_event_disable_trigger()
370 debug_msg("Disabling %s:%s trigger %s\n", tevent->system, in trace_event_disable_trigger()
371 tevent->event ? : "*", tevent->trigger); in trace_event_disable_trigger()
375 snprintf(trigger, 1024, "!%s\n", tevent->trigger); in trace_event_disable_trigger()
378 tevent->event, "trigger", trigger); in trace_event_disable_trigger()
380 err_msg("Error disabling %s:%s trigger %s\n", tevent->system, in trace_event_disable_trigger()
381 tevent->event ? : "*", tevent->trigger); in trace_event_disable_trigger()
444 * trace_event_enable_trigger - enable an event trigger associated with an event
449 char trigger[1024]; in trace_event_enable_trigger() local
452 if (!tevent->trigger) in trace_event_enable_trigger()
456 err_msg("Trigger %s applies only for single events, not for all %s:* events\n", in trace_event_enable_trigger()
457 tevent->trigger, tevent->system); in trace_event_enable_trigger()
461 snprintf(trigger, 1024, "%s\n", tevent->trigger); in trace_event_enable_trigger()
463 debug_msg("Enabling %s:%s trigger %s\n", tevent->system, in trace_event_enable_trigger()
464 tevent->event ? : "*", tevent->trigger); in trace_event_enable_trigger()
467 tevent->event, "trigger", trigger); in trace_event_enable_trigger()
469 err_msg("Error enabling %s:%s trigger %s\n", tevent->system, in trace_event_enable_trigger()
470 tevent->event ? : "*", tevent->trigger); in trace_event_enable_trigger()