Home
last modified time | relevance | path

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

/tools/perf/tests/
Devent_update.c20 struct perf_record_event_update *ev = (struct perf_record_event_update *)event; in process_event_unit() local
22 TEST_ASSERT_VAL("wrong id", ev->id == 123); in process_event_unit()
23 TEST_ASSERT_VAL("wrong id", ev->type == PERF_EVENT_UPDATE__UNIT); in process_event_unit()
24 TEST_ASSERT_VAL("wrong unit", !strcmp(ev->data, "KRAVA")); in process_event_unit()
33 struct perf_record_event_update *ev = (struct perf_record_event_update *)event; in process_event_scale() local
36 ev_data = (struct perf_record_event_update_scale *)ev->data; in process_event_scale()
38 TEST_ASSERT_VAL("wrong id", ev->id == 123); in process_event_scale()
39 TEST_ASSERT_VAL("wrong id", ev->type == PERF_EVENT_UPDATE__SCALE); in process_event_scale()
55 struct perf_record_event_update *ev = (struct perf_record_event_update *)event; in process_event_name() local
57 TEST_ASSERT_VAL("wrong id", ev->id == 123); in process_event_name()
[all …]
/tools/arch/x86/lib/
Dx86-opcode-map.txt25 # (ev): this opcode requires EVEX prefix.
455 …Vx,Wx (66),(evo) | vmovdqu Vx,Wx (F3) | vmovdqu32/64 Vx,Wx (F3),(evo) | vmovdqu8/16 Vx,Wx (F2),(ev)
466 …dq Vx,Wpd (evo) | vcvttsd2usi Gv,Wx (F2),(ev) | vcvttss2usi Gv,Wx (F3),(ev) | vcvttps2uqq/pd2uqq V…
467 …2udq Vx,Wpd (evo) | vcvtsd2usi Gv,Wx (F2),(ev) | vcvtss2usi Gv,Wx (F3),(ev) | vcvtps2uqq/pd2uqq Vx…
468 7a: vcvtudq2pd/uqq2pd Vpd,Wx (F3),(ev) | vcvtudq2ps/uqq2ps Vpd,Wx (F2),(ev) | vcvttps2qq/pd2qq Vx,W…
469 7b: vcvtusi2sd Vpd,Hpd,Ev (F2),(ev) | vcvtusi2ss Vps,Hps,Ev (F3),(ev) | vcvtps2qq/pd2qq Vx,Wx (66),…
473 …Wx,Vx (66),(evo) | vmovdqu Wx,Vx (F3) | vmovdqu32/64 Wx,Vx (F3),(evo) | vmovdqu8/16 Wx,Vx (F2),(ev)
634 10: pblendvb Vdq,Wdq (66) | vpsrlvw Vx,Hx,Wx (66),(evo) | vpmovuswb Wx,Vx (F3),(ev)
635 11: vpmovusdb Wx,Vd (F3),(ev) | vpsravw Vx,Hx,Wx (66),(ev)
636 12: vpmovusqb Wx,Vq (F3),(ev) | vpsllvw Vx,Hx,Wx (66),(ev)
[all …]
/tools/perf/bench/
Depoll-ctl.c102 struct epoll_event ev; in nest_epollfd() local
118 ev.events = EPOLLHUP; /* anything */ in nest_epollfd()
119 ev.data.u64 = i; /* any number */ in nest_epollfd()
123 epollfdp[i], &ev) < 0) in nest_epollfd()
127 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, *epollfdp, &ev) < 0) in nest_epollfd()
134 struct epoll_event ev; in do_epoll_op() local
136 ev.events = EPOLLIN; in do_epoll_op()
137 ev.data.u64 = fd; in do_epoll_op()
141 error = epoll_ctl(epollfd, EPOLL_CTL_ADD, fd, &ev); in do_epoll_op()
144 ev.events = EPOLLOUT; in do_epoll_op()
[all …]
Depoll-wait.c187 struct epoll_event ev; in workerfn() local
207 ret = epoll_wait(efd, &ev, 1, to); in workerfn()
212 fd = ev.data.fd; in workerfn()
219 ev.events = EPOLLIN | EPOLLET; in workerfn()
220 ret = epoll_ctl(efd, EPOLL_CTL_ADD, fd, &ev); in workerfn()
225 ev.events |= EPOLLIN | EPOLLONESHOT; in workerfn()
226 ret = epoll_ctl(efd, EPOLL_CTL_MOD, fd, &ev); in workerfn()
242 struct epoll_event ev; in nest_epollfd() local
258 ev.events = EPOLLHUP; /* anything */ in nest_epollfd()
259 ev.data.u64 = i; /* any number */ in nest_epollfd()
[all …]
/tools/testing/selftests/kcmp/
Dkcmp_test.c34 struct epoll_event ev; in main() local
61 memset(&ev, 0xff, sizeof(ev)); in main()
62 ev.events = EPOLLIN | EPOLLOUT; in main()
64 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, pipefd[0], &ev)) { in main()
75 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, fddup, &ev)) { in main()
/tools/testing/selftests/net/
Dreuseport_dualstack.c104 struct epoll_event ev; in receive_once() local
108 i = epoll_wait(epfd, &ev, 1, -1); in receive_once()
113 fd = accept(ev.data.fd, NULL, NULL); in receive_once()
119 i = recv(ev.data.fd, buf, sizeof(buf), 0); in receive_once()
125 return ev.data.fd; in receive_once()
130 struct epoll_event ev; in test() local
139 ev.events = EPOLLIN; in test()
141 ev.data.fd = rcv_fds[i]; in test()
142 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fds[i], &ev)) in test()
Dtcp_fastopen_backup_key.c244 struct epoll_event ev; in run_one_test() local
256 ev.events = EPOLLIN; in run_one_test()
258 ev.data.fd = rcv_fds[i]; in run_one_test()
259 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fds[i], &ev)) in run_one_test()
270 i = epoll_wait(epfd, &ev, 1, -1); in run_one_test()
273 if (is_listen_fd(ev.data.fd)) { in run_one_test()
274 fd = accept(ev.data.fd, NULL, NULL); in run_one_test()
277 ev.data.fd = fd; in run_one_test()
278 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fd, &ev)) in run_one_test()
282 i = recv(ev.data.fd, buf, sizeof(buf), 0); in run_one_test()
[all …]
Dreuseport_bpf_numa.c163 struct epoll_event ev; in receive_on_node() local
167 i = epoll_wait(epfd, &ev, 1, -1); in receive_on_node()
172 fd = accept(ev.data.fd, NULL, NULL); in receive_on_node()
178 i = recv(ev.data.fd, buf, sizeof(buf), 0); in receive_on_node()
185 if (ev.data.fd == rcv_fd[i]) in receive_on_node()
196 struct epoll_event ev; in test() local
206 ev.events = EPOLLIN; in test()
207 ev.data.fd = rcv_fd[node]; in test()
208 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fd[node], &ev)) in test()
Dreuseport_addr_any.c170 struct epoll_event ev; in receive_once() local
174 i = epoll_wait(epfd, &ev, 1, 3); in receive_once()
179 fd = accept(ev.data.fd, NULL, NULL); in receive_once()
185 i = recv(ev.data.fd, buf, sizeof(buf), 0); in receive_once()
191 return ev.data.fd; in receive_once()
196 struct epoll_event ev; in test() local
203 ev.events = EPOLLIN; in test()
205 ev.data.fd = rcv_fds[i]; in test()
206 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fds[i], &ev)) in test()
Dreuseport_bpf_cpu.c153 struct epoll_event ev; in receive_on_cpu() local
157 i = epoll_wait(epfd, &ev, 1, -1); in receive_on_cpu()
162 fd = accept(ev.data.fd, NULL, NULL); in receive_on_cpu()
168 i = recv(ev.data.fd, buf, sizeof(buf), 0); in receive_on_cpu()
175 if (ev.data.fd == rcv_fd[i]) in receive_on_cpu()
186 struct epoll_event ev; in test() local
196 ev.events = EPOLLIN; in test()
197 ev.data.fd = rcv_fd[cpu]; in test()
198 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fd[cpu], &ev)) in test()
Dreuseport_bpf.c218 struct epoll_event ev; in test_recv_order() local
226 ev.events = EPOLLIN; in test_recv_order()
227 ev.data.fd = fd[i]; in test_recv_order()
228 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fd[i], &ev)) in test_recv_order()
242 i = epoll_wait(epfd, &ev, 1, -1); in test_recv_order()
247 conn = accept(ev.data.fd, NULL, NULL); in test_recv_order()
253 i = recvmsg(ev.data.fd, &msg, 0); in test_recv_order()
262 if (ev.data.fd == fd[i]) in test_recv_order()
Dtxtimestamp.c521 struct epoll_event ev; in do_test() local
523 memset(&ev, 0, sizeof(ev)); in do_test()
524 ev.data.fd = fd; in do_test()
526 ev.events |= EPOLLET; in do_test()
530 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fd, &ev)) in do_test()
/tools/perf/util/
Dsynthetic-events.c1722 union perf_event *ev; in perf_event__synthesize_id_index() local
1737 ev = zalloc(sz); in perf_event__synthesize_id_index()
1738 if (!ev) in perf_event__synthesize_id_index()
1741 ev->id_index.header.type = PERF_RECORD_ID_INDEX; in perf_event__synthesize_id_index()
1742 ev->id_index.header.size = sz; in perf_event__synthesize_id_index()
1743 ev->id_index.nr = n; in perf_event__synthesize_id_index()
1753 err = process(tool, ev, NULL, machine); in perf_event__synthesize_id_index()
1760 e = &ev->id_index.entries[i++]; in perf_event__synthesize_id_index()
1766 free(ev); in perf_event__synthesize_id_index()
1777 ev->id_index.header.size = sz; in perf_event__synthesize_id_index()
[all …]
Dmetricgroup.c198 struct evsel *ev, *current_leader = NULL; in find_evsel_group() local
214 evlist__for_each_entry (perf_evlist, ev) { in find_evsel_group()
219 if (has_constraint && ev->weak_group) in find_evsel_group()
222 if (metric_no_merge && test_bit(ev->core.idx, evlist_used)) in find_evsel_group()
224 if (!has_constraint && !evsel__has_leader(ev, current_leader)) { in find_evsel_group()
232 current_leader = evsel__leader(ev); in find_evsel_group()
242 if (contains_event(metric_events, matched_events, ev->name)) in find_evsel_group()
245 if (hashmap__find(&pctx->ids, ev->name, (void **)&val_ptr)) in find_evsel_group()
246 metric_events[matched_events++] = ev; in find_evsel_group()
254 evlist__for_each_entry(perf_evlist, ev) { in find_evsel_group()
[all …]
Dauxtrace.c1201 union perf_event *ev; in perf_event__synthesize_auxtrace_info() local
1207 ev = zalloc(sizeof(struct perf_record_auxtrace_info) + priv_size); in perf_event__synthesize_auxtrace_info()
1208 if (!ev) in perf_event__synthesize_auxtrace_info()
1211 ev->auxtrace_info.header.type = PERF_RECORD_AUXTRACE_INFO; in perf_event__synthesize_auxtrace_info()
1212 ev->auxtrace_info.header.size = sizeof(struct perf_record_auxtrace_info) + in perf_event__synthesize_auxtrace_info()
1214 err = auxtrace_record__info_fill(itr, session, &ev->auxtrace_info, in perf_event__synthesize_auxtrace_info()
1219 err = process(tool, ev, NULL, NULL); in perf_event__synthesize_auxtrace_info()
1221 free(ev); in perf_event__synthesize_auxtrace_info()
1760 union perf_event ev; in __auxtrace_mmap__read() local
1831 memset(&ev, 0, sizeof(ev)); in __auxtrace_mmap__read()
[all …]
Dheader.c4162 struct perf_record_event_update *ev = &event->event_update; in perf_event__fprintf_event_update() local
4168 ret = fprintf(fp, "\n... id: %" PRI_lu64 "\n", ev->id); in perf_event__fprintf_event_update()
4170 switch (ev->type) { in perf_event__fprintf_event_update()
4172 ev_scale = (struct perf_record_event_update_scale *)ev->data; in perf_event__fprintf_event_update()
4176 ret += fprintf(fp, "... unit: %s\n", ev->data); in perf_event__fprintf_event_update()
4179 ret += fprintf(fp, "... name: %s\n", ev->data); in perf_event__fprintf_event_update()
4182 ev_cpus = (struct perf_record_event_update_cpus *)ev->data; in perf_event__fprintf_event_update()
4242 struct perf_record_event_update *ev = &event->event_update; in perf_event__process_event_update() local
4254 evsel = evlist__id2evsel(evlist, ev->id); in perf_event__process_event_update()
4258 switch (ev->type) { in perf_event__process_event_update()
[all …]
/tools/testing/selftests/bpf/progs/
Dtest_tcp_estats.c239 struct tcp_estats_basic_event ev; in send_basic_event() local
242 memset(&ev, 0, sizeof(ev)); in send_basic_event()
243 tcp_estats_init(sk, &ev.event, &ev.conn_id, type); in send_basic_event()
244 bpf_map_update_elem(&ev_record_map, &key, &ev, BPF_ANY); in send_basic_event()
Dbpf_dctcp.c196 void BPF_PROG(dctcp_cwnd_event, struct sock *sk, enum tcp_ca_event ev) in BPF_PROG() argument
200 switch (ev) { in BPF_PROG()
203 dctcp_ece_ack_update(sk, ev, &ca->prior_rcv_nxt, &ca->ce_state); in BPF_PROG()
/tools/testing/vsock/
Dutil.c52 struct epoll_event ev; in vsock_wait_remote_close() local
61 ev.events = EPOLLRDHUP | EPOLLHUP; in vsock_wait_remote_close()
62 ev.data.fd = fd; in vsock_wait_remote_close()
63 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, fd, &ev) == -1) { in vsock_wait_remote_close()
68 nfds = epoll_wait(epollfd, &ev, 1, TIMEOUT * 1000); in vsock_wait_remote_close()
80 assert(ev.events & (EPOLLRDHUP | EPOLLHUP)); in vsock_wait_remote_close()
81 assert(ev.data.fd == fd); in vsock_wait_remote_close()
/tools/testing/selftests/bpf/prog_tests/
Dselect_reuseport.c410 struct epoll_event ev; in do_test() local
418 nev = epoll_wait(epfd, &ev, 1, expected >= PASS ? 5 : 0); in do_test()
433 cmd->reuseport_index != ev.data.u32, in do_test()
436 cmd->pass_on_failure, cmd->reuseport_index, ev.data.u32); in do_test()
438 srv_fd = sk_fds[ev.data.u32]; in do_test()
444 ev.data.u32, new_fd, errno); in do_test()
450 ev.data.u32, nread, sizeof(rcv_cmd), errno); in do_test()
458 ev.data.u32, nread, sizeof(rcv_cmd), errno); in do_test()
555 struct epoll_event ev; in test_detach_bpf() local
581 nev = epoll_wait(epfd, &ev, 1, 5); in test_detach_bpf()
[all …]
/tools/perf/
Dbuiltin-inject.c250 union perf_event *ev = (union perf_event *)inject->event_copy; in perf_inject__cut_auxtrace_sample() local
257 memcpy(ev, event, sz1); in perf_inject__cut_auxtrace_sample()
258 memcpy((void *)ev + sz1, (void *)event + event->header.size - sz2, sz2); in perf_inject__cut_auxtrace_sample()
259 ev->header.size = sz1 + sz2; in perf_inject__cut_auxtrace_sample()
260 ((u64 *)((void *)ev + sz1))[-1] = 0; in perf_inject__cut_auxtrace_sample()
262 return ev; in perf_inject__cut_auxtrace_sample()
/tools/testing/selftests/bpf/
Dbpf_tcp_helpers.h170 void (*cwnd_event)(struct sock *sk, enum tcp_ca_event ev);
/tools/testing/ktest/
Dktest.pl1385 my $ev;
1390 $ev = $evals{$option_name};
1392 $ev = $evals{$name};
1397 for my $e (@{$ev}) {
/tools/testing/selftests/filesystems/epoll/
Depoll_wakeup_test.c3346 struct epoll_event ev; in TEST() local
3354 ev.events = EPOLLIN | EPOLLET | EPOLLERR | EPOLLHUP; in TEST()
3355 ev.data.ptr = NULL; in TEST()
3356 r = epoll_ctl(ctx.epfd, EPOLL_CTL_ADD, ctx.evfd, &ev); in TEST()
/tools/perf/scripts/python/
Dexported-sql-viewer.py2146 def resizeEvent(self, ev): argument
2157 super(SwitchGraphSplitter, self).resizeEvent(ev)