/Linux-v5.10/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 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[0].fd)); in per_event_excludes() 83 FAIL_IF(event_read(&events[i])); in per_event_excludes() [all …]
|
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | events.c | 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->nh, driver notifiers */ 30 /* Events to be proccessed by mlx5_core */ 36 /* Events to be forwarded (as is) to mlx5 core interfaces (mlx5e/mlx5_ib) */ 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 [all …]
|
/Linux-v5.10/Documentation/ABI/testing/ |
D | sysfs-bus-iio | 15 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 …]
|
D | sysfs-bus-event_source-devices-events | 1 What: /sys/devices/cpu/events/ 2 /sys/devices/cpu/events/branch-misses 3 /sys/devices/cpu/events/cache-references 4 /sys/devices/cpu/events/cache-misses 5 /sys/devices/cpu/events/stalled-cycles-frontend 6 /sys/devices/cpu/events/branch-instructions 7 /sys/devices/cpu/events/stalled-cycles-backend 8 /sys/devices/cpu/events/instructions 9 /sys/devices/cpu/events/cpu-cycles 15 Description: Generic performance monitoring events [all …]
|
/Linux-v5.10/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() 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[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() [all …]
|
/Linux-v5.10/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-v5.10/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 8 o synthesize other events recorded due to the use 10 e synthesize error events 12 f synthesize first level cache events [all …]
|
D | perf-list.txt | 36 Print how named events are resolved internally into perf events, and also 40 Print deprecated events. By default the deprecated events are hidden. 46 Events can optionally have a modifier by appending a colon and one or 47 more modifiers. Modifiers allow the user to restrict the events to be 78 clocks not halted) and 0xC1 (micro-ops retired). Both events map to 152 Events on these PMUs generally cannot be sampled, but only counted globally 163 and adding the values together. To simplify creation of multiple events, 178 For non root users generally only context switched PMU events are available. 179 This is normally only the events in the cpu PMU, the predefined events 180 like cycles and instructions and some software events. [all …]
|
D | perf-script.txt | 31 'perf script record <script> <command>' to record the events required 34 language extension. If <command> is not specified, the events are 46 record the events required for <script> and to run the <script> 50 not specified, the events are recorded using the -a (system-wide) 59 'perf script <top-script>' to both record the events required for 113 Do various checks like samples ordering and lost events. 147 The first -F suppresses trace events (field list is ""), but then the 151 "Overriding previous field request for all events." 157 The first -F sets the fields for all events and the second -F 158 suppresses trace events. The user is given a warning message about [all …]
|
/Linux-v5.10/tools/perf/pmu-events/ |
D | README | 2 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 …]
|
D | Build | 5 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)
|
/Linux-v5.10/tools/perf/tests/ |
D | pfm.c | 26 .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 = "instructions,stereolab", in test__pfm_events() [all …]
|
/Linux-v5.10/tools/testing/selftests/ftrace/test.d/trigger/ |
D | trigger-filter.tc | 4 # requires: set_event events/sched/sched_process_fork/trigger 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 [all …]
|
D | trigger-eventonoff.tc | 4 # requires: set_event events/sched/sched_process_fork/trigger 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 [all …]
|
D | trigger-multihist.tc | 4 # requires: set_event events/sched/sched_process_fork/trigger events/sched/sched_process_fork/hist 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 || \ 34 echo "Test same named histogram on different events" 36 echo 'hist:name=test_hist:keys=common_pid' > events/sched/sched_process_exit/trigger [all …]
|
/Linux-v5.10/lib/ |
D | flex_proportions.c | 14 * 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() 74 if (events <= 1) { in fprop_new_period() [all …]
|
/Linux-v5.10/tools/testing/selftests/powerpc/pmu/ebb/ |
D | multi_counter_test.c | 14 * 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[i]); in multi_counter() [all …]
|
/Linux-v5.10/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-v5.10/tools/testing/selftests/filesystems/epoll/ |
D | epoll_wakeup_test.c | 53 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/Documentation/powerpc/ |
D | pmu-ebb.rst | 6 branch directly to a specified user space address when certain events occur. 20 Throughout this document we will refer to an "EBB event" or "EBB events". This 22 attr.config. All events which can be configured on the hardware PMU are 23 possible "EBB events". 32 It is a feature of the perf_events API that events can be created on other 34 events, however unless the target process enables EBBs (via mtspr(BESCR)) no 38 actually configure any events. At a later time another process can come along 45 events can be configured. This means that EBB events can not be run 46 concurrently with regular 'perf' commands, or any other perf events. 50 its events could not run. [all …]
|
/Linux-v5.10/tools/testing/selftests/ftrace/test.d/event/ |
D | event-no-pid.tc | 3 # description: event tracing - restricts events based on pid notrace filtering 4 # requires: set_event events/sched set_event_pid set_event_notrace_pid 12 echo 0 > events/enable 37 if [ -d events/$system ]; then 38 echo 1 > events/$system/enable 44 # Enable common groups of events, as all events can allow for 45 # events to be traced via scheduling that we don't care to test. 77 fail "Filtered out task has events" 82 fail "No other events were recorded" 101 fail "Filtered out task has events" [all …]
|
/Linux-v5.10/tools/lib/traceevent/Documentation/ |
D | libtraceevent-event_list.txt | 7 Get list of events, sorted by given criteria. 27 The _tep_list_events()_ function returns an array of pointers to the events, 46 The _tep_list_events()_ function returns an array of pointers to events. 50 The _tep_list_events_copy()_ function returns an array of pointers to events. 63 struct tep_event_format **events; 66 events = tep_list_events(tep, TEP_EVENT_SORT_ID); 67 if (events == NULL) { 68 /* Failed to get the events, sorted by ID */ 70 while(events[i]) { 71 /* walk through the list of the events, sorted by ID */ [all …]
|
/Linux-v5.10/tools/lib/perf/Documentation/ |
D | libperf-counting.txt | 10 The counting interface provides API to measure and get count for specific perf events. 29 The `counting.c` example monitors two events on the current process and displays 32 * creates events 34 * opens and enables events through the event list 36 * disables events 73 Once the setup is complete we start by defining specific events using the `struct perf_event_attr`. 75 We create software events for cpu and task: 110 Now we create libperf's event list, which will serve as holder for the events we want: 121 We create libperf's events for the attributes we defined earlier and add them to the list: 142 Configure event list with the thread map and open events: [all …]
|