/freebsd/contrib/wpa/src/drivers/ |
H A D | ndis_events.c | 2 * ndis_events - Receive NdisMIndicateStatus() events using WMI 115 static int ndis_events_get_adapter(struct ndis_events_data *events, 119 static int ndis_events_constructor(struct ndis_events_data *events) in ndis_events_constructor() argument 121 events->ref = 1; in ndis_events_constructor() 123 if (!CreatePipe(&events->read_pipe, &events->write_pipe, NULL, 512)) { in ndis_events_constructor() 128 events->event_avail = CreateEvent(NULL, TRUE, FALSE, NULL); in ndis_events_constructor() 129 if (events->event_avail == NULL) { in ndis_events_constructor() 132 CloseHandle(events->read_pipe); in ndis_events_constructor() 133 CloseHandle(events->write_pipe); in ndis_events_constructor() 141 static void ndis_events_destructor(struct ndis_events_data *events) in ndis_events_destructor() argument [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_events/ |
H A D | zpool_events_clear.ksh | 22 # 'zpool events -c' should successfully clear events. 25 # 1. Clear all ZFS events 26 # 2. Generate some new ZFS events 27 # 3. Verify 'zpool events -c' successfully clears new events 32 log_assert "'zpool events -c' should successfully clear events." 34 # 1. Clear all ZFS events 35 # This is needed because we may already over the max number or events queued 37 # events and then counting them is racy and leads to failures, so start from 0. 38 log_must zpool events -c 40 # 2. Generate some new ZFS events [all …]
|
H A D | zpool_events_follow.ksh | 22 # 'zpool events -f' should successfully follow new events. 25 # 1. Clear all ZFS events 26 # 2. Run 'zpool events -f' in background, saving its output to a temporary file 27 # 3. Generate some ZFS events 28 # 4. Verify 'zpool events -f' successfully recorded these new events 39 log_assert "'zpool events -f' should follow new events." 44 # 1. Clear all ZFS events 45 log_must zpool events -c 47 # 2. Run 'zpool events -f' in background, saving its output to a temporary file 48 log_must eval "zpool events -H -f > $EVENTS_FILE &" [all …]
|
H A D | zpool_events_poolname.ksh | 22 # 'zpool events poolname' should only display events from the chosen pool. 26 # 2. Clear all ZFS events 27 # 3. Generate some ZFS events on both pools 28 # 4. Verify 'zpool events poolname' successfully display events 39 log_assert "'zpool events poolname' should only display events from poolname." 49 # 2. Clear all ZFS events 50 log_must zpool events -c 52 # 3. Generate some ZFS events on both pools 57 # wait a bit to allow the kernel module to process new events 60 # 4. Verify 'zpool events poolname' successfully display events [all …]
|
H A D | zpool_events_cliargs.ksh | 21 # 'zpool events' should only work with supported options. 46 log_assert "'zpool events' should only work with supported options." 56 log_must_follow "zpool events $opt" 57 log_must_follow "zpool events $opt $TESTPOOL" 59 log_must eval "zpool events $opt > /dev/null" 60 log_must eval "zpool events $opt $TESTPOOL > /dev/null" 67 log_mustnot zpool events $opt "/tmp/" 68 log_mustnot zpool events $opt "$TESTPOOL/fs" 69 log_mustnot zpool events $opt "$TESTPOOL@snap" 70 log_mustnot zpool events $opt "$TESTPOOL#bm" [all …]
|
H A D | zpool_events_errors.ksh | 27 # Verify the number of IO and checksum events match the error counters 34 # number of error events. 58 log_must zpool events -c 65 log_assert "Check that the number of zpool errors match the number of events" 69 # Set our thresholds high so we never ratelimit or drop events. 89 log_must zpool events -c 118 events=$(zpool events | grep -c checksum) 122 allevents=$(zpool events | grep io) 123 events=$(echo "$allevents" | wc -l) 133 if [ -z "$val" -o $val -eq 0 -o -z "$events" -o $events -eq 0 ] ; then [all …]
|
/freebsd/lib/libpmc/pmu-events/ |
H A 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_core 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 …]
|
/freebsd/contrib/ntp/sntp/libevent/ |
H A D | epoll.c | 87 struct epoll_event *events; member 113 short old, short events, void *p); 115 short old, short events, void *p); 169 epollop->events = mm_calloc(INITIAL_NEVENT, sizeof(struct epoll_event)); in epoll_init() 170 if (epollop->events == NULL) { in epoll_init() 199 epev.events = EPOLLIN; in epoll_init() 249 #define PRINT_CHANGES(op, events, ch, status) \ argument 251 "Old events were %d; " \ 256 events, \ 272 int op, events = 0; in epoll_apply_one_change() local [all …]
|
H A D | devpoll.c | 57 struct pollfd *events; member 65 static int devpoll_add(struct event_base *, int fd, short old, short events, void *); 66 static int devpoll_del(struct event_base *, int fd, short old, short events, void *); 100 devpoll_queue(struct devpollop *devpollop, int fd, int events) { in devpoll_queue() argument 114 pfd->events = events; in devpoll_queue() 146 devpollop->events = mm_calloc(nfiles, sizeof(struct pollfd)); in devpoll_init() 147 if (devpollop->events == NULL) { in devpoll_init() 156 mm_free(devpollop->events); in devpoll_init() 171 struct pollfd *events = devpollop->events; in devpoll_dispatch() local 181 dvp.dp_fds = devpollop->events; in devpoll_dispatch() [all …]
|
H A D | kqueue.c | 81 struct kevent *events; member 144 kqueueop->events = mm_calloc(NEVENT, sizeof(struct kevent)); in kq_init() 145 if (kqueueop->events == NULL) in kq_init() 156 * stick an error in events[0]. If kqueue is broken, then in kq_init() 160 kqueueop->changes, 1, kqueueop->events, NEVENT, NULL) != 1 || in kq_init() 161 (int)kqueueop->events[0].ident != -1 || in kq_init() 162 !(kqueueop->events[0].flags & EV_ERROR)) { in kq_init() 254 newresult = mm_realloc(kqop->events, in kq_grow_events() 258 kqop->events = newresult; in kq_grow_events() 270 struct kevent *events in kq_dispatch() local 454 kq_sig_add(struct event_base * base,int nsignal,short old,short events,void * p) kq_sig_add() argument 487 kq_sig_del(struct event_base * base,int nsignal,short old,short events,void * p) kq_sig_del() argument [all...] |
/freebsd/contrib/libevent/ |
H A D | epoll.c | 87 struct epoll_event *events; member 113 short old, short events, void *p); 115 short old, short events, void *p); 169 epollop->events = mm_calloc(INITIAL_NEVENT, sizeof(struct epoll_event)); in epoll_init() 170 if (epollop->events == NULL) { in epoll_init() 199 epev.events = EPOLLIN; in epoll_init() 249 #define PRINT_CHANGES(op, events, ch, status) \ argument 251 "Old events were %d; " \ 256 events, \ 272 int op, events = 0; in epoll_apply_one_change() local [all …]
|
H A D | devpoll.c | 57 struct pollfd *events; member 65 static int devpoll_add(struct event_base *, int fd, short old, short events, void *); 66 static int devpoll_del(struct event_base *, int fd, short old, short events, void *); 100 devpoll_queue(struct devpollop *devpollop, int fd, int events) { in devpoll_queue() argument 114 pfd->events = events; in devpoll_queue() 146 devpollop->events = mm_calloc(nfiles, sizeof(struct pollfd)); in devpoll_init() 147 if (devpollop->events == NULL) { in devpoll_init() 156 mm_free(devpollop->events); in devpoll_init() 171 struct pollfd *events = devpollop->events; in devpoll_dispatch() local 181 dvp.dp_fds = devpollop->events; in devpoll_dispatch() [all …]
|
H A D | kqueue.c | 81 struct kevent *events; member 144 kqueueop->events = mm_calloc(NEVENT, sizeof(struct kevent)); in kq_init() 145 if (kqueueop->events == NULL) in kq_init() 156 * stick an error in events[0]. If kqueue is broken, then in kq_init() 160 kqueueop->changes, 1, kqueueop->events, NEVENT, NULL) != 1 || in kq_init() 161 (int)kqueueop->events[0].ident != -1 || in kq_init() 162 !(kqueueop->events[0].flags & EV_ERROR)) { in kq_init() 254 newresult = mm_realloc(kqop->events, in kq_grow_events() 258 kqop->events = newresult; in kq_grow_events() 270 struct kevent *events = kqop->events; in kq_dispatch() local [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/deadman/ |
H A D | deadman_ratelimit.ksh | 28 # Verify spa deadman events are rate limited 34 # 4. Verify deadman events have been produced at a reasonable rate. 51 log_assert "Verify spa deadman events are rate limited" 60 log_must zpool events -c 69 events=$(zpool events $TESTPOOL | grep -c ereport.fs.zfs.deadman) 70 log_note "events=$events" 71 if [ "$events" -lt 1 ]; then 72 log_fail "Expect >= 1 deadman events, $events found" 74 if [ "$events" -gt 10 ]; then 75 log_fail "Expect <= 10 deadman events, $events found" [all …]
|
H A D | deadman_zio.ksh | 79 log_must zpool events -c 91 events=$(zpool events | grep -c ereport.fs.zfs.deadman) 92 if [ "$events" -lt 1 ]; then 93 log_fail "Expect >=1 deadman events, $events found" 98 log_must zpool events -c 108 events=$(zpool events | grep -c ereport.fs.zfs.deadman) 109 if [ "$events" -ne 0 ]; then 110 log_fail "Expect 0 deadman events, $events found" 113 log_pass "Verify zio deadman detected a hung zio and $events deadman events"
|
/freebsd/contrib/ntp/sntp/libevent/include/event2/ |
H A D | event.h | 43 remove events dynamically without having to change the event loop. 79 keeping track of which events are "pending" (that is to say, being 80 watched to see if they become active) and which events are "active". 89 of monitored events by calling event_add(). The event structure must 93 @section loop Dispatching events. 95 Finally, you call event_base_dispatch() to loop and dispatch events. 99 time. If you want to run events in multiple threads at once, you can 100 either have a single event_base whose events add work to a work queue, 182 Core functions for waiting for and receiving events, and using event bases. 208 * have one. It keeps track of all pending and active events, and [all …]
|
/freebsd/contrib/libevent/include/event2/ |
H A D | event.h | 43 remove events dynamically without having to change the event loop. 79 keeping track of which events are "pending" (that is to say, being 80 watched to see if they become active) and which events are "active". 89 of monitored events by calling event_add(). The event structure must 93 @section loop Dispatching events. 95 Finally, you call event_base_dispatch() to loop and dispatch events. 99 time. If you want to run events in multiple threads at once, you can 100 either have a single event_base whose events add work to a work queue, 182 Core functions for waiting for and receiving events, and using event bases. 208 * have one. It keeps track of all pending and active events, and [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/events/ |
H A D | events_common.kshlib | 30 . $STF_SUITE/tests/functional/events/events.cfg 81 set -A events 86 events+=("$OPTARG") 103 log_note "Checking events for command: '$fullcmd'" 105 # Remove any previous events from the logs. 106 log_must zpool events -c 112 # Collect the new events and verify there are some. 114 log_must eval "zpool events >$TMP_EVENTS 2>/dev/null" 115 log_must eval "zpool events -v > $TMP_EVENTS_FULL 2>/dev/null" 121 if [[ "${events[0]}" != "sysevent.fs.zfs.history_event" ]]; then [all …]
|
H A D | events_002_pos.ksh | 29 # Verify ZED handles missed events from a pool when starting. 32 # 1. Clear the events and create a pool to generate some events. 33 # 2. Start the ZED and verify it handles missed events. 35 # 4. Generate additional events. 36 # 5. Start the ZED and verify it only handles the new missed events. 39 . $STF_SUITE/tests/functional/events/events_common.kshlib 50 log_assert "Verify ZED handles missed events when starting" 55 # 1. Create a pool and generate some events. 57 log_must zpool events -c 60 # 2. Start the ZED and verify it handles missed events. [all …]
|
H A D | zed_slow_io.ksh | 111 # inject 10 events over 2.5 seconds, should not degrade. 124 # give slow ZED a chance to process the delay events 131 log_fail "expecting no degrade events, found $degrades" 136 # change slow_io_n, slow_io_t to 5 events in 60 seconds 137 # fire more than 5 events, should degrade 154 # wait up to 60 seconds for kernel to produce at least 5 delay events 157 typeset -i events=0 159 events=$(zpool events | grep "ereport\.fs\.zfs.delay" | wc -l) 160 [[ $events -ge "5" ]] && break 164 log_note "$events delay events found" [all …]
|
/freebsd/cddl/contrib/opensolaris/cmd/lockstat/ |
H A D | lockstat.1 | 50 allows you to specify which events to watch (for example, spin on adaptive 55 monitors all lock contention events, gathers frequency and timing data about 56 those events, and displays the data in decreasing frequency order, so that the 57 most common events appear first. 83 relies on DTrace to modify the running kernel's text to intercept events of 100 Watch all lock events. 105 Watch contention events. 107 Watch error events. 109 Only watch the specified events. 111 is a comma-separated list of events or ranges of events such as 1,4-7,35. [all …]
|
/freebsd/share/man/man4/ |
H A D | boottrace.4 | 36 is a kernel-userspace interface for capturing trace events 38 .Pq in particular, one-shot events . 61 Events are stored in three event tables: boot-time events, run-time events, 62 and shutdown-time events. 63 .Bl -column "shutdown-time events" "" 65 .It boot-time events Ta Boot, kernel initialization, and 73 .It run-time events Ta Xo 81 .It shutdown-time events Ta Xo 96 to enable tracing of kernel events. 103 to enable tracing of userspace events. [all …]
|
/freebsd/contrib/pf/libevent/ |
H A D | kqueue.c | 67 struct kevent *events; member 119 kqueueop->events = malloc(NEVENT * sizeof(struct kevent)); in kq_init() 120 if (kqueueop->events == NULL) { in kq_init() 133 * stick an error in events[0]. If kqueue is broken, then in kq_init() 137 kqueueop->changes, 1, kqueueop->events, NEVENT, NULL) != 1 || in kq_init() 138 kqueueop->events[0].ident != -1 || in kq_init() 139 kqueueop->events[0].flags != EV_ERROR) { in kq_init() 142 free(kqueueop->events); in kq_init() 176 newresult = realloc(kqop->events, in kq_insert() 187 kqop->events = newresult; in kq_insert() [all …]
|
/freebsd/contrib/ofed/libibverbs/man/ |
H A D | ibv_get_async_event.3 | 6 ibv_get_async_event, ibv_ack_async_event \- get or acknowledge asynchronous events 42 following events: 44 .I QP events: 62 .I CQ events: 66 .I SRQ events: 72 .I Port events: 88 .I CA events: 102 All async events that 107 affiliated events for the object to be acknowledged; this avoids an 117 The following code example demonstrates one possible way to work with async events in non-blocking … [all …]
|
/freebsd/contrib/ntp/include/ |
H A D | ntp_syslog.h | 49 #define NLOG_SYSMASK 0x0000000F /* system log events */ 50 #define NLOG_SYSINFO 0x00000001 /* system info log events */ 51 #define NLOG_SYSEVENT 0x00000002 /* system events */ 56 #define NLOG_PEERMASK 0x000000F0 /* peer log events */ 57 #define NLOG_PEERINFO 0x00000010 /* peer info log events */ 58 #define NLOG_PEEREVENT 0x00000020 /* peer events */ 63 #define NLOG_CLOCKMASK 0x00000F00 /* clock log events */ 64 #define NLOG_CLOCKINFO 0x00000100 /* clock info log events */ 65 #define NLOG_CLOCKEVENT 0x00000200 /* clock events */ 70 #define NLOG_SYNCMASK 0x0000F000 /* sync log events */ [all …]
|