Home
last modified time | relevance | path

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

12345678910>>...67

/openbmc/linux/tools/testing/selftests/powerpc/pmu/
H 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 …]
H 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 …]
H 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 …]
/openbmc/linux/tools/testing/selftests/powerpc/security/
H 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()
144 memset(events, 0, sizeof(events)); in spectre_v2_test()
149 FAIL_IF(event_open_with_group(&events[1], events[0].fd) == -1); in spectre_v2_test()
158 FAIL_IF(event_open_with_group(&events[2], events[0].fd) == -1); in spectre_v2_test()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Devents.c318 queue_work(events->wq, &events->pcie_core_work); in pcie_core()
349 if (!events) in mlx5_events_init()
354 dev->priv.events = events; in mlx5_events_init()
374 struct mlx5_events *events = dev->priv.events; in mlx5_events_start() local
379 events->notifiers[i].ctx = events; in mlx5_events_start()
386 struct mlx5_events *events = dev->priv.events; in mlx5_events_stop() local
399 struct mlx5_events *events = dev->priv.events; in mlx5_notifier_register() local
407 struct mlx5_events *events = dev->priv.events; in mlx5_notifier_unregister() local
423 struct mlx5_events *events = dev->priv.events; in mlx5_blocking_notifier_register() local
431 struct mlx5_events *events = dev->priv.events; in mlx5_blocking_notifier_unregister() local
[all …]
/openbmc/linux/tools/perf/tests/
H 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 …]
/openbmc/linux/drivers/gpu/drm/arm/display/komeda/
H 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 …]
/openbmc/linux/tools/testing/selftests/powerpc/pmu/event_code_tests/
H A Devent_alternatives_tests_p10.c47 e = &events[0]; in event_alternatives_tests_p10()
50 e = &events[1]; in event_alternatives_tests_p10()
53 e = &events[2]; in event_alternatives_tests_p10()
56 e = &events[3]; in event_alternatives_tests_p10()
59 e = &events[4]; in event_alternatives_tests_p10()
70 FAIL_IF(event_open_with_group(&events[i], events[0].fd)); in event_alternatives_tests_p10()
75 e = &events[0]; in event_alternatives_tests_p10()
78 e = &events[1]; in event_alternatives_tests_p10()
81 e = &events[2]; in event_alternatives_tests_p10()
84 e = &events[3]; in event_alternatives_tests_p10()
[all …]
H A Dgroup_constraint_unit_test.c29 struct event *e, events[3]; in group_constraint_unit() local
41 e = &events[0]; in group_constraint_unit()
45 FAIL_IF(!event_open(&events[0])); in group_constraint_unit()
48 e = &events[1]; in group_constraint_unit()
52 FAIL_IF(event_open(&events[1])); in group_constraint_unit()
55 e = &events[2]; in group_constraint_unit()
59 FAIL_IF(!event_open_with_group(&events[2], events[0].fd)); in group_constraint_unit()
62 FAIL_IF(event_open_with_group(&events[2], events[1].fd)); in group_constraint_unit()
64 event_close(&events[0]); in group_constraint_unit()
65 event_close(&events[1]); in group_constraint_unit()
[all …]
H A Dgroup_constraint_pmc_count_test.c21 struct event *e, events[5]; in group_constraint_pmc_count() local
33 e = &events[0]; in group_constraint_pmc_count()
36 e = &events[1]; in group_constraint_pmc_count()
39 e = &events[2]; in group_constraint_pmc_count()
42 e = &events[3]; in group_constraint_pmc_count()
45 e = &events[4]; in group_constraint_pmc_count()
48 FAIL_IF(event_open(&events[0])); in group_constraint_pmc_count()
56 FAIL_IF(!event_open_with_group(&events[i], events[0].fd)); in group_constraint_pmc_count()
58 FAIL_IF(event_open_with_group(&events[i], events[0].fd)); in group_constraint_pmc_count()
62 event_close(&events[i]); in group_constraint_pmc_count()
/openbmc/linux/tools/testing/selftests/hid/tests/
H A Dtest_apple_keyboard.py173 events = uhdev.next_sync_events()
182 events = uhdev.next_sync_events()
198 events = uhdev.next_sync_events()
206 events = uhdev.next_sync_events()
215 events = uhdev.next_sync_events()
230 events = uhdev.next_sync_events()
238 events = uhdev.next_sync_events()
245 events = uhdev.next_sync_events()
261 events = uhdev.next_sync_events()
269 events = uhdev.next_sync_events()
[all …]
H A Dtest_mouse.py708 events = uhdev.next_sync_events()
717 events = uhdev.next_sync_events()
728 events = uhdev.next_sync_events()
761 events = uhdev.next_sync_events()
772 events = uhdev.next_sync_events()
783 events = uhdev.next_sync_events()
797 events = uhdev.next_sync_events()
841 events = uhdev.next_sync_events()
850 events = uhdev.next_sync_events()
869 events = uhdev.next_sync_events()
[all …]
H A Dtest_sony.py46 self.debug_reports(r, uhdev, events)
57 self.debug_reports(r, uhdev, events)
66 self.debug_reports(r, uhdev, events)
79 self.debug_reports(r, uhdev, events)
90 self.debug_reports(r, uhdev, events)
146 self.debug_reports(r, uhdev, events)
156 self.debug_reports(r, uhdev, events)
174 self.debug_reports(r, uhdev, events)
185 self.debug_reports(r, uhdev, events)
204 self.debug_reports(r, uhdev, events)
[all …]
H A Dtest_keyboard.py393 events = uhdev.next_sync_events()
394 self.debug_reports(r, uhdev, events)
409 events = uhdev.next_sync_events()
410 self.debug_reports(r, uhdev, events)
439 events = uhdev.next_sync_events()
441 self.debug_reports(r, uhdev, events)
459 events = uhdev.next_sync_events()
461 self.debug_reports(r, uhdev, events)
463 assert len(events) == 0
473 events = uhdev.next_sync_events()
[all …]
/openbmc/linux/tools/testing/selftests/ftrace/test.d/trigger/
H 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 …]
H 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 …]
H 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 …]
/openbmc/linux/tools/testing/selftests/powerpc/pmu/ebb/
H 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 …]
/openbmc/linux/drivers/media/pci/cx23885/
H 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 …]
/openbmc/linux/tools/testing/selftests/ftrace/test.d/dynevent/
H 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
53 test -d events/eprobes/$EPROBE
61 test -d events/eprobes/$EPROBE
69 test -d events/eprobes/$EPROBE
77 test -d events/eprobes/$EPROBE
85 test -d events/eprobes/$EPROBE
92 test -d events/mygroup
[all …]
/openbmc/linux/tools/perf/pmu-events/
H A DBuild1 pmu-events-y += pmu-events.o
2 JDIR = pmu-events/arch/$(SRCARCH)
5 JDIR_TEST = pmu-events/arch/test
8 JEVENTS_PY = pmu-events/jevents.py
9 METRIC_PY = pmu-events/metric.py
10 METRIC_TEST_PY = pmu-events/metric_test.py
11 EMPTY_PMU_EVENTS_C = pmu-events/empty-pmu-events.c
12 PMU_EVENTS_C = $(OUTPUT)pmu-events/pmu-events.c
21 # Locate/process JSON files in pmu-events/arch/
22 # directory and create tables in pmu-events.c.
[all …]
/openbmc/linux/lib/
H A Dflex_proportions.c53 percpu_counter_destroy(&p->events); in fprop_global_destroy()
66 s64 events = percpu_counter_sum(&p->events); in fprop_new_period() local
71 if (events <= 1) in fprop_new_period()
76 events -= events >> periods; in fprop_new_period()
78 percpu_counter_add(&p->events, -events); in fprop_new_period()
92 pl->events = 0; in fprop_local_init_single()
119 pl->events >>= period - pl->period; in fprop_reflect_period_single()
121 pl->events = 0; in fprop_reflect_period_single()
130 pl->events++; in __fprop_inc_single()
131 percpu_counter_add(&p->events, 1); in __fprop_inc_single()
[all …]
/openbmc/linux/drivers/power/supply/
H A Dab8500_chargalg.c730 di->events.usb_cv_active || di->events.ac_cv_active) && in ab8500_chargalg_end_of_charge()
1280 else if (di->events.mainextchnotok || di->events.usbchargernotok) { in ab8500_chargalg_algorithm()
1291 di->events.main_ovv || in ab8500_chargalg_algorithm()
1292 di->events.batt_ovv || in ab8500_chargalg_algorithm()
1318 else if (di->events.btemp_low || di->events.btemp_high) { in ab8500_chargalg_algorithm()
1341 di->events.ac_cv_active, in ab8500_chargalg_algorithm()
1342 di->events.usb_cv_active, in ab8500_chargalg_algorithm()
1366 if (!di->events.batt_rem) in ab8500_chargalg_algorithm()
1388 !di->events.main_ovv && in ab8500_chargalg_algorithm()
1389 !di->events.batt_ovv && in ab8500_chargalg_algorithm()
[all …]
/openbmc/linux/tools/testing/selftests/filesystems/epoll/
H 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 …]
/openbmc/openbmc/meta-phosphor/recipes-phosphor/trace-enable/trace-enable/
H A Dtrace-enable4 events=""
10 if [ -n "${events}" ]
12 events="${events},${line}"
14 events="${line}"
19 if [ -n "${events}" ]
21 events="trace_events=${events}"
22 fw_setenv trace_args "${events}"

12345678910>>...67