/Linux-v6.1/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-v6.1/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-v6.1/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-v6.1/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-v6.1/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-v6.1/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-v6.1/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 …]
|
D | trigger-hist.tc | 14 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 46 grep '{ call_site: \[[0-9a-f][0-9a-f]*\] [_a-zA-Z][_a-zA-Z]* *}' events/kmem/kmalloc/hist > /dev/nu… 53 echo 'hist:keys=call_site.sym-offset' > events/kmem/kmalloc/trigger [all …]
|
D | trigger-multihist.tc | 14 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-v6.1/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-v6.1/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-v6.1/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-v6.1/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-v6.1/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-v6.1/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-v6.1/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 15 # Locate/process JSON files in pmu-events/arch/ 16 # directory and create tables in pmu-events.c. 20 $(OUTPUT)pmu-events/pmu-events.c: pmu-events/empty-pmu-events.c 24 $(OUTPUT)pmu-events/pmu-events.c: $(JSON) $(JSON_TEST) $(JEVENTS_PY) 26 $(Q)$(call echo-cmd,gen)$(PYTHON) $(JEVENTS_PY) $(JEVENTS_ARCH) pmu-events/arch $@
|
/Linux-v6.1/tools/perf/Documentation/ |
D | itrace.txt | 1 i synthesize instructions events 2 b synthesize branches events (branch misses for Arm SPE) 3 c synthesize branches events (calls only) 4 r synthesize branches events (returns only) 5 x synthesize transactions events 6 w synthesize ptwrite events 7 p synthesize power events (incl. PSB events for Intel PT) 8 o synthesize other events recorded due to the use 10 I synthesize interrupt or similar (asynchronous) events 12 e synthesize error events [all …]
|
/Linux-v6.1/tools/testing/selftests/ftrace/test.d/trigger/inter-event/ |
D | trigger-synthetic-eprobe.tc | 6 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 …]
|
D | trigger-inter-event-combined-hist.tc | 14 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-v6.1/arch/m68k/mac/ |
D | via.c | 385 unsigned char irq_bit, events; in via1_irq() local 387 events = via1[vIFR] & via1[vIER] & 0x7F; in via1_irq() 388 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() 415 } while (events >= irq_bit); in via1_irq() 421 unsigned char irq_bit, events; in via2_irq() local 423 events = via2[gIFR] & via2[gIER] & 0x7F; in via2_irq() [all …]
|