Home
last modified time | relevance | path

Searched full:events (Results 1 – 25 of 3634) sorted by relevance

12345678910>>...146

/linux-6.14.4/tools/testing/selftests/ftrace/test.d/event/
Devent-mod.tc4 # requires: set_event "Can enable module events via: :mod:":README
7 rmmod trace-events-sample ||:
8 if ! modprobe trace-events-sample ; then
9 echo "No trace-events sample module - please make CONFIG_SAMPLE_TRACE_EVENTS=m"
12 trap "rmmod trace-events-sample" EXIT
14 # Set events for the module
15 echo ":mod:trace-events-sample" > set_event
25 val=`cat events/sample-trace/enable`
33 val=`cat events/enable`
45 echo clear all events
[all …]
/linux-6.14.4/drivers/net/ethernet/mellanox/mlx5/core/
Devents.c8 #include "lib/events.h"
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->fw_nh, driver notifiers */
30 /* Events to be processed by mlx5_core */
36 /* Events to be forwarded (as is) to mlx5 core interfaces (mlx5e/mlx5_ib) */
40 /* QP/WQ resource events to forward */
50 /* SRQ events */
59 /* driver notifier chain for fw events */
61 /* port module events stats */
[all …]
/linux-6.14.4/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
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-6.14.4/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()
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-6.14.4/samples/cgroup/
Dmemcg_event_listener.c3 * memcg_event_listener.c - Simple listener of memcg memory.events
21 #define MEMCG_EVENTS "memory.events"
23 /* Size of buffer to use when reading inotify events */
53 printf("MEMCG events:\n"); in print_memcg_counters()
100 static int read_memcg_events(struct memcg_events *events, bool show_diff) in read_memcg_events() argument
102 FILE *fp = fopen(events->path, "re"); in read_memcg_events()
109 struct memcg_counters *counters = &events->counters; in read_memcg_events()
148 warn("Failed to open memcg events file %s", events->path); in read_memcg_events()
195 printf("*** No new untracked memcg events available\n"); in read_memcg_events()
204 static void process_memcg_events(struct memcg_events *events, in process_memcg_events() argument
[all …]
/linux-6.14.4/tools/perf/Documentation/
Ditrace.txt1 i synthesize instructions events
2 y synthesize cycles events
3 b synthesize branches events
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 …]
Dperf-list.txt36 Print how named events are resolved internally into perf events, and also
40 Print deprecated events. By default the deprecated events are hidden.
43 Print PMU events and metrics limited to the specific PMU name.
58 Events can optionally have a modifier by appending a colon and one or
59 more modifiers. Modifiers allow the user to restrict the events to be
95 (micro-ops retired). Both events map to IBS execution sampling (IBS op)
161 hit events.
206 Events on these PMUs generally cannot be sampled, but only counted globally
217 and adding the values together. To simplify creation of multiple events,
232 For non root users generally only context switched PMU events are available.
[all …]
/linux-6.14.4/tools/testing/selftests/ftrace/test.d/00basic/
Dtest_ownership.tc25 canary="events/timer events/timer/timer_cancel events/timer/timer_cancel/format"
59 …for d in "." "events" "events/sched" "events/sched/sched_switch" "events/sched/sched_switch/enable…
63 chgrp $original_group events
64 test "events" $original_group
65 …for d in "." "events/sched" "events/sched/sched_switch" "events/sched/sched_switch/enable" $canary…
69 chgrp $original_group events/sched
70 test "events/sched" $original_group
71 for d in "." "events/sched/sched_switch" "events/sched/sched_switch/enable" $canary; do
75 chgrp $original_group events/sched/sched_switch
76 test "events/sched/sched_switch" $original_group
[all …]
/linux-6.14.4/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-6.14.4/Documentation/ABI/testing/
Dsysfs-bus-iio15 based on hardware generated events (e.g. data ready) or
92 buffered samples and events for device X.
826 What: /sys/bus/iio/devices/iio:deviceX/events
830 Configuration of which hardware generated events are passed up
833 What: /sys/.../iio:deviceX/events/in_accel_x_thresh_rising_en
834 What: /sys/.../iio:deviceX/events/in_accel_x_thresh_falling_en
835 What: /sys/.../iio:deviceX/events/in_accel_y_thresh_rising_en
836 What: /sys/.../iio:deviceX/events/in_accel_y_thresh_falling_en
837 What: /sys/.../iio:deviceX/events/in_accel_z_thresh_rising_en
838 What: /sys/.../iio:deviceX/events/in_accel_z_thresh_falling_en
[all …]
/linux-6.14.4/tools/perf/pmu-events/
DBuild1 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
14 TEST_EMPTY_PMU_EVENTS_C = $(OUTPUT)pmu-events/test-empty-pmu-events.c
[all …]
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-6.14.4/tools/perf/tests/
Dpfm.c33 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.14.4/tools/testing/selftests/powerpc/pmu/event_code_tests/
Devent_alternatives_tests_p10.c27 struct event *e, events[5]; in event_alternatives_tests_p10() local
35 * alternative events is handled by respective PMU driver in event_alternatives_tests_p10()
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()
66 * 0x600f4 in PMC6. So it can go in with other events in event_alternatives_tests_p10()
70 FAIL_IF(event_open_with_group(&events[i], events[0].fd)); in event_alternatives_tests_p10()
[all …]
/linux-6.14.4/tools/testing/selftests/hid/tests/
Dtest_apple_keyboard.py173 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 …]
Dtest_sony.py45 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 …]
/linux-6.14.4/tools/testing/selftests/ftrace/test.d/trigger/
Dtrigger-filter.tc4 # 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 …]
/linux-6.14.4/tools/testing/selftests/ftrace/test.d/dynevent/
Dadd_remove_eprobe.tc3 # description: Generic dynamic event - add/remove eprobe events
4 # requires: dynamic_events events/syscalls/sys_enter_openat "<attached-group>.<attached-event> [<ar…
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
[all …]
Dadd_remove_tprobe_module.tc3 # description: Generic dynamic event - add/remove tracepoint probe events on module
6 rmmod trace-events-sample ||:
7 if ! modprobe trace-events-sample ; then
8 echo "No trace-events sample module - please make CONFIG_SAMPLE_TRACE_EVENTS=m"
11 trap "rmmod trace-events-sample" EXIT
13 echo 0 > events/enable
24 test -d events/tracepoints/myevent1
25 test -d events/tracepoints/myevent2
37 rmmod trace-events-sample
44 test -d events/tracepoints/myevent1
[all …]
/linux-6.14.4/tools/testing/selftests/powerpc/pmu/ebb/
Dmulti_counter_test.c14 * 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-6.14.4/block/
Ddisk-events.c3 * Disk events - monitor disk events like media change and eject request.
17 unsigned int pending; /* events already sent out */
18 unsigned int clearing; /* events being cleared */
60 * @disk: disk to block events for
64 * disk_unblock_events(). Events blocking is counted and the actual
125 * @disk: disk to unblock events for
128 * starts events polling if configured.
141 * @disk: disk to check and flush events for
142 * @mask: events to flush
144 * Schedule immediate event checking on @disk if not blocked. Events in
[all …]
/linux-6.14.4/tools/testing/selftests/filesystems/epoll/
Depoll_wakeup_test.c30 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.14.4/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 …]

12345678910>>...146