/linux-6.6.21/tools/testing/selftests/powerpc/pmu/ |
D | count_stcx_fail.c | 29 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[2]); in do_count_loop() [all …]
|
D | count_instructions.c | 29 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[1]); in do_count_loop() [all …]
|
D | per_event_excludes.c | 25 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() 83 FAIL_IF(event_read(&events[i])); 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() [all …]
|
/linux-6.6.21/tools/testing/selftests/powerpc/security/ |
D | spectre_v2.c | 25 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() 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[1].result.value; in do_count_loop() 50 event_read(&events[2]); in do_count_loop() 51 event_read(&events[3]); in do_count_loop() 52 FAIL_IF(events[2].result.running != events[2].result.enabled); in do_count_loop() [all …]
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/ |
D | events.c | 148 struct mlx5_events *events = event_nb->ctx; in any_notifier() local 151 mlx5_core_dbg(events->dev, "Async eqe type %s, subtype (%d)\n", in any_notifier() 160 struct mlx5_events *events = event_nb->ctx; in temp_warn() local 168 mlx5_core_warn(events->dev, in temp_warn() 222 struct mlx5_events *events = event_nb->ctx; in port_module() local 238 events->pme_stats.status_counters[module_status]++; in port_module() 242 events->pme_stats.error_counters[error_type]++; in port_module() 252 mlx5_core_err(events->dev, in port_module() 256 mlx5_core_info(events->dev, in port_module() 274 struct mlx5_events *events; in mlx5_pcie_event() local [all …]
|
/linux-6.6.21/drivers/gpu/drm/arm/display/komeda/ |
D | komeda_event.c | 54 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 & KOMEDA_ERR_FRAMETO, "FRAMETO|"); in evt_str() [all …]
|
/linux-6.6.21/tools/perf/tests/ |
D | pfm.c | 33 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() [all …]
|
/linux-6.6.21/tools/testing/selftests/powerpc/pmu/event_code_tests/ |
D | event_alternatives_tests_p10.c | 27 struct event *e, events[5]; in event_alternatives_tests_p10() local 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() 70 FAIL_IF(event_open_with_group(&events[i], events[0].fd)); in event_alternatives_tests_p10() 73 event_close(&events[i]); in event_alternatives_tests_p10() 75 e = &events[0]; in event_alternatives_tests_p10() [all …]
|
D | group_constraint_unit_test.c | 29 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 …]
|
D | group_constraint_pmc_count_test.c | 21 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()
|
/linux-6.6.21/tools/testing/selftests/hid/tests/ |
D | test_apple_keyboard.py | 173 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 = uhdev.next_sync_events() [all …]
|
D | test_mouse.py | 549 events = uhdev.next_sync_events() 550 self.debug_reports(r, uhdev, events) 551 self.assertInputEventsIn((syn_event, expected_event), events) 556 events = uhdev.next_sync_events() 557 self.debug_reports(r, uhdev, events) 558 self.assertInputEventsIn((syn_event, expected_event), events) 563 events = uhdev.next_sync_events() 564 self.debug_reports(r, uhdev, events) 565 self.assertInputEventsIn((syn_event, expected_event), events) 570 events = uhdev.next_sync_events() [all …]
|
D | test_sony.py | 45 events = uhdev.next_sync_events("Accelerometer") 46 self.debug_reports(r, uhdev, events) 48 assert libevdev.InputEvent(libevdev.EV_ABS.ABS_X) in events 56 events = uhdev.next_sync_events("Accelerometer") 57 self.debug_reports(r, uhdev, events) 59 assert libevdev.InputEvent(libevdev.EV_ABS.ABS_Y) in events 65 events = uhdev.next_sync_events("Accelerometer") 66 self.debug_reports(r, uhdev, events) 68 assert libevdev.InputEvent(libevdev.EV_ABS.ABS_Z) in events 78 events = uhdev.next_sync_events("Accelerometer") [all …]
|
D | test_keyboard.py | 272 events = uhdev.next_sync_events() 273 self.debug_reports(r, uhdev, events) 274 self.assertInputEventsIn(expected, events) 280 events = uhdev.next_sync_events() 281 self.debug_reports(r, uhdev, events) 282 self.assertInputEventsIn(expected, events) 294 events = uhdev.next_sync_events() 295 self.debug_reports(r, uhdev, events) 296 self.assertInputEventsIn(expected, events) 303 events = uhdev.next_sync_events() [all …]
|
D | test_gamepad.py | 28 events = uhdev.next_sync_events() 29 self.debug_reports(r, uhdev, events) 42 events = uhdev.next_sync_events() 43 self.debug_reports(r, uhdev, events) 44 self.assertInputEventsIn((syn_event, expected_event), events) 50 events = uhdev.next_sync_events() 51 self.debug_reports(r, uhdev, events) 52 self.assertInputEventsIn((syn_event, expected_event), events) 78 events = uhdev.next_sync_events() 79 self.debug_reports(r, uhdev, events) [all …]
|
/linux-6.6.21/tools/testing/selftests/ftrace/test.d/trigger/ |
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 …]
|
D | trigger-eventonoff.tc | 12 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 …]
|
/linux-6.6.21/tools/testing/selftests/powerpc/pmu/ebb/ |
D | multi_counter_test.c | 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[i]); in multi_counter() 36 events[i].attr.exclude_kernel = 1; in multi_counter() [all …]
|
/linux-6.6.21/drivers/media/pci/cx23885/ |
D | cx23885-ir.c | 28 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-6.6.21/tools/testing/selftests/ftrace/test.d/dynevent/ |
D | add_remove_eprobe.tc | 6 echo 0 > events/enable 18 test -d events/eprobes/$EPROBE 20 echo 1 > events/eprobes/$EPROBE/enable 22 echo 0 > events/eprobes/$EPROBE/enable 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 [all …]
|
/linux-6.6.21/tools/perf/pmu-events/ |
D | Build | 1 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 13 METRIC_TEST_LOG = $(OUTPUT)pmu-events/metric_test.log 21 # Locate/process JSON files in pmu-events/arch/ [all …]
|
/linux-6.6.21/lib/ |
D | flex_proportions.c | 44 err = percpu_counter_init(&p->events, 1, gfp); in fprop_global_init() 53 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() [all …]
|
/linux-6.6.21/tools/testing/selftests/filesystems/epoll/ |
D | epoll_wakeup_test.c | 30 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 = EPOLLIN; in TEST() [all …]
|
/linux-6.6.21/drivers/power/supply/ |
D | ab8500_chargalg.c | 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.btemp_underover = false; in ab8500_chargalg_check_temp() 659 di->events.btemp_low = false; in ab8500_chargalg_check_temp() 660 di->events.btemp_high = false; in ab8500_chargalg_check_temp() [all …]
|
/linux-6.6.21/tools/perf/Documentation/ |
D | itrace.txt | 1 i synthesize instructions events 2 y synthesize cycles events 3 b synthesize branches events (branch misses for Arm SPE) 4 c synthesize branches events (calls only) 5 r synthesize branches events (returns only) 6 x synthesize transactions events 7 w synthesize ptwrite events 8 p synthesize power events (incl. PSB events for Intel PT) 9 o synthesize other events recorded due to the use 11 I synthesize interrupt or similar (asynchronous) events [all …]
|