Home
last modified time | relevance | path

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

12345678910>>...49

/Linux-v5.10/tools/testing/selftests/powerpc/pmu/
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[2]); in do_count_loop()
[all …]
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[1]); in do_count_loop()
[all …]
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()
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-v5.10/tools/testing/selftests/powerpc/security/
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()
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-v5.10/drivers/net/ethernet/mellanox/mlx5/core/
Devents.c141 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 = event_nb->ctx; in temp_warn() local
161 mlx5_core_warn(events->dev, in temp_warn()
215 struct mlx5_events *events = event_nb->ctx; in port_module() local
231 events->pme_stats.status_counters[module_status]++; in port_module()
235 events->pme_stats.error_counters[error_type]++; in port_module()
245 mlx5_core_err(events->dev, in port_module()
249 mlx5_core_info(events->dev, in port_module()
267 struct mlx5_events *events; in mlx5_pcie_event() local
[all …]
/Linux-v5.10/drivers/gpu/drm/arm/display/komeda/
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 & KOMEDA_ERR_FRAMETO, "FRAMETO|"); in evt_str()
[all …]
/Linux-v5.10/tools/perf/tests/
Dpfm.c53 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 = "instructions,stereolab", in test__pfm_events()
93 table[i].events, in test__pfm_events()
95 TEST_ASSERT_EQUAL(table[i].events, in test__pfm_events()
[all …]
/Linux-v5.10/tools/testing/selftests/ftrace/test.d/trigger/
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
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 …]
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 …]
Dtrigger-multihist.tc14 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`
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=parent_pid,child_pid:sort=child_pid.ascending' > events/sched/sched_process_fork/tr…
55 events/sched/sched_process_fork/hist | cut -d: -f2 ` ||
Dtrigger-hist-mod.tc14 echo 'hist:keys=common_pid.execname' > events/sched/sched_process_fork/trigger
17 grep "common_pid: $COMM" events/sched/sched_process_fork/hist > /dev/null || \
24 echo 'hist:keys=parent_pid.hex' > events/sched/sched_process_fork/trigger
28 grep "parent_pid: $HEX" events/sched/sched_process_fork/hist > /dev/null || \
35 echo 'hist:keys=id.syscall' > events/raw_syscalls/sys_exit/trigger
37 grep "id: \(unknown_\|sys_\)" events/raw_syscalls/sys_exit/hist > /dev/null || \
45 echo 'hist:keys=bytes_req.log2' > events/kmem/kmalloc/trigger
47 grep 'bytes_req: ~ 2^[0-9]*' events/kmem/kmalloc/hist > /dev/null || \
/Linux-v5.10/tools/testing/selftests/powerpc/pmu/ebb/
Dmulti_counter_test.c18 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-v5.10/lib/
Dflex_proportions.c44 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; in fprop_new_period() local
70 events = percpu_counter_sum(&p->events); in fprop_new_period()
74 if (events <= 1) { in fprop_new_period()
80 events -= events >> periods; in fprop_new_period()
82 percpu_counter_add(&p->events, -events); in fprop_new_period()
96 pl->events = 0; in fprop_local_init_single()
123 pl->events >>= period - pl->period; in fprop_reflect_period_single()
125 pl->events = 0; in fprop_reflect_period_single()
[all …]
/Linux-v5.10/drivers/media/pci/cx23885/
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 …]
/Linux-v5.10/tools/testing/selftests/filesystems/epoll/
Depoll_wakeup_test.c53 pfd.events = POLLIN; in waiter_entry1ap()
80 pfd.events = POLLIN; in waiter_entry1op()
91 struct epoll_event events[2]; in waiter_entry2a() local
94 if (epoll_wait(ctx->efd[0], events, 2, -1) > 0) in waiter_entry2a()
103 struct epoll_event events[2]; in waiter_entry2ap() local
107 pfd.events = POLLIN; in waiter_entry2ap()
109 if (epoll_wait(ctx->efd[0], events, 2, 0) > 0) in waiter_entry2ap()
159 e.events = EPOLLIN; in TEST()
190 e.events = EPOLLIN | EPOLLET; in TEST()
214 struct epoll_event events[2]; in TEST() local
[all …]
/Linux-v5.10/tools/perf/Documentation/
Ditrace.txt1 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
8 o synthesize other events recorded due to the use
10 e synthesize error events
12 f synthesize first level cache events
[all …]
/Linux-v5.10/Documentation/ABI/testing/
Dsysfs-bus-iio15 based on hardware generated events (e.g. data ready) or
41 buffered samples and events for device X.
618 What: /sys/bus/iio/devices/iio:deviceX/events
622 Configuration of which hardware generated events are passed up
625 What: /sys/.../iio:deviceX/events/in_accel_x_thresh_rising_en
626 What: /sys/.../iio:deviceX/events/in_accel_x_thresh_falling_en
627 What: /sys/.../iio:deviceX/events/in_accel_y_thresh_rising_en
628 What: /sys/.../iio:deviceX/events/in_accel_y_thresh_falling_en
629 What: /sys/.../iio:deviceX/events/in_accel_z_thresh_rising_en
630 What: /sys/.../iio:deviceX/events/in_accel_z_thresh_falling_en
[all …]
/Linux-v5.10/tools/testing/selftests/ftrace/test.d/trigger/inter-event/
Dtrigger-inter-event-combined-hist.tc14 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
Dtrigger-field-variable-support.tc14 echo 'hist:keys=comm:ts0=common_timestamp.usecs if comm=="ping"' > events/sched/sched_waking/trigger
15 …_lat,next_pid,sched.sched_waking.prio,next_comm) if next_comm=="ping"' > events/sched/sched_switch…
16 echo 'hist:keys=pid,prio,comm:vals=lat:sort=pid,prio' > events/synthetic/wakeup_latency/trigger
19 if ! grep -q "ping" events/synthetic/wakeup_latency/hist; then
23 if ! grep -q "synthetic_prio=prio" events/sched/sched_waking/hist; then
27 …lat,next_pid,sched.sched_waking.prio,next_comm) if next_comm=="ping"' >> events/sched/sched_switch…
29 if grep -q "synthetic_prio=prio" events/sched/sched_waking/hist; then
/Linux-v5.10/tools/perf/pmu-events/
DBuild5 pmu-events-y += pmu-events.o
6 JDIR = pmu-events/arch/$(SRCARCH)
11 # Locate/process JSON files in pmu-events/arch/
12 # directory and create tables in pmu-events.c.
14 $(OUTPUT)pmu-events/pmu-events.c: $(JSON) $(JEVENTS)
15 $(Q)$(call echo-cmd,gen)$(JEVENTS) $(SRCARCH) pmu-events/arch $(OUTPUT)pmu-events/pmu-events.c $(V)
DREADME2 The contents of this directory allow users to specify PMU events in their
9 tree tools/perf/pmu-events/arch/foo.
12 JSON files, each of which describes a set of PMU events.
14 - The CSV file that maps a specific CPU to its set of PMU events is to
21 events", defined in architecture standard JSONs.
25 The PMU events supported by a CPU model are expected to grouped into topics
26 such as Pipelining, Cache, Memory, Floating-point etc. All events for a topic
33 $ ls tools/perf/pmu-events/arch/x86/silvermont
42 'pmu-events.c', which encodes the two sets of tables:
44 - Set of 'PMU events tables' for all known CPUs in the architecture,
[all …]
/Linux-v5.10/drivers/power/supply/
Dabx500_chargalg.c254 struct abx500_chargalg_events events; member
292 di->events.safety_timer_expired = true; in abx500_chargalg_safety_timer_expired()
316 di->events.maintenance_timer_expired = true; in abx500_chargalg_maintenance_timer_expired()
454 di->events.safety_timer_expired = false; in abx500_chargalg_start_safety_timer()
470 di->events.safety_timer_expired = false; in abx500_chargalg_stop_safety_timer()
488 di->events.maintenance_timer_expired = false; in abx500_chargalg_start_maintenance_timer()
502 di->events.maintenance_timer_expired = false; in abx500_chargalg_stop_maintenance_timer()
727 di->events.btemp_underover = false; in abx500_chargalg_check_temp()
728 di->events.btemp_lowhigh = false; in abx500_chargalg_check_temp()
739 di->events.btemp_underover = false; in abx500_chargalg_check_temp()
[all …]
/Linux-v5.10/arch/m68k/mac/
Dvia.c404 unsigned char irq_bit, events; in via1_irq() local
406 events = via1[vIFR] & via1[vIER] & 0x7F; in via1_irq()
407 if (!events) in via1_irq()
412 if (events & irq_bit) { in via1_irq()
420 events &= ~irq_bit; in via1_irq()
421 if (!events) in via1_irq()
428 if (events & irq_bit) { in via1_irq()
434 } while (events >= irq_bit); in via1_irq()
440 unsigned char irq_bit, events; in via2_irq() local
442 events = via2[gIFR] & via2[gIER] & 0x7F; in via2_irq()
[all …]
/Linux-v5.10/arch/um/os-Linux/
Dirq.c39 int os_epoll_triggered(int index, int events) in os_epoll_triggered() argument
41 return epoll_events[index].events & events; in os_epoll_triggered()
92 int os_add_epoll_fd(int events, int fd, void *data) in os_add_epoll_fd() argument
98 event.events = events | EPOLLET; in os_add_epoll_fd()
101 result = os_mod_epoll_fd(events, fd, data); in os_add_epoll_fd()
110 int os_mod_epoll_fd(int events, int fd, void *data) in os_mod_epoll_fd() argument
116 event.events = events; in os_mod_epoll_fd()

12345678910>>...49