Home
last modified time | relevance | path

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

12345678910>>...38

/external/wpa_supplicant_8/src/drivers/
Dndis_events.c115 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
143 CloseHandle(events->read_pipe); in ndis_events_destructor()
[all …]
/external/f2fs-tools/scripts/
Dtracepoint.sh9 echo 0 > $TRACE/events/mmc/enable
13 echo 0 > $TRACE/events/block/block_rq_complete/enable
14 echo 0 > $TRACE/events/block/block_bio_complete/enable
18 echo $G > $TRACE/events/f2fs/f2fs_get_victim/enable
22 echo $A > $TRACE/events/f2fs/f2fs_reserve_new_block/enable
26 echo $T > $TRACE/events/f2fs/f2fs_truncate/enable
27 echo $T > $TRACE/events/f2fs/f2fs_truncate_inode_blocks_enter/enable
28 echo $T > $TRACE/events/f2fs/f2fs_truncate_inode_blocks_exit/enable
29 echo $T > $TRACE/events/f2fs/f2fs_truncate_blocks_enter/enable
30 echo $T > $TRACE/events/f2fs/f2fs_truncate_blocks_exit/enable
[all …]
/external/linux-kselftest/tools/testing/selftests/powerpc/pmu/
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
37 e = &events[0]; in per_event_excludes()
42 e = &events[1]; in per_event_excludes()
49 e = &events[2]; in per_event_excludes()
56 e = &events[3]; in per_event_excludes()
63 FAIL_IF(event_open(&events[0])); in per_event_excludes()
71 FAIL_IF(event_open_with_group(&events[i], events[0].fd)); in per_event_excludes()
86 FAIL_IF(event_read(&events[i])); in per_event_excludes()
87 event_report(&events[i]); in per_event_excludes()
95 FAIL_IF(events[i].result.running != events[i].result.enabled); in per_event_excludes()
[all …]
/external/python/cpython2/Lib/unittest/test/
Dtest_functiontestcase.py23 events = []
24 result = LoggingResult(events)
27 events.append('setUp')
31 events.append('test')
34 events.append('tearDown')
38 self.assertEqual(events, expected)
48 events = []
49 result = LoggingResult(events)
52 events.append('setUp')
55 events.append('test')
[all …]
/external/libevent/
Depoll.c57 struct epoll_event *events; member
80 short old, short events, void *p);
82 short old, short events, void *p);
131 epollop->events = mm_calloc(INITIAL_NEVENT, sizeof(struct epoll_event)); in epoll_init()
132 if (epollop->events == NULL) { in epoll_init()
179 int op, events = 0; in epoll_apply_one_change() local
198 events = 0; in epoll_apply_one_change()
201 events |= EPOLLIN; in epoll_apply_one_change()
205 events |= EPOLLIN; in epoll_apply_one_change()
208 events |= EPOLLOUT; in epoll_apply_one_change()
[all …]
Ddevpoll.c54 struct pollfd *events; member
62 static int devpoll_add(struct event_base *, int fd, short old, short events, void *);
63 static int devpoll_del(struct event_base *, int fd, short old, short events, void *);
97 devpoll_queue(struct devpollop *devpollop, int fd, int events) { in devpoll_queue() argument
111 pfd->events = events; in devpoll_queue()
143 devpollop->events = mm_calloc(nfiles, sizeof(struct pollfd)); in devpoll_init()
144 if (devpollop->events == NULL) { in devpoll_init()
153 mm_free(devpollop->events); in devpoll_init()
168 struct pollfd *events = devpollop->events; in devpoll_dispatch() local
178 dvp.dp_fds = devpollop->events; in devpoll_dispatch()
[all …]
Dkqueue.c73 struct kevent *events; member
135 kqueueop->events = mm_calloc(NEVENT, sizeof(struct kevent)); in kq_init()
136 if (kqueueop->events == NULL) in kq_init()
151 kqueueop->changes, 1, kqueueop->events, NEVENT, NULL) != 1 || in kq_init()
152 (int)kqueueop->events[0].ident != -1 || in kq_init()
153 kqueueop->events[0].flags != EV_ERROR) { in kq_init()
243 newresult = mm_realloc(kqop->events, in kq_grow_events()
247 kqop->events = newresult; in kq_grow_events()
259 struct kevent *events = kqop->events; in kq_dispatch() local
298 events = kqop->events; in kq_dispatch()
[all …]
/external/linux-kselftest/tools/testing/selftests/ftrace/test.d/trigger/
Dtrigger-filter.tc16 if [ ! -f set_event -o ! -d events/sched ]; then
21 if [ ! -f events/sched/sched_process_fork/trigger ]; then
31 echo 'traceoff if child_pid == 0' > events/sched/sched_process_fork/trigger
40 ! echo 'traceoff if a' > events/sched/sched_process_fork/trigger
41 ! echo 'traceoff if common_pid=0' > events/sched/sched_process_fork/trigger
42 ! echo 'traceoff if common_pid==b' > events/sched/sched_process_fork/trigger
43 echo 'traceoff if common_pid == 0' > events/sched/sched_process_fork/trigger
44 echo '!traceoff' > events/sched/sched_process_fork/trigger
45 ! echo 'traceoff if common_pid == child_pid' > events/sched/sched_process_fork/trigger
46 echo 'traceoff if common_pid <= 0' > events/sched/sched_process_fork/trigger
[all …]
Dtrigger-eventonoff.tc16 if [ ! -f set_event -o ! -d events/sched ]; then
21 if [ ! -f events/sched/sched_process_fork/trigger ]; then
29 FEATURE=`grep enable_event events/sched/sched_process_fork/trigger`
36 echo 0 > events/sched/sched_switch/enable
37 echo 'enable_event:sched:sched_switch' > events/sched/sched_process_fork/trigger
39 if [ `cat events/sched/sched_switch/enable` != '1*' ]; then
46 echo 1 > events/sched/sched_switch/enable
47 echo 'disable_event:sched:sched_switch' > events/sched/sched_process_fork/trigger
49 if [ `cat events/sched/sched_switch/enable` != '0*' ]; then
56 ! echo 'enable_event:nogroup:noevent' > events/sched/sched_process_fork/trigger
[all …]
Dtrigger-multihist.tc16 if [ ! -f set_event -o ! -d events/sched ]; then
21 if [ ! -f events/sched/sched_process_fork/trigger ]; then
26 if [ ! -f events/sched/sched_process_fork/hist ]; then
38 echo 'hist:keys=parent_pid:vals=child_pid' > events/sched/sched_process_fork/trigger
39 echo 'hist:keys=parent_comm:vals=child_pid' >> events/sched/sched_process_fork/trigger
41 grep parent_pid events/sched/sched_process_fork/hist > /dev/null || \
43 grep child events/sched/sched_process_fork/hist > /dev/null || \
46 grep "parent_comm: $COMM" events/sched/sched_process_fork/hist > /dev/null || \
53 echo 'hist:name=test_hist:keys=common_pid' > events/sched/sched_process_fork/trigger
55 grep test_hist events/sched/sched_process_fork/hist > /dev/null || \
[all …]
Dtrigger-hist.tc16 if [ ! -f set_event -o ! -d events/sched ]; then
21 if [ ! -f events/sched/sched_process_fork/trigger ]; then
26 if [ ! -f events/sched/sched_process_fork/hist ]; then
36 echo 'hist:keys=parent_pid:vals=child_pid' > events/sched/sched_process_fork/trigger
38 grep parent_pid events/sched/sched_process_fork/hist > /dev/null || \
40 grep child events/sched/sched_process_fork/hist > /dev/null || \
47 echo 'hist:keys=parent_pid,child_pid' > events/sched/sched_process_fork/trigger
49 grep '^{ parent_pid:.*, child_pid:.*}' events/sched/sched_process_fork/hist > /dev/null || \
56 echo 'hist:keys=parent_comm' > events/sched/sched_process_fork/trigger
59 grep "parent_comm: $COMM" events/sched/sched_process_fork/hist > /dev/null || \
[all …]
Dtrigger-hist-mod.tc16 if [ ! -f set_event -o ! -d events/sched ]; then
21 if [ ! -f events/sched/sched_process_fork/trigger ]; then
26 if [ ! -f events/sched/sched_process_fork/hist ]; then
36 echo 'hist:keys=common_pid.execname' > events/sched/sched_process_fork/trigger
39 grep "common_pid: $COMM" events/sched/sched_process_fork/hist > /dev/null || \
46 echo 'hist:keys=parent_pid.hex' > events/sched/sched_process_fork/trigger
50 grep "parent_pid: $HEX" events/sched/sched_process_fork/hist > /dev/null || \
57 echo 'hist:keys=id.syscall' > events/raw_syscalls/sys_exit/trigger
59 grep "id: \(unknown_\|sys_\)" events/raw_syscalls/sys_exit/hist > /dev/null || \
67 echo 'hist:keys=bytes_req.log2' > events/kmem/kmalloc/trigger
[all …]
Dtrigger-traceonoff.tc16 if [ ! -f set_event -o ! -d events/sched ]; then
21 if [ ! -f events/sched/sched_process_fork/trigger ]; then
31 echo 'traceoff' > events/sched/sched_process_fork/trigger
41 echo 'traceon' > events/sched/sched_process_fork/trigger
50 ! echo 'traceoff:badparam' > events/sched/sched_process_fork/trigger
51 ! echo 'traceoff+0' > events/sched/sched_process_fork/trigger
52 echo 'traceon' > events/sched/sched_process_fork/trigger
53 ! echo 'traceon' > events/sched/sched_process_fork/trigger
54 ! echo 'traceoff' > events/sched/sched_process_fork/trigger
Dtrigger-snapshot.tc16 if [ ! -f set_event -o ! -d events/sched ]; then
21 if [ ! -f events/sched/sched_process_fork/trigger ]; then
34 FEATURE=`grep snapshot events/sched/sched_process_fork/trigger`
42 echo 1 > events/sched/sched_process_fork/enable
44 echo 'snapshot:1' > events/sched/sched_process_fork/trigger
51 echo 0 > events/sched/sched_process_fork/enable
55 ! echo "snapshot+1" > events/sched/sched_process_fork/trigger
56 echo "snapshot" > events/sched/sched_process_fork/trigger
57 ! echo "snapshot" > events/sched/sched_process_fork/trigger
/external/chromium-trace/catapult/common/py_trace_event/py_trace_event/trace_event_impl/
Dparsed_trace_events.py9 def __init__(self, events = None, trace_filename = None): argument
17 if trace_filename and events:
19 if not trace_filename and events == None:
42 events = json.loads(t)
46 if 'traceEvents' in events:
47 events = events['traceEvents']
49 if not hasattr(events, '__iter__'):
51 self.events = events
56 return len(self.events)
59 return self.events[i]
[all …]
/external/linux-kselftest/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 …]
/external/snakeyaml/src/test/java/org/pyyaml/
DCanonicalParser.java21 import org.yaml.snakeyaml.events.AliasEvent;
22 import org.yaml.snakeyaml.events.DocumentEndEvent;
23 import org.yaml.snakeyaml.events.DocumentStartEvent;
24 import org.yaml.snakeyaml.events.Event;
25 import org.yaml.snakeyaml.events.ImplicitTuple;
26 import org.yaml.snakeyaml.events.MappingEndEvent;
27 import org.yaml.snakeyaml.events.MappingStartEvent;
28 import org.yaml.snakeyaml.events.ScalarEvent;
29 import org.yaml.snakeyaml.events.SequenceEndEvent;
30 import org.yaml.snakeyaml.events.SequenceStartEvent;
[all …]
/external/ltp/testcases/kernel/syscalls/epoll_ctl/
Depoll_ctl01.c41 static struct epoll_event events[3] = { variable
42 {.events = EPOLLIN},
43 {.events = EPOLLOUT},
44 {.events = EPOLLIN}
55 events[0].data.fd = fd[0]; in setup()
56 events[1].data.fd = fd[1]; in setup()
57 events[2].data.fd = fd[1]; in setup()
73 int fd, unsigned int events) in has_event() argument
78 if ((epvs[i].data.fd == fd) && (epvs[i].events == events)) in has_event()
93 {.events = 0, .data.fd = 0}, in check_epoll_ctl()
[all …]
Depoll_ctl02.c51 static struct epoll_event events[2] = { variable
52 {.events = EPOLLIN},
53 {.events = EPOLLOUT},
63 {&inv, EPOLL_CTL_ADD, &fd[1], &events[1], EBADF},
64 {&epfd, EPOLL_CTL_ADD, &inv, &events[1], EBADF},
65 {&epfd, -1, &fd[1], &events[1], EINVAL},
66 {&epfd, EPOLL_CTL_ADD, &epfd, &events[1], EINVAL},
67 {&epfd, EPOLL_CTL_DEL, &fd[1], &events[1], ENOENT},
68 {&epfd, EPOLL_CTL_MOD, &fd[1], &events[1], ENOENT},
69 {&epfd, EPOLL_CTL_ADD, &fd[0], &events[0], EEXIST}
[all …]
/external/strace/tests-mx32/
Dpoll.c58 short events = pfd->events; in print_pollfd_entering() local
60 if (pfd->events) { in print_pollfd_entering()
61 PRINT_EVENT(POLLIN, events); in print_pollfd_entering()
62 PRINT_EVENT(POLLPRI, events); in print_pollfd_entering()
63 PRINT_EVENT(POLLOUT, events); in print_pollfd_entering()
65 PRINT_EVENT(POLLRDNORM, events); in print_pollfd_entering()
68 PRINT_EVENT(POLLWRNORM, events); in print_pollfd_entering()
71 PRINT_EVENT(POLLRDBAND, events); in print_pollfd_entering()
74 PRINT_EVENT(POLLWRBAND, events); in print_pollfd_entering()
76 PRINT_EVENT(POLLERR, events); in print_pollfd_entering()
[all …]
/external/strace/tests/
Dpoll.c58 short events = pfd->events; in print_pollfd_entering() local
60 if (pfd->events) { in print_pollfd_entering()
61 PRINT_EVENT(POLLIN, events); in print_pollfd_entering()
62 PRINT_EVENT(POLLPRI, events); in print_pollfd_entering()
63 PRINT_EVENT(POLLOUT, events); in print_pollfd_entering()
65 PRINT_EVENT(POLLRDNORM, events); in print_pollfd_entering()
68 PRINT_EVENT(POLLWRNORM, events); in print_pollfd_entering()
71 PRINT_EVENT(POLLRDBAND, events); in print_pollfd_entering()
74 PRINT_EVENT(POLLWRBAND, events); in print_pollfd_entering()
76 PRINT_EVENT(POLLERR, events); in print_pollfd_entering()
[all …]
/external/strace/tests-m32/
Dpoll.c58 short events = pfd->events; in print_pollfd_entering() local
60 if (pfd->events) { in print_pollfd_entering()
61 PRINT_EVENT(POLLIN, events); in print_pollfd_entering()
62 PRINT_EVENT(POLLPRI, events); in print_pollfd_entering()
63 PRINT_EVENT(POLLOUT, events); in print_pollfd_entering()
65 PRINT_EVENT(POLLRDNORM, events); in print_pollfd_entering()
68 PRINT_EVENT(POLLWRNORM, events); in print_pollfd_entering()
71 PRINT_EVENT(POLLRDBAND, events); in print_pollfd_entering()
74 PRINT_EVENT(POLLWRBAND, events); in print_pollfd_entering()
76 PRINT_EVENT(POLLERR, events); in print_pollfd_entering()
[all …]
/external/valgrind/callgrind/
Dcallgrind_control.in94 @events = split(/\s+/, $events);
95 %events = ();
97 foreach $event (@events) {
98 $events{$event} = $n;
103 (defined $events{$show_event}) or
107 @show_events = @events;
111 push(@show_order, $events{$show_event});
124 (@CC <= @events) or die("Line $.: too many event counts\n");
140 foreach my $event (@events) {
176 my $event = $events[$i];
[all …]
/external/autotest/client/bin/input/
Dinput_device.py158 self.events = {} # dict { ev_type : dict { ev_code : Valuator } }
196 elif ev.type not in self.events or ev.code not in self.events[ev.type]:
205 self.events[ev.type][ev.code].value = ev.value
207 self.events[ev.type][ev.code].value = ev.value
260 self.events[ev_type] = {}
271 self.events[ev_type][c] = self._ioctl_absinfo(c)
273 self.events[ev_type][c] = self._ioctl_get_switch(c)
275 self.events[ev_type][c] = Valuator()
312 if c not in self.events[EV_ABS]:
333 ev_abs = self.events[EV_ABS]
[all …]

12345678910>>...38