Home
last modified time | relevance | path

Searched refs:events (Results 1 – 25 of 1351) sorted by relevance

12345678910>>...55

/linux/tools/testing/selftests/powerpc/pmu/
A Dcount_stcx_fail.c43 event_read(&events[0]); in do_count_loop()
44 event_read(&events[1]); in do_count_loop()
45 event_read(&events[2]); in do_count_loop()
53 event_report(&events[0]); in do_count_loop()
54 event_report(&events[1]); in do_count_loop()
63 event_reset(&events[0]); in do_count_loop()
64 event_reset(&events[1]); in do_count_loop()
65 event_reset(&events[2]); in do_count_loop()
104 struct event events[3]; in test_body() local
119 if (event_open_with_group(&events[1], events[0].fd)) { in test_body()
[all …]
A Dcount_instructions.c42 event_read(&events[0]); in do_count_loop()
43 event_read(&events[1]); in do_count_loop()
50 event_report(&events[0]); in do_count_loop()
51 event_report(&events[1]); in do_count_loop()
59 event_reset(&events[0]); in do_count_loop()
60 event_reset(&events[1]); in do_count_loop()
96 struct event events[2]; in test_body() local
102 if (event_open(&events[0])) { in test_body()
107 if (event_open_with_group(&events[1], events[0].fd)) { in test_body()
133 event_close(&events[0]); in test_body()
[all …]
A Dper_event_excludes.c25 struct event *e, events[4]; in per_event_excludes() local
34 e = &events[0]; in per_event_excludes()
39 e = &events[1]; in per_event_excludes()
46 e = &events[2]; in per_event_excludes()
53 e = &events[3]; in per_event_excludes()
60 FAIL_IF(event_open(&events[0])); in per_event_excludes()
68 FAIL_IF(event_open_with_group(&events[i], events[0].fd)); in per_event_excludes()
84 event_report(&events[i]); in per_event_excludes()
92 FAIL_IF(events[i].result.running != events[i].result.enabled); in per_event_excludes()
100 FAIL_IF(events[0].result.value < events[i].result.value); in per_event_excludes()
[all …]
/linux/tools/testing/selftests/powerpc/security/
A Dspectre_v2.c38 event_read(&events[0]); in do_count_loop()
39 event_read(&events[1]); in do_count_loop()
43 FAIL_IF(events[0].result.running != events[0].result.enabled); in do_count_loop()
44 FAIL_IF(events[1].result.running != events[1].result.enabled); in do_count_loop()
50 event_read(&events[2]); in do_count_loop()
52 FAIL_IF(events[2].result.running != events[2].result.enabled); in do_count_loop()
53 FAIL_IF(events[3].result.running != events[3].result.enabled); in do_count_loop()
146 memset(events, 0, sizeof(events)); in spectre_v2_test()
151 FAIL_IF(event_open_with_group(&events[1], events[0].fd) == -1); in spectre_v2_test()
160 FAIL_IF(event_open_with_group(&events[2], events[0].fd) == -1); in spectre_v2_test()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Devents.c315 queue_work(events->wq, &events->pcie_core_work); in pcie_core()
346 if (!events) in mlx5_events_init()
351 dev->priv.events = events; in mlx5_events_init()
371 struct mlx5_events *events = dev->priv.events; in mlx5_events_start() local
376 events->notifiers[i].ctx = events; in mlx5_events_start()
383 struct mlx5_events *events = dev->priv.events; in mlx5_events_stop() local
396 struct mlx5_events *events = dev->priv.events; in mlx5_notifier_register() local
404 struct mlx5_events *events = dev->priv.events; in mlx5_notifier_unregister() local
420 struct mlx5_events *events = dev->priv.events; in mlx5_blocking_notifier_register() local
427 struct mlx5_events *events = dev->priv.events; in mlx5_blocking_notifier_unregister() local
[all …]
/linux/drivers/gpu/drm/arm/display/komeda/
A Dkomeda_event.c54 static void evt_str(struct komeda_str *str, u64 events) in evt_str() argument
56 if (events == 0ULL) { in evt_str()
63 evt_sprintf(str, events & KOMEDA_EVENT_EOW, "EOW|"); in evt_str()
70 evt_sprintf(str, events & KOMEDA_ERR_MERR, "MERR|"); in evt_str()
76 evt_sprintf(str, events & KOMEDA_ERR_TETO, "TETO|"); in evt_str()
77 evt_sprintf(str, events & KOMEDA_ERR_CSCE, "CSCE|"); in evt_str()
83 evt_sprintf(str, events & KOMEDA_ERR_AXIE, "AXIE|"); in evt_str()
84 evt_sprintf(str, events & KOMEDA_ERR_ACE0, "ACE0|"); in evt_str()
90 evt_sprintf(str, events & KOMEDA_ERR_TCF, "TCF|"); in evt_str()
94 evt_sprintf(str, events & KOMEDA_ERR_TTF, "TTF|"); in evt_str()
[all …]
/linux/tools/perf/tests/
A Dpfm.c33 const char *events; in test__pfm_events() member
37 .events = "", in test__pfm_events()
41 .events = "instructions", in test__pfm_events()
49 .events = "stereolab", in test__pfm_events()
73 table[i].events, in test__pfm_events()
94 const char *events; in test__pfm_group() member
99 .events = "{},", in test__pfm_group()
129 .events = "{stereolab}", in test__pfm_group()
134 .events = in test__pfm_group()
140 .events = "instructions}", in test__pfm_group()
[all …]
/linux/lib/
A Dflex_proportions.c53 percpu_counter_destroy(&p->events); in fprop_global_destroy()
66 s64 events; in fprop_new_period() local
70 events = percpu_counter_sum(&p->events); in fprop_new_period()
74 if (events <= 1) { in fprop_new_period()
80 events -= events >> periods; in fprop_new_period()
82 percpu_counter_add(&p->events, -events); in fprop_new_period()
96 pl->events = 0; in fprop_local_init_single()
125 pl->events = 0; in fprop_reflect_period_single()
134 pl->events++; in __fprop_inc_single()
135 percpu_counter_add(&p->events, 1); in __fprop_inc_single()
[all …]
/linux/tools/testing/selftests/ftrace/test.d/trigger/
A Dtrigger-filter.tc14 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
29 echo 'traceoff if common_pid <= 0' > events/sched/sched_process_fork/trigger
30 echo '!traceoff' > events/sched/sched_process_fork/trigger
32 echo '!traceoff' > events/sched/sched_process_fork/trigger
34 echo '!traceoff' > events/sched/sched_process_fork/trigger
[all …]
A Dtrigger-eventonoff.tc12 FEATURE=`grep enable_event events/sched/sched_process_fork/trigger`
19 echo 0 > events/sched/sched_switch/enable
20 echo 'enable_event:sched:sched_switch' > events/sched/sched_process_fork/trigger
22 if [ `cat events/sched/sched_switch/enable` != '1*' ]; then
29 echo 1 > events/sched/sched_switch/enable
30 echo 'disable_event:sched:sched_switch' > events/sched/sched_process_fork/trigger
32 if [ `cat events/sched/sched_switch/enable` != '0*' ]; then
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
[all …]
A Dtrigger-hist.tc14 echo 'hist:keys=parent_pid:vals=child_pid' > events/sched/sched_process_fork/trigger
16 grep parent_pid events/sched/sched_process_fork/hist > /dev/null || \
18 grep child events/sched/sched_process_fork/hist > /dev/null || \
25 echo 'hist:keys=parent_pid,child_pid' > events/sched/sched_process_fork/trigger
27 grep '^{ parent_pid:.*, child_pid:.*}' events/sched/sched_process_fork/hist > /dev/null || \
34 echo 'hist:keys=parent_comm' > events/sched/sched_process_fork/trigger
37 grep "parent_comm: $COMM" events/sched/sched_process_fork/hist > /dev/null || \
44 echo 'hist:keys=call_site.sym' > events/kmem/kmalloc/trigger
53 echo 'hist:keys=call_site.sym-offset' > events/kmem/kmalloc/trigger
62 echo 'hist:keys=parent_pid,child_pid:sort=child_pid.ascending' > events/sched/sched_process_fork/tr…
[all …]
A Dtrigger-multihist.tc14 echo 'hist:keys=parent_pid:vals=child_pid' > events/sched/sched_process_fork/trigger
15 echo 'hist:keys=parent_comm:vals=child_pid' >> events/sched/sched_process_fork/trigger
17 grep parent_pid events/sched/sched_process_fork/hist > /dev/null || \
19 grep child events/sched/sched_process_fork/hist > /dev/null || \
22 grep "parent_comm: $COMM" events/sched/sched_process_fork/hist > /dev/null || \
29 echo 'hist:name=test_hist:keys=common_pid' > events/sched/sched_process_fork/trigger
31 grep test_hist events/sched/sched_process_fork/hist > /dev/null || \
36 echo 'hist:name=test_hist:keys=common_pid' > events/sched/sched_process_exit/trigger
38 grep test_hist events/sched/sched_process_exit/hist > /dev/null || \
41 diffs=`diff events/sched/sched_process_exit/hist events/sched/sched_process_fork/hist | wc -l`
/linux/tools/testing/selftests/filesystems/epoll/
A Depoll_wakeup_test.c237 events[0].events = EPOLLIN; in TEST()
240 events[0].events = EPOLLIN; in TEST()
393 events[0].events = EPOLLIN; in TEST()
396 events[0].events = EPOLLIN; in TEST()
572 events[0].events = EPOLLIN; in TEST()
575 events[0].events = EPOLLIN; in TEST()
756 events[0].events = EPOLLIN; in TEST()
759 events[0].events = EPOLLIN; in TEST()
2486 events[0].events = EPOLLIN; in TEST()
2489 events[0].events = EPOLLIN; in TEST()
[all …]
/linux/tools/testing/selftests/powerpc/pmu/ebb/
A Dmulti_counter_test.c18 struct event events[6]; in multi_counter() local
27 event_init_named(&events[4], 0x600f4, "PM_RUN_CYC"); in multi_counter()
30 event_leader_ebb_init(&events[0]); in multi_counter()
32 event_ebb_init(&events[i]); in multi_counter()
36 events[i].attr.exclude_kernel = 1; in multi_counter()
37 events[i].attr.exclude_hv = 1; in multi_counter()
38 events[i].attr.exclude_idle = 1; in multi_counter()
40 FAIL_IF(event_open_with_group(&events[i], group_fd)); in multi_counter()
42 group_fd = events[0].fd; in multi_counter()
54 FAIL_IF(event_read(&events[0])); in multi_counter()
[all …]
/linux/drivers/media/pci/cx23885/
A Dcx23885-ir.c28 u32 events = 0; in cx23885_ir_rx_work_handler() local
32 events |= V4L2_SUBDEV_IR_RX_SW_FIFO_OVERRUN; in cx23885_ir_rx_work_handler()
34 events |= V4L2_SUBDEV_IR_RX_HW_FIFO_OVERRUN; in cx23885_ir_rx_work_handler()
36 events |= V4L2_SUBDEV_IR_RX_END_OF_RX_DETECTED; in cx23885_ir_rx_work_handler()
38 events |= V4L2_SUBDEV_IR_RX_FIFO_SERVICE_REQ; in cx23885_ir_rx_work_handler()
40 if (events == 0) in cx23885_ir_rx_work_handler()
44 cx23885_input_rx_work_handler(dev, events); in cx23885_ir_rx_work_handler()
51 u32 events = 0; in cx23885_ir_tx_work_handler() local
55 events |= V4L2_SUBDEV_IR_TX_FIFO_SERVICE_REQ; in cx23885_ir_tx_work_handler()
57 if (events == 0) in cx23885_ir_tx_work_handler()
[all …]
/linux/tools/testing/selftests/ftrace/test.d/dynevent/
A Dadd_remove_eprobe.tc6 echo 0 > events/enable
18 test -d events/eprobes/$EPROBE
38 ! test -d events/eprobes/$EPROBE
45 test -d events/eprobes/$EPROBE
48 ! test -d events/eprobes/$EPROBE
53 test -d events/eprobes/$EPROBE
56 ! test -d events/eprobes/$EPROBE
61 test -d events/eprobes/$EPROBE
69 test -d events/eprobes/$EPROBE
77 test -d events/eprobes/$EPROBE
[all …]
/linux/tools/perf/Documentation/
A Ditrace.txt1 i synthesize instructions events
3 c synthesize branches events (calls only)
5 x synthesize transactions events
6 w synthesize ptwrite events
7 p synthesize power events (incl. PSB events for Intel PT)
10 e synthesize error events
13 m synthesize last level cache events
14 M synthesize memory events
15 t synthesize TLB events
16 a synthesize remote access events
[all …]
/linux/Documentation/ABI/testing/
A Dsysfs-bus-iio87 buffered samples and events for device X.
903 against for the events enabled by
914 What: /sys/.../events/in_accel_scale
915 What: /sys/.../events/in_accel_peak_scale
916 What: /sys/.../events/in_anglvel_scale
917 What: /sys/.../events/in_magn_scale
920 What: /sys/.../events/in_voltage_scale
922 What: /sys/.../events/in_temp_scale
924 What: /sys/.../events/in_proximity_scale
987 against for the events enabled by
[all …]
/linux/drivers/power/supply/
A Dab8500_chargalg.c795 di->events.usb_cv_active || di->events.ac_cv_active) && in ab8500_chargalg_end_of_charge()
1350 else if (di->events.mainextchnotok || di->events.usbchargernotok) { in ab8500_chargalg_algorithm()
1361 di->events.main_ovv || in ab8500_chargalg_algorithm()
1362 di->events.batt_ovv || in ab8500_chargalg_algorithm()
1411 di->events.ac_cv_active, in ab8500_chargalg_algorithm()
1412 di->events.usb_cv_active, in ab8500_chargalg_algorithm()
1453 if (!di->events.batt_rem) in ab8500_chargalg_algorithm()
1474 if (!di->events.vbus_ovv && in ab8500_chargalg_algorithm()
1475 !di->events.main_ovv && in ab8500_chargalg_algorithm()
1476 !di->events.batt_ovv && in ab8500_chargalg_algorithm()
[all …]
/linux/arch/m68k/mac/
A Dvia.c388 if (!events) in via1_irq()
393 if (events & irq_bit) { in via1_irq()
401 events &= ~irq_bit; in via1_irq()
402 if (!events) in via1_irq()
409 if (events & irq_bit) { in via1_irq()
424 if (!events) in via2_irq()
451 events &= via2[rSIER]; in via_nubus_irq()
454 if (!events) in via_nubus_irq()
462 events &= ~slot_bit; in via_nubus_irq()
467 } while (events); in via_nubus_irq()
[all …]
/linux/tools/testing/selftests/ftrace/test.d/trigger/inter-event/
A Dtrigger-synthetic-eprobe.tc6 echo 0 > events/enable
18 echo "hist:keys=common_pid:__arg__1=$FIELD" > events/$SYSTEM/$START/trigger
19 …arg__1,ret=ret:onmatch($SYSTEM.$START).trace($SYNTH,\$filename,\$ret)" > events/$SYSTEM/$END/trigg…
25 test -d events/synthetic/$SYNTH
26 test -d events/eprobes/$EPROBE
28 echo 1 > events/eprobes/$EPROBE/enable
30 echo 0 > events/eprobes/$EPROBE/enable
44 …arg__1,ret=ret:onmatch($SYSTEM.$START).trace($SYNTH,\$filename,\$ret)" > events/$SYSTEM/$END/trigg…
45 echo '!'"hist:keys=common_pid:__arg__1=$FIELD" > events/$SYSTEM/$START/trigger
50 ! test -d events/synthetic/$SYNTH
[all …]
A Dtrigger-inter-event-combined-hist.tc14 if [ ! -d events/synthetic/waking_latency ]; then
20 echo 'hist:keys=pid:ts0=common_timestamp.usecs if comm=="ping"' > events/sched/sched_waking/trigger
21 …h(sched.sched_waking).waking_latency($waking_lat,pid) if comm=="ping"' > events/sched/sched_wakeup…
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 …hed_wakeup).wakeup_latency($wakeup_lat,next_pid) if next_comm=="ping"' > events/sched/sched_switch…
29 …ch(synthetic.wakeup_latency).waking_plus_wakeup_latency($ww_lat,pid)' >> events/synthetic/wakeup_l…
30 echo 'hist:keys=pid,lat:sort=pid,lat' >> events/synthetic/waking_plus_wakeup_latency/trigger
33 if ! grep -q "pid:" events/synthetic/waking_plus_wakeup_latency/hist; then
/linux/tools/perf/pmu-events/
A DBuild5 pmu-events-y += pmu-events.o
6 JDIR = pmu-events/arch/$(SRCARCH)
9 JDIR_TEST = pmu-events/arch/test
14 # Locate/process JSON files in pmu-events/arch/
15 # directory and create tables in pmu-events.c.
17 $(OUTPUT)pmu-events/pmu-events.c: $(JSON) $(JSON_TEST) $(JEVENTS)
18 $(Q)$(call echo-cmd,gen)$(JEVENTS) $(SRCARCH) pmu-events/arch $(OUTPUT)pmu-events/pmu-events.c $(V)
A DREADME9 tree tools/perf/pmu-events/arch/foo.
12 JSON files, each of which describes a set of PMU events.
21 events", defined in architecture standard JSONs.
33 $ ls tools/perf/pmu-events/arch/x86/silvermont
42 'pmu-events.c', which encodes the two sets of tables:
62 'PMU events table'
81 to a single 'PMU events table'.
84 and the generated 'pmu-events.c' defines this table.
90 matching events table and builds aliases for those events. This allows
91 users to specify events by their name:
[all …]
/linux/block/
A Ddisk-events.c177 if (events & disk->events & (1 << i)) in disk_event_uevent()
189 unsigned int events; in disk_check_events() local
198 events &= ~ev->pending; in disk_check_events()
199 ev->pending |= events; in disk_check_events()
209 if (events & DISK_EVENT_MEDIA_CHANGE) in disk_check_events()
213 disk_event_uevent(disk, events); in disk_check_events()
277 unsigned int events; in bdev_check_media_change() local
281 if (!(events & DISK_EVENT_MEDIA_CHANGE)) in bdev_check_media_change()
305 disk_event_uevent(disk, events); in disk_force_media_change()
307 if (!(events & DISK_EVENT_MEDIA_CHANGE)) in disk_force_media_change()
[all …]

Completed in 37 milliseconds

12345678910>>...55