/linux-6.3-rc2/tools/testing/selftests/powerpc/pmu/ |
A D | count_stcx_fail.c | 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() 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 D | count_instructions.c | 42 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 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() 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-6.3-rc2/tools/testing/selftests/powerpc/security/ |
A D | spectre_v2.c | 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() 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 …]
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/ |
A D | events.c | 318 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 …]
|
/linux-6.3-rc2/drivers/gpu/drm/arm/display/komeda/ |
A 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() 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-6.3-rc2/tools/perf/tests/ |
A 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() 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-6.3-rc2/tools/testing/selftests/powerpc/pmu/event_code_tests/ |
A D | event_alternatives_tests_p10.c | 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() 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 …]
|
A 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 …]
|
A 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.3-rc2/tools/testing/selftests/ftrace/test.d/trigger/ |
A 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 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 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 …]
|
A 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 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 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-6.3-rc2/tools/testing/selftests/powerpc/pmu/ebb/ |
A D | multi_counter_test.c | 18 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-6.3-rc2/drivers/media/pci/cx23885/ |
A 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.3-rc2/tools/testing/selftests/ftrace/test.d/dynevent/ |
A D | add_remove_eprobe.tc | 6 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 …]
|
/linux-6.3-rc2/lib/ |
A D | flex_proportions.c | 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() 131 percpu_counter_add(&p->events, 1); in __fprop_inc_single() [all …]
|
/linux-6.3-rc2/tools/testing/selftests/filesystems/epoll/ |
A D | epoll_wakeup_test.c | 237 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-6.3-rc2/drivers/power/supply/ |
A D | ab8500_chargalg.c | 730 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 …]
|
/linux-6.3-rc2/tools/perf/pmu-events/ |
A 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.3-rc2/tools/perf/Documentation/ |
A D | itrace.txt | 1 i synthesize instructions events 2 y synthesize cycles events 6 x synthesize transactions events 7 w synthesize ptwrite events 8 p synthesize power events (incl. PSB events for Intel PT) 13 e synthesize error events 16 m synthesize last level cache events 17 M synthesize memory events 18 t synthesize TLB events 19 a synthesize remote access events [all …]
|
/linux-6.3-rc2/tools/testing/selftests/ftrace/test.d/trigger/inter-event/ |
A 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 …]
|
A 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-6.3-rc2/arch/m68k/mac/ |
A D | via.c | 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() 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 …]
|