/openbmc/linux/tools/testing/selftests/ftrace/test.d/trigger/ |
H A D | trigger-filter.tc | 3 # description: event trigger - test trigger filter 4 # requires: set_event events/sched/sched_process_fork/trigger 12 echo "Test trigger filter" 14 echo 'traceoff if child_pid == 0' > events/sched/sched_process_fork/trigger 17 fail "traceoff trigger on sched_process_fork did not work" 22 echo "Test semantic error for trigger filter" 23 ! echo 'traceoff if a' > events/sched/sched_process_fork/trigger 24 ! echo 'traceoff if common_pid=0' > events/sched/sched_process_fork/trigger 25 ! echo 'traceoff if common_pid==b' > events/sched/sched_process_fork/trigger 26 echo 'traceoff if common_pid == 0' > events/sched/sched_process_fork/trigger [all …]
|
H A D | trigger-eventonoff.tc | 3 # description: event trigger - test event enable/disable trigger 4 # requires: set_event events/sched/sched_process_fork/trigger 12 FEATURE=`grep enable_event events/sched/sched_process_fork/trigger` 14 echo "event enable/disable trigger is not supported" 18 echo "Test enable_event trigger" 20 echo 'enable_event:sched:sched_switch' > events/sched/sched_process_fork/trigger 23 fail "enable_event trigger on sched_process_fork did not work" 28 echo "Test disable_event trigger" 30 echo 'disable_event:sched:sched_switch' > events/sched/sched_process_fork/trigger 33 fail "disable_event trigger on sched_process_fork did not work" [all …]
|
H A D | trigger-traceonoff.tc | 3 # description: event trigger - test traceon/off trigger 4 # requires: set_event events/sched/sched_process_fork/trigger 11 echo "Test traceoff trigger" 13 echo 'traceoff' > events/sched/sched_process_fork/trigger 16 fail "traceoff trigger on sched_process_fork did not work" 21 echo "Test traceon trigger" 23 echo 'traceon' > events/sched/sched_process_fork/trigger 26 fail "traceoff trigger on sched_process_fork did not work" 31 echo "Test semantic error for traceoff/on trigger" 32 ! echo 'traceoff:badparam' > events/sched/sched_process_fork/trigger [all …]
|
H A D | trigger-stacktrace.tc | 3 # description: event trigger - test stacktrace-trigger 4 # requires: set_event events/sched/sched_process_fork/trigger 11 FEATURE=`grep stacktrace events/sched/sched_process_fork/trigger` 13 echo "stacktrace trigger is not supported" 17 echo "Test stacktrace trigger" 20 echo 'stacktrace' > events/sched/sched_process_fork/trigger 23 fail "stacktrace trigger on sched_process_fork did not work" 29 ! echo "stacktrace:foo" > events/sched/sched_process_fork/trigger 30 echo "stacktrace" > events/sched/sched_process_fork/trigger 31 ! echo "stacktrace" > events/sched/sched_process_fork/trigger
|
H A D | trigger-hist-expressions.tc | 3 # description: event trigger - test histogram expression parsing 4 # requires: set_event events/sched/sched_process_fork/trigger events/sched/sched_process_fork/hist … 13 trigger="events/sched/sched_process_fork/trigger" 15 reset_trigger_file $trigger 17 echo "Test hist trigger expressions - $1" 19 echo "hist:keys=common_pid:x=$2" > $trigger 23 actual=`grep -o 'x=[[:digit:]]*' $trigger | awk -F= '{ print $2 }'` 26 … fail "Failed hist trigger expression evaluation: Expression: $2 Expected: $3, Actual: $actual" 29 reset_trigger_file $trigger 33 trigger="events/sched/sched_process_fork/trigger" [all …]
|
H A D | trigger-snapshot.tc | 3 # description: event trigger - test snapshot-trigger 4 # requires: set_event events/sched/sched_process_fork/trigger snapshot 11 FEATURE=`grep snapshot events/sched/sched_process_fork/trigger` 13 echo "snapshot trigger is not supported" 17 echo "Test snapshot trigger" 21 echo 'snapshot:1' > events/sched/sched_process_fork/trigger 24 fail "snapshot trigger on sched_process_fork did not work" 32 ! echo "snapshot+1" > events/sched/sched_process_fork/trigger 33 echo "snapshot" > events/sched/sched_process_fork/trigger 34 ! echo "snapshot" > events/sched/sched_process_fork/trigger
|
/openbmc/linux/Documentation/driver-api/iio/ |
H A D | triggers.rst | 5 * struct iio_trigger — industrial I/O trigger device 9 * :c:func:`iio_trigger_validate_own_device` — Check if a trigger and IIO 13 on some external event (trigger) as opposed to periodically polling for data. 14 An IIO trigger can be provided by a device driver that also has an IIO device 18 a specific file in sysfs). A trigger may initiate data capture for a number of 21 IIO trigger sysfs interface 26 * :file:`/sys/bus/iio/devices/trigger{Y}/*`, this file is created once an 27 IIO trigger is registered with the IIO core and corresponds to trigger 32 * :file:`name`, trigger name that can be later used for association with a 35 specify the frequency for trigger calls. [all …]
|
/openbmc/linux/Documentation/leds/ |
H A D | ledtrig-transient.rst | 2 LED Transient Trigger 5 The leds timer trigger does not currently have an interface to activate 10 should stay in off state. The on and off cycle repeats until the trigger 15 Without one shot timer interface, user space can still use timer trigger to 20 Transient trigger addresses the need for one shot timer activation. The 21 transient trigger can be enabled and disabled just like the other leds 25 triggers it supports and a default trigger. During registration, activation 26 routine for the default trigger gets called. During registration of an led 30 trigger will be called, and LED state is changed to LED_OFF. 34 suspend and resume actions and the currently enabled trigger. LED state [all …]
|
H A D | ledtrig-oneshot.rst | 2 One-shot LED Trigger 5 This is a LED trigger useful for signaling the user of an event where there are 7 trigger, the application needs only to signal the trigger when an event has 8 happened, then the trigger turns the LED on and then keeps it off for a 11 This trigger is meant to be usable both for sporadic and dense events. In the 12 first case, the trigger produces a clear single controlled blink for each 20 The trigger can be activated from user space on led class devices as shown 23 echo oneshot > trigger 26 Documentation/ABI/testing/sysfs-class-led-trigger-oneshot 30 echo oneshot > trigger # set trigger for this led
|
/openbmc/linux/kernel/trace/ |
H A D | trace_events_trigger.c | 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. [all …]
|
/openbmc/linux/drivers/leds/trigger/ |
H A D | Kconfig | 3 bool "LED Trigger support" 6 This option enables trigger support for the leds class. 13 tristate "LED Timer Trigger" 23 tristate "LED One-shot Trigger" 36 bool "LED Disk Trigger" 43 bool "LED MTD (NAND/NOR) Trigger" 50 tristate "LED Heartbeat Trigger" 58 tristate "LED backlight Trigger" 66 bool "LED CPU Trigger" 76 tristate "LED activity Trigger" [all …]
|
/openbmc/linux/include/linux/iio/ |
H A D | trigger.h | 2 /* The industrial I/O core, trigger handling functions 23 * @set_trigger_state: switch on/off the trigger on demand 24 * @reenable: function to reenable the trigger when the 27 * current trigger gets changed. 41 * struct iio_trigger - industrial I/O trigger device 47 * @list: [INTERN] used in maintenance of global trigger list 48 * @alloc_list: [DRIVER] used for driver specific trigger list 49 * @use_count: [INTERN] use count for the trigger. 51 * @subirq_base: [INTERN] base number for irqs provided by trigger. 55 * @attached_own_device:[INTERN] if we are using our own device as trigger, [all …]
|
/openbmc/bmcweb/redfish-core/include/registries/ |
H A D | telemetry_message_registry.hpp | 42 "Indicates that a discrete trigger condition is met.", 43 "Metric '%1' has the value '%2', which meets the discrete condition of trigger '%3'", 51 "Check the condition of the metric that reported the trigger.", 56 …"Indicates that a numeric metric reading is no longer below the lower critical trigger threshold, … 57 …"Metric '%1' value of %2 is now above the %3 lower critical threshold of trigger '%4' but remains … 66 "Check the condition of the metric that reported the trigger.", 71 … "Indicates that a numeric metric reading is above the upper critical trigger threshold.", 72 "Metric '%1' value of %2 is above the %3 upper critical threshold of trigger '%4'", 81 "Check the condition of the metric that reported the trigger.", 86 "Indicates that a numeric metric reading is above the upper warning trigger threshold.", [all …]
|
/openbmc/phosphor-fan-presence/control/ |
H A D | triggers.hpp | 12 namespace trigger namespace 16 * @brief A trigger to start a timer for an event 22 * @return Trigger lambda function 23 * A Trigger function that creates and starts a timer 25 Trigger timer(TimerConf&& tConf); 28 * @brief A trigger of a signal for an event 34 * @return Trigger lambda function 35 * A Trigger function that subscribes to a signal 37 Trigger signal(const std::string& match, SignalHandler&& handler); 40 * @brief A trigger for actions to run at event init [all …]
|
/openbmc/linux/drivers/iio/trigger/ |
H A D | Kconfig | 10 tristate "High resolution timer trigger" 13 Provides a frequency based IIO trigger using high resolution 20 tristate "Generic interrupt trigger" 23 trigger. This may be provided by a gpio driver for example. 29 tristate "STM32 Low-Power Timer Trigger" 32 Select this option to enable STM32 Low-Power Timer Trigger. 33 This can be used as trigger source for STM32 internal ADC 37 module will be called stm32-lptimer-trigger. 40 tristate "STM32 Timer Trigger" 43 Select this option to enable STM32 Timer Trigger [all …]
|
/openbmc/linux/tools/perf/util/ |
H A D | trigger.h | 8 * Use trigger to model operations which need to be executed when 21 * a trigger. is_hit means the event already happen; is_ready means the 22 * trigger is waiting for the event. 25 struct trigger { struct 37 WARN_ONCE(t->state != exp, "trigger '%s' state transist error: %d in %s()\n", \ argument 40 static inline bool trigger_is_available(struct trigger *t) in trigger_is_available() 45 static inline bool trigger_is_error(struct trigger *t) in trigger_is_error() 50 static inline void trigger_on(struct trigger *t) in trigger_on() 56 static inline void trigger_ready(struct trigger *t) in trigger_ready() 63 static inline void trigger_hit(struct trigger *t) in trigger_hit() [all …]
|
/openbmc/bmcweb/redfish-core/schema/dmtf/json-schema-installed/ |
H A D | Triggers.v1_4_0.json | 35 "description": "The direction of crossing that corresponds to a trigger.", 41 …"Decreasing": "A trigger is met when the metric value crosses the trigger value while decreasing.", 42 …"Increasing": "A trigger condition is met when the metric value crosses the trigger value while in… 44 …gDescription": "The value shall indicate the direction of crossing that corresponds to a trigger.", 49 "description": "The characteristics of the discrete trigger.", 50 … "longDescription": "This object shall contain the characteristics of the discrete trigger.", 67 …"description": "The amount of time that a trigger event persists before the metric action is perfo… 68 …longDescription": "This property shall contain the amount of time that a trigger event persists be… 77 "description": "The name of the trigger.", 78 "longDescription": "This property shall contain a name for the trigger.", [all …]
|
/openbmc/bmcweb/redfish-core/schema/dmtf/json-schema/ |
H A D | Triggers.v1_4_0.json | 35 "description": "The direction of crossing that corresponds to a trigger.", 41 …"Decreasing": "A trigger is met when the metric value crosses the trigger value while decreasing.", 42 …"Increasing": "A trigger condition is met when the metric value crosses the trigger value while in… 44 …gDescription": "The value shall indicate the direction of crossing that corresponds to a trigger.", 49 "description": "The characteristics of the discrete trigger.", 50 … "longDescription": "This object shall contain the characteristics of the discrete trigger.", 67 …"description": "The amount of time that a trigger event persists before the metric action is perfo… 68 …longDescription": "This property shall contain the amount of time that a trigger event persists be… 77 "description": "The name of the trigger.", 78 "longDescription": "This property shall contain a name for the trigger.", [all …]
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-iio-trigger-sysfs | 5 This file is provided by the iio-trig-sysfs stand-alone trigger 7 driven driver, associated with this trigger, to capture data 9 automated testing or in situations, where other trigger methods 11 X is the IIO index of the trigger. 18 trigger. In order to associate the trigger with an IIO device 20 /sys/bus/iio/devices/iio:deviceY/trigger/current_trigger. 27 driver and it is used to activate the creation of a new trigger. 30 trigger. If the trigger with the specified id is already present 38 created trigger from the list of available triggers. In order to 40 associated file, representing the id of the trigger that needs [all …]
|
/openbmc/linux/tools/tracing/rtla/src/ |
H A D | trace.c | 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() [all …]
|
/openbmc/linux/drivers/iio/ |
H A D | industrialio-trigger.c | 2 /* The industrial I/O core, trigger handling functions 17 #include <linux/iio/trigger.h> 23 * Make the common case (single sensor single trigger) 24 * simple by starting trigger capture from when first sensors 28 * of the trigger. (not implemented) 76 dev_set_name(&trig_info->dev, "trigger%d", trig_info->id); in iio_trigger_register() 85 pr_err("Duplicate trigger name '%s'\n", trig_info->name); in iio_trigger_register() 134 /* Search for trigger by name, assuming iio_trigger_list_lock held */ 168 * This 'might' occur after the trigger state is set to disabled - in iio_reenable_work_fn() 177 * to reneable the trigger for us. [all …]
|
/openbmc/linux/Documentation/iio/ |
H A D | iio_configfs.rst | 38 trigger types. A new trigger type is usually implemented as a separate 42 * drivers/iio/trigger/iio-trig-sample.c 43 * sample kernel module implementing a new trigger type 51 * This allocates and registers an IIO trigger plus other 52 * trigger type specific initialization. 76 Each trigger type has its own directory under /config/iio/triggers. Loading 77 iio-trig-sample module will create 'trig-sample' trigger type directory 80 We support the following interrupt sources (trigger types): 87 Loading iio-trig-hrtimer module will register hrtimer trigger types allowing 95 Each trigger can have one or more attributes specific to the trigger type. [all …]
|
/openbmc/linux/drivers/vfio/fsl-mc/ |
H A D | vfio_fsl_mc_intr.c | 57 eventfd_signal(mc_irq->trigger, 1); in vfio_fsl_mc_irq_handler() 65 struct eventfd_ctx *trigger; in vfio_set_trigger() local 70 if (irq->trigger) { in vfio_set_trigger() 73 eventfd_ctx_put(irq->trigger); in vfio_set_trigger() 74 irq->trigger = NULL; in vfio_set_trigger() 85 trigger = eventfd_ctx_fdget(fd); in vfio_set_trigger() 86 if (IS_ERR(trigger)) { in vfio_set_trigger() 88 return PTR_ERR(trigger); in vfio_set_trigger() 91 irq->trigger = trigger; in vfio_set_trigger() 97 eventfd_ctx_put(trigger); in vfio_set_trigger() [all …]
|
/openbmc/telemetry/src/ |
H A D | trigger.hpp | 5 #include "interfaces/trigger.hpp" 17 class Trigger : public interfaces::Trigger class 20 Trigger(boost::asio::io_context& ioc, 31 Trigger(const Trigger&) = delete; 32 Trigger(Trigger&&) = delete; 33 Trigger& operator=(const Trigger&) = delete; 34 Trigger& operator=(Trigger&&) = delete; 70 "xyz.openbmc_project.Telemetry.Trigger";
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Telemetry/ |
H A D | TriggerManager.interface.yaml | 7 Create new object that represents Trigger with 8 xyz.openbmc_project.Telemetry.Trigger interface stored in path 15 Defines unique identifier of created Trigger object to be 22 Defines user friendly name of created Trigger object. 24 type: array[enum[xyz.openbmc_project.Telemetry.Trigger.TriggerAction]] 31 Map of sensors that is monitored within trigger. D-Bus sensor 42 …ay[struct[enum[xyz.openbmc_project.Telemetry.Trigger.Type],uint64,enum[xyz.openbmc_project.Telemet… 45 xyz.openbmc_project.Telemetry.Trigger interface. 47 … type: array[struct[string,enum[xyz.openbmc_project.Telemetry.Trigger.Severity],uint64,string]] 50 xyz.openbmc_project.Telemetry.Trigger interface. [all …]
|