/linux/tools/testing/selftests/ftrace/test.d/trigger/ |
H A D | trigger-filter.tc | 14 echo 'traceoff if child_pid == 0' > events/sched/sched_process_fork/trigger 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 27 echo '!traceoff' > events/sched/sched_process_fork/trigger 28 ! echo 'traceoff if common_pid == child_pid' > events/sched/sched_process_fork/trigger 29 echo 'traceoff if common_pid <= 0' > events/sched/sched_process_fork/trigger 30 echo '!traceoff' > events/sched/sched_process_fork/trigger 31 echo 'traceoff if common_pid >= 0' > events/sched/sched_process_fork/trigger [all …]
|
H A D | trigger-eventonoff.tc | 12 FEATURE=`grep enable_event events/sched/sched_process_fork/trigger` 20 echo 'enable_event:sched:sched_switch' > events/sched/sched_process_fork/trigger 30 echo 'disable_event:sched:sched_switch' > events/sched/sched_process_fork/trigger 39 ! echo 'enable_event:nogroup:noevent' > events/sched/sched_process_fork/trigger 40 ! echo 'disable_event+1' > events/sched/sched_process_fork/trigger 41 echo 'enable_event:sched:sched_switch' > events/sched/sched_process_fork/trigger 42 ! echo 'enable_event:sched:sched_switch' > events/sched/sched_process_fork/trigger 43 ! echo 'disable_event:sched:sched_switch' > events/sched/sched_process_fork/trigger
|
H A D | trigger-hist-expressions.tc | 13 trigger="events/sched/sched_process_fork/trigger" 15 reset_trigger_file $trigger 19 echo "hist:keys=common_pid:x=$2" > $trigger 23 actual=`grep -o 'x=[[:digit:]]*' $trigger | awk -F= '{ print $2 }'` 29 reset_trigger_file $trigger 33 trigger="events/sched/sched_process_fork/trigger" 36 ftrace_errlog_check 'hist:sched:sched_process_fork' "$2" $trigger
|
H A D | trigger-traceonoff.tc | 13 echo 'traceoff' > events/sched/sched_process_fork/trigger 23 echo 'traceon' > events/sched/sched_process_fork/trigger 32 ! echo 'traceoff:badparam' > events/sched/sched_process_fork/trigger 33 ! echo 'traceoff+0' > events/sched/sched_process_fork/trigger 34 echo 'traceon' > events/sched/sched_process_fork/trigger 35 ! echo 'traceon' > events/sched/sched_process_fork/trigger 36 ! echo 'traceoff' > events/sched/sched_process_fork/trigger
|
H A D | trigger-stacktrace.tc | 11 FEATURE=`grep stacktrace events/sched/sched_process_fork/trigger` 20 echo 'stacktrace' > events/sched/sched_process_fork/trigger 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
|
/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 …]
|
/linux/drivers/vfio/fsl-mc/ |
H A D | vfio_fsl_mc_intr.c | 57 eventfd_signal(mc_irq->trigger); 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 …]
|
/linux/tools/perf/util/ |
H A D | trigger.h | 25 struct trigger { struct 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() 71 static inline void trigger_off(struct trigger *t) in trigger_off() 78 static inline void trigger_error(struct trigger *t) in trigger_error() 83 static inline bool trigger_is_ready(struct trigger *t) in trigger_is_ready() 88 static inline bool trigger_is_hit(struct trigger *t) in trigger_is_hit() [all …]
|
/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() 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() 321 if (!tevent->trigger) in trace_event_save_hist() 325 retval = strncmp(tevent->trigger, "hist:", strlen("hist:")); in trace_event_save_hist() 361 char trigger[1024]; in trace_event_disable_trigger() local [all …]
|
/linux/drivers/leds/trigger/ |
H A D | ledtrig-panic.c | 15 static struct led_trigger *trigger; variable 24 if (led_cdev->trigger) in led_trigger_set_panic() 26 list_add_tail(&led_cdev->trig_list, &trigger->led_cdevs); in led_trigger_set_panic() 32 led_cdev->trigger = trigger; in led_trigger_set_panic() 52 led_trigger_event(trigger, state ? LED_FULL : LED_OFF); in led_panic_blink() 58 led_trigger_register_simple("panic", &trigger); in ledtrig_panic_init() 59 if (!trigger) in ledtrig_panic_init()
|
/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 …]
|
/linux/Documentation/leds/ |
H A D | ledtrig-transient.rst | 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 42 echo 0 > brightness, it will result in deactivating the current trigger. [all …]
|
H A D | ledtrig-oneshot.rst | 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
|
/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 …]
|
H A D | sysfs-bus-iio-timer-stm32 | 10 used as trigger output (TRGO). 13 as trigger output. 15 The update event is selected as trigger output. 19 The trigger output send a positive pulse 22 OC1REF signal is used as trigger output. 24 OC2REF signal is used as trigger output. 26 OC3REF signal is used as trigger output. 28 OC4REF signal is used as trigger output. 33 OC5REF signal is used as trigger output. 35 OC6REF signal is used as trigger output. [all …]
|
/linux/include/linux/ |
H A D | leds.h | 184 struct led_trigger *trigger; member 516 int led_trigger_register(struct led_trigger *trigger); 517 void led_trigger_unregister(struct led_trigger *trigger); 519 struct led_trigger *trigger); 522 struct led_trigger **trigger); 523 void led_trigger_unregister_simple(struct led_trigger *trigger); 524 void led_trigger_event(struct led_trigger *trigger, enum led_brightness event); 528 void led_trigger_blink(struct led_trigger *trigger, unsigned long delay_on, 530 void led_trigger_blink_oneshot(struct led_trigger *trigger, 535 int led_trigger_set(struct led_classdev *led_cdev, struct led_trigger *trigger); [all …]
|
/linux/tools/testing/selftests/ftrace/test.d/trigger/inter-event/ |
H A D | trigger-inter-event-combined-hist.tc | 20 echo 'hist:keys=pid:ts0=common_timestamp.usecs if comm=="ping"' > events/sched/sched_waking/trigger 21 ….sched_waking).waking_latency($waking_lat,pid) if comm=="ping"' > events/sched/sched_wakeup/trigger 22 echo 'hist:keys=pid,lat:sort=pid,lat' > events/synthetic/waking_latency/trigger 25 echo 'hist:keys=pid:ts1=common_timestamp.usecs if comm=="ping"' >> events/sched/sched_wakeup/trigger 26 …eup).wakeup_latency($wakeup_lat,next_pid) if next_comm=="ping"' > events/sched/sched_switch/trigger 29 …wakeup_latency).waking_plus_wakeup_latency($ww_lat,pid)' >> events/synthetic/wakeup_latency/trigger 30 echo 'hist:keys=pid,lat:sort=pid,lat' >> events/synthetic/waking_plus_wakeup_latency/trigger
|
/linux/drivers/iio/trigger/ |
H A D | iio-trig-loop.c | 87 trig_info->swt.trigger = iio_trigger_alloc(NULL, "%s", name); in iio_trig_loop_probe() 88 if (!trig_info->swt.trigger) { in iio_trig_loop_probe() 93 iio_trigger_set_drvdata(trig_info->swt.trigger, trig_info); in iio_trig_loop_probe() 94 trig_info->swt.trigger->ops = &iio_loop_trigger_ops; in iio_trig_loop_probe() 96 ret = iio_trigger_register(trig_info->swt.trigger); in iio_trig_loop_probe() 105 iio_trigger_free(trig_info->swt.trigger); in iio_trig_loop_probe() 116 trig_info = iio_trigger_get_drvdata(swt->trigger); in iio_trig_loop_remove() 118 iio_trigger_unregister(swt->trigger); in iio_trig_loop_remove() 119 iio_trigger_free(swt->trigger); in iio_trig_loop_remove()
|
H A D | iio-trig-hrtimer.c | 105 iio_trigger_poll(info->swt.trigger); in iio_hrtimer_trig_handler() 138 trig_info->swt.trigger = iio_trigger_alloc(NULL, "%s", name); in iio_trig_hrtimer_probe() 139 if (!trig_info->swt.trigger) { in iio_trig_hrtimer_probe() 144 iio_trigger_set_drvdata(trig_info->swt.trigger, trig_info); in iio_trig_hrtimer_probe() 145 trig_info->swt.trigger->ops = &iio_hrtimer_trigger_ops; in iio_trig_hrtimer_probe() 146 trig_info->swt.trigger->dev.groups = iio_hrtimer_attr_groups; in iio_trig_hrtimer_probe() 154 ret = iio_trigger_register(trig_info->swt.trigger); in iio_trig_hrtimer_probe() 161 iio_trigger_free(trig_info->swt.trigger); in iio_trig_hrtimer_probe() 172 trig_info = iio_trigger_get_drvdata(swt->trigger); in iio_trig_hrtimer_remove() 174 iio_trigger_unregister(swt->trigger); in iio_trig_hrtimer_remove() [all …]
|
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. 33 This can be used as trigger source for STM32 internal ADC 37 module will be called stm32-lptimer-trigger. 46 module will be called stm32-timer-trigger. 49 tristate "A kthread based hammering loop trigger" 52 An experimental trigger, used to allow sensors to be sampled as fast 55 trigger consumers. [all …]
|
/linux/Documentation/devicetree/bindings/power/reset/ |
H A D | ltc2952-poweroff.txt | 3 This chip is used to externally trigger a system shut down. Once the trigger has 16 - trigger-gpios: phandle + gpio-specifier for the GPIO connected to the 17 chip's trigger line. If this property is not set, the 18 trigger function is ignored and the chip is kept alive 20 - trigger-delay-ms The number of milliseconds to wait after trigger line 29 trigger-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; 30 trigger-delay-ms = <2000>;
|
/linux/arch/arm/boot/dts/broadcom/ |
H A D | bcm47081-luxul-xwr-1200.dts | 39 linux,default-trigger = "default-on"; 45 linux,default-trigger = "none"; 51 linux,default-trigger = "none"; 57 linux,default-trigger = "none"; 63 linux,default-trigger = "none"; 69 trigger-sources = <&ohci_port2>, <&ehci_port2>; 70 linux,default-trigger = "usbport"; 76 linux,default-trigger = "timer"; 82 linux,default-trigger = "none"; 88 linux,default-trigger = "none"; [all …]
|
/linux/drivers/vfio/platform/ |
H A D | vfio_platform_irq.c | 145 if (likely(irq_ctx->trigger)) in vfio_send_eventfd() 146 eventfd_signal(irq_ctx->trigger); in vfio_send_eventfd() 186 struct eventfd_ctx *trigger; in vfio_set_trigger() local 188 if (irq->trigger) { in vfio_set_trigger() 190 eventfd_ctx_put(irq->trigger); in vfio_set_trigger() 191 irq->trigger = NULL; in vfio_set_trigger() 197 trigger = eventfd_ctx_fdget(fd); in vfio_set_trigger() 198 if (IS_ERR(trigger)) in vfio_set_trigger() 199 return PTR_ERR(trigger); in vfio_set_trigger() 201 irq->trigger = trigger; in vfio_set_trigger() [all …]
|
/linux/drivers/leds/ |
H A D | led-triggers.c | 99 led_cdev->trigger ? "none" : "[none]"); in led_trigger_format() 107 hit = led_cdev->trigger && !strcmp(led_cdev->trigger->name, trig->name); in led_trigger_format() 165 if (!led_cdev->trigger && !trig) in led_trigger_set() 172 if (led_cdev->trigger) { in led_trigger_set() 173 spin_lock(&led_cdev->trigger->leddev_list_lock); in led_trigger_set() 175 spin_unlock(&led_cdev->trigger->leddev_list_lock); in led_trigger_set() 182 device_remove_groups(led_cdev->dev, led_cdev->trigger->groups); in led_trigger_set() 183 if (led_cdev->trigger->deactivate) in led_trigger_set() 184 led_cdev->trigger->deactivate(led_cdev); in led_trigger_set() 185 led_cdev->trigger = NULL; in led_trigger_set() [all …]
|
/linux/arch/x86/kernel/acpi/ |
H A D | boot.c | 343 u8 trigger, u32 gsi); 345 static void __init mp_override_legacy_irq(u8 bus_irq, u8 polarity, u8 trigger, in mp_override_legacy_irq() argument 361 if ((bus_irq == 0) && (trigger == 3)) in mp_override_legacy_irq() 362 trigger = 1; in mp_override_legacy_irq() 364 if (mp_register_ioapic_irq(bus_irq, polarity, trigger, gsi) < 0) in mp_override_legacy_irq() 376 static void mp_config_acpi_gsi(struct device *dev, u32 gsi, int trigger, in mp_config_acpi_gsi() argument 399 mp_irq.irqflag = (trigger == ACPI_EDGE_SENSITIVE ? 4 : 0x0c) | in mp_config_acpi_gsi() 412 u8 trigger, u32 gsi) in mp_register_ioapic_irq() argument 428 mp_irq.irqflag = (trigger << 2) | polarity; in mp_register_ioapic_irq() 468 static void __init acpi_sci_ioapic_setup(u8 bus_irq, u16 polarity, u16 trigger, u32 gsi) in acpi_sci_ioapic_setup() argument [all …]
|