Lines Matching full:trigger
38 * For each trigger associated with an event, invoke the trigger
39 * function registered with the associated trigger command. If rec is
40 * non-NULL, it means that the trigger requires further processing and
42 * trigger has a filter associated with it, rec will checked against
43 * the filter and if the record matches the trigger will be invoked.
44 * If the trigger is a 'post_trigger', meaning it shouldn't be invoked
45 * in any case until the current event is written, the trigger
47 * trigger is set in the return value.
50 * any trigger that should be deferred, ETT_NONE if nothing to defer.
55 * any trigger that should be deferred, ETT_NONE if nothing to defer.
73 data->ops->trigger(data, buffer, rec, event); in event_triggers_call()
83 data->ops->trigger(data, buffer, rec, event); in event_triggers_call()
106 * @tt: enum event_trigger_type containing a set bit for each trigger to invoke
108 * For each trigger associated with an event, invoke the trigger
109 * function registered with the associated trigger command, if the
125 data->ops->trigger(data, NULL, NULL, NULL); in event_triggers_post_call()
382 * @name: The name of the event trigger
384 * @data: Trigger-specific data
390 * trigger command and then invokes this.
417 * @data: Trigger-specific data
419 * Common implementation of event trigger initialization.
421 * Usually used directly as the @init method in event trigger
434 * @data: Trigger-specific data
436 * Common implementation of event trigger de-initialization.
438 * Usually used directly as the @free method in event trigger
476 * For each trigger, the triggering event has its tm_ref decremented
480 * combination effectively reverses the soft-mode/trigger state added
481 * by trigger registration.
506 * a post_trigger, trigger invocation needs to be deferred until after
534 * @glob: The raw string used to register the trigger
535 * @data: Trigger-specific data to associate with the trigger
538 * Common implementation for event trigger registration.
580 * True if the trigger was found and unregistered, else false.
612 * @glob: The raw string used to register the trigger
613 * @test: Trigger-specific data used to find the trigger to remove
616 * Common implementation for event trigger unregistration.
629 * Event trigger parsing helper functions.
631 * These functions help make it easier to write an event trigger
633 * function responsible for parsing and registering a trigger command
634 * written to the 'trigger' file.
636 * A trigger command (or just 'trigger' for short) takes the form:
637 * [trigger] [if filter]
640 * event_command functions) refer to several components of a trigger
641 * command. Those same components are referenced by the event trigger
644 * cmd - the trigger command name
645 * glob - the trigger command name optionally prefaced with '!'
653 * echo 'traceon:5 if pid == 0' > trigger
659 * echo 'enable_event:sys:event:n' > trigger
665 * echo 'hist:keys=pid if prio > 50' > trigger
671 * echo '!enable_event:sys:event:n' > trigger
678 * echo 'traceoff' > trigger
684 * There are a few different categories of event trigger covered by
690 * optional 'n' param (n = number of times the trigger should fire)
695 * depends on the complexity of the trigger, and the granularity of
698 * won't need certain functions. For instance, the hist trigger
704 * event_trigger_check_remove - check whether an event trigger specifies remove
705 * @glob: The trigger command string, with optional remove(!) operator
707 * The event trigger callback implementations pass in 'glob' as a
710 * determines whether the command corresponds to a trigger removal or
711 * a trigger addition.
722 * @param: The trigger param string
724 * The event trigger callback implementations pass in 'param' as a
738 * event_trigger_separate_filter - separate an event trigger from a filter
739 * @param_and_filter: String containing trigger and possibly filter
740 * @param: outparam, will be filled with a pointer to the trigger
744 * Given a param string of the form '[trigger] [if filter]', this
745 * function separates the filter from the trigger and returns the
746 * trigger in @param and the filter in @filter. Either the @param
748 * NULL, they will contain strings corresponding to the trigger and
756 * trigger with :n (n = number of times the trigger should fire) and
807 * event_trigger_alloc - allocate and init event_trigger_data for a trigger
808 * @cmd_ops: The event_command operations for the trigger
811 * @private_data: User data to associate with the event trigger
849 * event_trigger_parse_num - parse and return the number param for a trigger
851 * @trigger_data: The trigger_data for the trigger
853 * Parse the :n (n = number of times the trigger should fire) param
881 * event_trigger_set_filter - set an event trigger's filter
882 * @cmd_ops: The event_command operations for the trigger
883 * @file: The event file for the trigger's event
885 * @trigger_data: The trigger_data for the trigger
887 * Set the filter for the trigger. If the filter is NULL, just return
904 * event_trigger_reset_filter - reset an event trigger's filter
905 * @cmd_ops: The event_command operations for the trigger
906 * @trigger_data: The trigger_data for the trigger
908 * Reset the filter for the trigger to no filter.
918 * event_trigger_register - register an event trigger
919 * @cmd_ops: The event_command operations for the trigger
920 * @file: The event file for the trigger's event
921 * @glob: The trigger command string, with optional remove(!) operator
922 * @trigger_data: The trigger_data for the trigger
924 * Register an event trigger. The @cmd_ops are used to call the
938 * event_trigger_unregister - unregister an event trigger
939 * @cmd_ops: The event_command operations for the trigger
940 * @file: The event file for the trigger's event
941 * @glob: The trigger command string, with optional remove(!) operator
942 * @trigger_data: The trigger_data for the trigger
944 * Unregister an event trigger. The @cmd_ops are used to call the
956 * End event trigger parsing helper functions.
961 * @cmd_ops: The command ops, used for trigger registration
963 * @glob: The raw string used to register the trigger
964 * @cmd: The cmd portion of the string used to register the trigger
965 * @param_and_filter: The param and filter portion of the string used to register the trigger
967 * Common implementation for event command parsing and trigger
1031 * @filter_str: The filter string for the trigger, NULL to remove filter
1032 * @trigger_data: Trigger-specific data
1065 /* The filter is for the 'trigger' event, not the triggered event */ in set_trigger_filter()
1114 * find_named_trigger - Find the common named trigger associated with @name
1118 * trigger data. The first named trigger registered with a given name
1119 * owns the common trigger data that the others subsequently
1121 * returns the common trigger data associated with that first
1124 * Return: the common trigger data for the given named trigger on
1145 * is_named_trigger - determine if a given trigger is a named trigger
1146 * @test: The trigger data to test
1148 * Return: true if 'test' is a named trigger, false otherwise.
1163 * save_named_trigger - save the trigger in the named trigger list
1164 * @name: The name of the named trigger set
1165 * @data: The trigger data to save
1181 * del_named_trigger - delete a trigger from the named trigger list
1182 * @data: The trigger data to delete
1210 * @data: The trigger data of a named trigger to pause
1212 * Pauses a named trigger along with all other triggers having the
1214 * pausing only one is meaningless, so pausing one named trigger needs
1224 * @data: The trigger data of a named trigger to unpause
1226 * Un-pauses a named trigger along with all other triggers having the
1228 * unpausing only one is meaningless, so unpausing one named trigger
1237 * set_named_trigger_data - Associate common named trigger data
1238 * @data: The trigger data to associate
1239 * @named_data: The common named trigger to be associated
1242 * trigger data. The first named trigger registered with a given name
1243 * owns the common trigger data that the others subsequently
1245 * associates the common trigger data from the first trigger with the
1246 * given trigger.
1371 .trigger = traceon_trigger,
1378 .trigger = traceon_count_trigger,
1385 .trigger = traceoff_trigger,
1392 .trigger = traceoff_count_trigger,
1495 .trigger = snapshot_trigger,
1502 .trigger = snapshot_count_trigger,
1590 .trigger = stacktrace_trigger,
1597 .trigger = stacktrace_count_trigger,
1715 .trigger = event_enable_trigger,
1722 .trigger = event_enable_count_trigger,
1729 .trigger = event_enable_trigger,
1736 .trigger = event_enable_count_trigger,