Home
last modified time | relevance | path

Searched refs:events (Results 1 - 25 of 2490) sorted by relevance

12345678910>>...100

/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/pmu/
H A Dcount_stcx_fail.c29 static int do_count_loop(struct event *events, u64 instructions, in do_count_loop() argument
43 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()
47 expected = instructions + overhead + (events[2].result.value * 10); in do_count_loop()
48 difference = events[0].result.value - expected; in do_count_loop()
49 percentage = (double)difference / events[0].result.value * 100; in do_count_loop()
53 event_report(&events[0]); in do_count_loop()
54 event_report(&events[1]); in do_count_loop()
55 event_report(&events[ in do_count_loop()
79 determine_overhead(struct event *events) determine_overhead() argument
104 struct event events[3]; test_body() local
[all...]
H A Dcount_instructions.c29 static int do_count_loop(struct event *events, u64 instructions, in do_count_loop() argument
42 event_read(&events[0]); in do_count_loop()
43 event_read(&events[1]); in do_count_loop()
46 difference = events[0].result.value - expected; in do_count_loop()
47 percentage = (double)difference / events[0].result.value * 100; in do_count_loop()
50 event_report(&events[0]); in do_count_loop()
51 event_report(&events[1]); in do_count_loop()
55 printf("Actual %llu\n", events[0].result.value); in do_count_loop()
59 event_reset(&events[0]); in do_count_loop()
60 event_reset(&events[ in do_count_loop()
74 determine_overhead(struct event *events) determine_overhead() argument
96 struct event events[2]; test_body() local
[all...]
H A Dper_event_excludes.c25 struct event *e, events[4]; in per_event_excludes() local
31 * We need to create the events disabled, otherwise the running/enabled in per_event_excludes()
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()
65 * and we're asking for the events to be in a group. in per_event_excludes()
68 FAIL_IF(event_open_with_group(&events[i], events[ in per_event_excludes()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/pmu/
H A Dcount_stcx_fail.c29 static int do_count_loop(struct event *events, u64 instructions, in do_count_loop() argument
43 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()
47 expected = instructions + overhead + (events[2].result.value * 10); in do_count_loop()
48 difference = events[0].result.value - expected; in do_count_loop()
49 percentage = (double)difference / events[0].result.value * 100; in do_count_loop()
53 event_report(&events[0]); in do_count_loop()
54 event_report(&events[1]); in do_count_loop()
55 event_report(&events[ in do_count_loop()
79 determine_overhead(struct event *events) determine_overhead() argument
104 struct event events[3]; test_body() local
[all...]
H A Dcount_instructions.c29 static int do_count_loop(struct event *events, u64 instructions, in do_count_loop() argument
42 event_read(&events[0]); in do_count_loop()
43 event_read(&events[1]); in do_count_loop()
46 difference = events[0].result.value - expected; in do_count_loop()
47 percentage = (double)difference / events[0].result.value * 100; in do_count_loop()
50 event_report(&events[0]); in do_count_loop()
51 event_report(&events[1]); in do_count_loop()
55 printf("Actual %llu\n", events[0].result.value); in do_count_loop()
59 event_reset(&events[0]); in do_count_loop()
60 event_reset(&events[ in do_count_loop()
74 determine_overhead(struct event *events) determine_overhead() argument
96 struct event events[2]; test_body() local
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/security/
H A Dspectre_v2.c25 static int do_count_loop(struct event *events, bool is_p9, s64 *miss_percent) in do_count_loop() argument
38 event_read(&events[0]); in do_count_loop()
39 event_read(&events[1]); in do_count_loop()
41 // We could scale all the events by running/enabled but we're lazy 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()
46 pred = events[0].result.value; in do_count_loop()
47 mpred = events[ in do_count_loop()
133 struct event events[4]; spectre_v2_test() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/security/
H A Dspectre_v2.c25 static int do_count_loop(struct event *events, bool is_p9, s64 *miss_percent) in do_count_loop() argument
38 event_read(&events[0]); in do_count_loop()
39 event_read(&events[1]); in do_count_loop()
41 // We could scale all the events by running/enabled but we're lazy 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()
46 pred = events[0].result.value; in do_count_loop()
47 mpred = events[ in do_count_loop()
131 struct event events[4]; spectre_v2_test() local
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
H A Devents.c15 /* General events handlers for the low level mlx5_core driver
17 * Other Major feature specific events such as
26 /* handler which forwards the event to events->nh, driver notifiers */
39 /* QP/WQ resource events to forward */
49 /* SRQ events */
60 /* port module events stats */
136 /* handles all FW events, type == eqe->type */
141 struct mlx5_events *events = event_nb->ctx; in any_notifier() local
144 mlx5_core_dbg(events->dev, "Async eqe type %s, subtype (%d)\n", in any_notifier()
153 struct mlx5_events *events in temp_warn() local
215 struct mlx5_events *events = event_nb->ctx; port_module() local
267 struct mlx5_events *events; mlx5_pcie_event() local
306 struct mlx5_events *events = event_nb->ctx; pcie_core() local
329 struct mlx5_events *events = event_nb->ctx; forward_event() local
340 struct mlx5_events *events = kzalloc(sizeof(*events), GFP_KERNEL); mlx5_events_init() local
366 struct mlx5_events *events = dev->priv.events; mlx5_events_start() local
378 struct mlx5_events *events = dev->priv.events; mlx5_events_stop() local
388 struct mlx5_events *events = dev->priv.events; mlx5_notifier_register() local
396 struct mlx5_events *events = dev->priv.events; mlx5_notifier_unregister() local
402 mlx5_notifier_call_chain(struct mlx5_events *events, unsigned int event, void *data) mlx5_notifier_call_chain() argument
[all...]
/kernel/linux/linux-5.10/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()
61 evt_sprintf(str, events & KOMEDA_EVENT_VSYNC, "VSYNC|"); in evt_str()
62 evt_sprintf(str, events & KOMEDA_EVENT_FLIP, "FLIP|"); in evt_str()
63 evt_sprintf(str, events & KOMEDA_EVENT_EOW, "EOW|"); in evt_str()
64 evt_sprintf(str, events & KOMEDA_EVENT_MODE, "OP-MODE|"); in evt_str()
66 evt_sprintf(str, events & KOMEDA_EVENT_URUN, "UNDERRUN|"); in evt_str()
67 evt_sprintf(str, events & KOMEDA_EVENT_OVR, "OVERRUN|"); in evt_str()
70 evt_sprintf(str, events & KOMEDA_ERR_MERR, "MERR|"); in evt_str()
71 evt_sprintf(str, events in evt_str()
[all...]
/kernel/linux/linux-6.6/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()
61 evt_sprintf(str, events & KOMEDA_EVENT_VSYNC, "VSYNC|"); in evt_str()
62 evt_sprintf(str, events & KOMEDA_EVENT_FLIP, "FLIP|"); in evt_str()
63 evt_sprintf(str, events & KOMEDA_EVENT_EOW, "EOW|"); in evt_str()
64 evt_sprintf(str, events & KOMEDA_EVENT_MODE, "OP-MODE|"); in evt_str()
66 evt_sprintf(str, events & KOMEDA_EVENT_URUN, "UNDERRUN|"); in evt_str()
67 evt_sprintf(str, events & KOMEDA_EVENT_OVR, "OVERRUN|"); in evt_str()
70 evt_sprintf(str, events & KOMEDA_ERR_MERR, "MERR|"); in evt_str()
71 evt_sprintf(str, events in evt_str()
[all...]
/kernel/linux/linux-6.6/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()
45 .events = "instructions,cycles", in test__pfm_events()
49 .events = "stereolab", in test__pfm_events()
53 .events = "instructions,instructions", in test__pfm_events()
57 .events = "stereolab,instructions", in test__pfm_events()
61 .events = "instructions,stereolab", in test__pfm_events()
73 table[i].events, in test__pfm_events()
75 TEST_ASSERT_EQUAL(table[i].events, in test__pfm_events()
94 const char *events; test__pfm_group() member
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/
H A Devents.c8 #include "lib/events.h"
15 /* General events handlers for the low level mlx5_core driver
17 * Other Major feature specific events such as
26 /* handler which forwards the event to events->fw_nh, driver notifiers */
40 /* QP/WQ resource events to forward */
50 /* SRQ events */
59 /* driver notifier chain for fw events */
61 /* port module events stats */
65 /* driver notifier chain for sw events */
143 /* handles all FW events, typ
148 struct mlx5_events *events = event_nb->ctx; any_notifier() local
160 struct mlx5_events *events = event_nb->ctx; temp_warn() local
222 struct mlx5_events *events = event_nb->ctx; port_module() local
274 struct mlx5_events *events; mlx5_pcie_event() local
313 struct mlx5_events *events = event_nb->ctx; pcie_core() local
336 struct mlx5_events *events = event_nb->ctx; forward_event() local
347 struct mlx5_events *events = kzalloc(sizeof(*events), GFP_KERNEL); mlx5_events_init() local
374 struct mlx5_events *events = dev->priv.events; mlx5_events_start() local
386 struct mlx5_events *events = dev->priv.events; mlx5_events_stop() local
399 struct mlx5_events *events = dev->priv.events; mlx5_notifier_register() local
407 struct mlx5_events *events = dev->priv.events; mlx5_notifier_unregister() local
413 mlx5_notifier_call_chain(struct mlx5_events *events, unsigned int event, void *data) mlx5_notifier_call_chain() argument
423 struct mlx5_events *events = dev->priv.events; mlx5_blocking_notifier_register() local
431 struct mlx5_events *events = dev->priv.events; mlx5_blocking_notifier_unregister() local
440 struct mlx5_events *events = dev->priv.events; mlx5_blocking_notifier_call_chain() local
[all...]
/kernel/linux/linux-5.10/lib/
H A Dflex_proportions.c14 * Where x_{i,j} is j's number of events in i-th last time period and x_i is
15 * total number of events in i-th last time period.
43 /* Use 1 to avoid dealing with periods with 0 events... */ in fprop_global_init()
44 err = percpu_counter_init(&p->events, 1, gfp); in fprop_global_init()
53 percpu_counter_destroy(&p->events); in fprop_global_destroy()
61 * if aging zeroed out all events. This can be used to detect whether declaring
66 s64 events; in fprop_new_period() local
70 events = percpu_counter_sum(&p->events); in fprop_new_period()
72 * Don't do anything if there are no events in fprop_new_period()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/pmu/event_code_tests/
H A Devent_alternatives_tests_p10.c27 struct event *e, events[5]; in event_alternatives_tests_p10() local
35 * alternative events is handled by respective PMU driver in event_alternatives_tests_p10()
47 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()
62 FAIL_IF(event_open(&events[0])); in event_alternatives_tests_p10()
66 * 0x600f4 in PMC6. So it can go in with other events in event_alternatives_tests_p10()
70 FAIL_IF(event_open_with_group(&events[ in event_alternatives_tests_p10()
[all...]
H A Dgroup_constraint_unit_test.c29 struct event *e, events[3]; in group_constraint_unit() local
40 /* Init the events for the group contraint check for unit bits */ in group_constraint_unit()
41 e = &events[0]; in group_constraint_unit()
45 FAIL_IF(!event_open(&events[0])); in group_constraint_unit()
47 /* Init the events for the group contraint check for unit bits */ 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[ in group_constraint_unit()
[all...]
H A Dgroup_constraint_pmc_count_test.c21 struct event *e, events[5]; in group_constraint_pmc_count() local
30 * events. Trying to open fourth event should in group_constraint_pmc_count()
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[ in group_constraint_pmc_count()
[all...]
/kernel/linux/linux-5.10/tools/perf/tests/
H A Dpfm.c26 .desc = "test of individual --pfm-events",
30 .desc = "test groups of --pfm-events",
53 const char *events; in test__pfm_events() member
57 .events = "", in test__pfm_events()
61 .events = "instructions", in test__pfm_events()
65 .events = "instructions,cycles", in test__pfm_events()
69 .events = "stereolab", in test__pfm_events()
73 .events = "instructions,instructions", in test__pfm_events()
77 .events = "stereolab,instructions", in test__pfm_events()
81 .events in test__pfm_events()
113 const char *events; test__pfm_group() member
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/hid/tests/
H A Dtest_apple_keyboard.py173 events = uhdev.next_sync_events()
174 self.debug_reports(r, uhdev, events)
175 self.assertInputEventsIn(expected, events)
182 events = uhdev.next_sync_events()
183 self.debug_reports(r, uhdev, events)
184 self.assertInputEventsIn(expected, events)
198 events = uhdev.next_sync_events()
199 self.debug_reports(r, uhdev, events)
200 self.assertInputEventsIn(expected, events)
206 events
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/pmu/ebb/
H A Dmulti_counter_test.c14 * Test counting multiple events using EBBs.
18 struct event events[6]; in multi_counter() local
23 event_init_named(&events[0], 0x1001C, "PM_CMPLU_STALL_THRD"); in multi_counter()
24 event_init_named(&events[1], 0x2D016, "PM_CMPLU_STALL_FXU"); in multi_counter()
25 event_init_named(&events[2], 0x30006, "PM_CMPLU_STALL_OTHER_CMPL"); in multi_counter()
26 event_init_named(&events[3], 0x4000A, "PM_CMPLU_STALL"); in multi_counter()
27 event_init_named(&events[4], 0x600f4, "PM_RUN_CYC"); in multi_counter()
28 event_init_named(&events[5], 0x500fa, "PM_RUN_INST_CMPL"); in multi_counter()
30 event_leader_ebb_init(&events[0]); in multi_counter()
32 event_ebb_init(&events[ in multi_counter()
[all...]
/kernel/linux/linux-5.10/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 in cx23885_ir_tx_work_handler()
63 cx23885_ir_rx_v4l2_dev_notify(struct v4l2_subdev *sd, u32 events) cx23885_ir_rx_v4l2_dev_notify() argument
88 cx23885_ir_tx_v4l2_dev_notify(struct v4l2_subdev *sd, u32 events) cx23885_ir_tx_v4l2_dev_notify() argument
[all...]
/kernel/linux/linux-6.6/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 in cx23885_ir_tx_work_handler()
63 cx23885_ir_rx_v4l2_dev_notify(struct v4l2_subdev *sd, u32 events) cx23885_ir_rx_v4l2_dev_notify() argument
88 cx23885_ir_tx_v4l2_dev_notify(struct v4l2_subdev *sd, u32 events) cx23885_ir_tx_v4l2_dev_notify() argument
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/pmu/ebb/
H A Dmulti_counter_test.c14 * Test counting multiple events using EBBs.
18 struct event events[6]; in multi_counter() local
23 event_init_named(&events[0], 0x1001C, "PM_CMPLU_STALL_THRD"); in multi_counter()
24 event_init_named(&events[1], 0x2D016, "PM_CMPLU_STALL_FXU"); in multi_counter()
25 event_init_named(&events[2], 0x30006, "PM_CMPLU_STALL_OTHER_CMPL"); in multi_counter()
26 event_init_named(&events[3], 0x4000A, "PM_CMPLU_STALL"); in multi_counter()
27 event_init_named(&events[4], 0x600f4, "PM_RUN_CYC"); in multi_counter()
28 event_init_named(&events[5], 0x500fa, "PM_RUN_INST_CMPL"); in multi_counter()
30 event_leader_ebb_init(&events[0]); in multi_counter()
32 event_ebb_init(&events[ in multi_counter()
[all...]
/kernel/linux/linux-6.6/drivers/power/supply/
H A Dab8500_chargalg.c214 * @events: structure for information about events triggered
239 struct ab8500_chargalg_events events; member
268 di->events.safety_timer_expired = true; in ab8500_chargalg_safety_timer_expired()
292 di->events.maintenance_timer_expired = true; in ab8500_chargalg_maintenance_timer_expired()
402 di->events.safety_timer_expired = false; in ab8500_chargalg_start_safety_timer()
418 di->events.safety_timer_expired = false; in ab8500_chargalg_stop_safety_timer()
437 di->events.maintenance_timer_expired = false; in ab8500_chargalg_start_maintenance_timer()
451 di->events.maintenance_timer_expired = false; in ab8500_chargalg_stop_maintenance_timer()
658 di->events in ab8500_chargalg_check_temp()
[all...]
/kernel/linux/linux-6.6/lib/
H A Dflex_proportions.c14 * Where x_{i,j} is j's number of events in i-th last time period and x_i is
15 * total number of events in i-th last time period.
43 /* Use 1 to avoid dealing with periods with 0 events... */ in fprop_global_init()
44 err = percpu_counter_init(&p->events, 1, gfp); in fprop_global_init()
53 percpu_counter_destroy(&p->events); in fprop_global_destroy()
61 * if aging zeroed out all events. This can be used to detect whether declaring
66 s64 events = percpu_counter_sum(&p->events); in fprop_new_period() local
69 * Don't do anything if there are no events. in fprop_new_period()
71 if (events < in fprop_new_period()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/filesystems/epoll/
H A Depoll_wakeup_test.c30 static inline int sys_epoll_pwait2(int fd, struct epoll_event *events, in sys_epoll_pwait2() argument
35 return syscall(__NR_epoll_pwait2, fd, events, maxevents, timeout, in sys_epoll_pwait2()
68 pfd.events = POLLIN; in waiter_entry1ap()
95 pfd.events = POLLIN; in waiter_entry1op()
106 struct epoll_event events[2]; in waiter_entry2a() local
109 if (epoll_wait(ctx->efd[0], events, 2, -1) > 0) in waiter_entry2a()
118 struct epoll_event events[2]; in waiter_entry2ap() local
122 pfd.events = POLLIN; in waiter_entry2ap()
124 if (epoll_wait(ctx->efd[0], events, 2, 0) > 0) in waiter_entry2ap()
174 e.events in TEST()
229 struct epoll_event events[2]; TEST() local
267 struct epoll_event events[2]; TEST() local
385 struct epoll_event events[2]; TEST() local
431 struct epoll_event events[2]; TEST() local
561 struct epoll_event events[2]; TEST() local
610 struct epoll_event events[2]; TEST() local
745 struct epoll_event events[2]; TEST() local
794 struct epoll_event events[2]; TEST() local
2472 struct epoll_event events[2]; TEST() local
2526 struct epoll_event events[2]; TEST() local
2581 struct epoll_event events[2]; TEST() local
2643 struct epoll_event events[2]; TEST() local
3318 struct epoll_event events[1]; epoll61_epoll_with_timeout() local
3337 struct epoll_event events[1]; epoll61_blocking_epoll() local
[all...]

Completed in 9 milliseconds

12345678910>>...100