/tools/perf/tests/ |
D | event_update.c | 20 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/ |
D | x86-opcode-map.txt | 25 # (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/ |
D | epoll-ctl.c | 103 struct epoll_event ev; in nest_epollfd() local 119 ev.events = EPOLLHUP; /* anything */ in nest_epollfd() 120 ev.data.u64 = i; /* any number */ in nest_epollfd() 124 epollfdp[i], &ev) < 0) in nest_epollfd() 128 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, *epollfdp, &ev) < 0) in nest_epollfd() 135 struct epoll_event ev; in do_epoll_op() local 137 ev.events = EPOLLIN; in do_epoll_op() 138 ev.data.u64 = fd; in do_epoll_op() 142 error = epoll_ctl(epollfd, EPOLL_CTL_ADD, fd, &ev); in do_epoll_op() 145 ev.events = EPOLLOUT; in do_epoll_op() [all …]
|
D | epoll-wait.c | 188 struct epoll_event ev; in workerfn() local 208 ret = epoll_wait(efd, &ev, 1, to); in workerfn() 213 fd = ev.data.fd; in workerfn() 220 ev.events = EPOLLIN | EPOLLET; in workerfn() 221 ret = epoll_ctl(efd, EPOLL_CTL_ADD, fd, &ev); in workerfn() 226 ev.events |= EPOLLIN | EPOLLONESHOT; in workerfn() 227 ret = epoll_ctl(efd, EPOLL_CTL_MOD, fd, &ev); in workerfn() 243 struct epoll_event ev; in nest_epollfd() local 259 ev.events = EPOLLHUP; /* anything */ in nest_epollfd() 260 ev.data.u64 = i; /* any number */ in nest_epollfd() [all …]
|
/tools/perf/util/ |
D | synthetic-events.c | 1605 union perf_event *ev; in perf_event__synthesize_id_index() local 1620 ev = zalloc(sz); in perf_event__synthesize_id_index() 1621 if (!ev) in perf_event__synthesize_id_index() 1624 ev->id_index.header.type = PERF_RECORD_ID_INDEX; in perf_event__synthesize_id_index() 1625 ev->id_index.header.size = sz; in perf_event__synthesize_id_index() 1626 ev->id_index.nr = n; in perf_event__synthesize_id_index() 1636 err = process(tool, ev, NULL, machine); in perf_event__synthesize_id_index() 1643 e = &ev->id_index.entries[i++]; in perf_event__synthesize_id_index() 1649 free(ev); in perf_event__synthesize_id_index() 1660 ev->id_index.header.size = sz; in perf_event__synthesize_id_index() [all …]
|
D | metricgroup.c | 190 struct evsel *ev, *current_leader = NULL; in find_evsel_group() local 206 evlist__for_each_entry (perf_evlist, ev) { in find_evsel_group() 211 if (has_constraint && ev->weak_group) in find_evsel_group() 214 if (metric_no_merge && test_bit(ev->idx, evlist_used)) in find_evsel_group() 216 if (!has_constraint && ev->leader != current_leader) { in find_evsel_group() 224 current_leader = ev->leader; in find_evsel_group() 234 if (contains_event(metric_events, matched_events, ev->name)) in find_evsel_group() 237 if (hashmap__find(&pctx->ids, ev->name, (void **)&val_ptr)) in find_evsel_group() 238 metric_events[matched_events++] = ev; in find_evsel_group() 246 evlist__for_each_entry(perf_evlist, ev) { in find_evsel_group() [all …]
|
D | auxtrace.c | 1190 union perf_event *ev; in perf_event__synthesize_auxtrace_info() local 1196 ev = zalloc(sizeof(struct perf_record_auxtrace_info) + priv_size); in perf_event__synthesize_auxtrace_info() 1197 if (!ev) in perf_event__synthesize_auxtrace_info() 1200 ev->auxtrace_info.header.type = PERF_RECORD_AUXTRACE_INFO; in perf_event__synthesize_auxtrace_info() 1201 ev->auxtrace_info.header.size = sizeof(struct perf_record_auxtrace_info) + in perf_event__synthesize_auxtrace_info() 1203 err = auxtrace_record__info_fill(itr, session, &ev->auxtrace_info, in perf_event__synthesize_auxtrace_info() 1208 err = process(tool, ev, NULL, NULL); in perf_event__synthesize_auxtrace_info() 1210 free(ev); in perf_event__synthesize_auxtrace_info() 1662 union perf_event ev; in __auxtrace_mmap__read() local 1735 memset(&ev, 0, sizeof(ev)); in __auxtrace_mmap__read() [all …]
|
D | evlist.c | 361 bool evsel__cpu_iter_skip_no_inc(struct evsel *ev, int cpu) in evsel__cpu_iter_skip_no_inc() argument 363 if (ev->cpu_iter >= ev->core.cpus->nr) in evsel__cpu_iter_skip_no_inc() 365 if (cpu >= 0 && ev->core.cpus->map[ev->cpu_iter] != cpu) in evsel__cpu_iter_skip_no_inc() 370 bool evsel__cpu_iter_skip(struct evsel *ev, int cpu) in evsel__cpu_iter_skip() argument 372 if (!evsel__cpu_iter_skip_no_inc(ev, cpu)) { in evsel__cpu_iter_skip() 373 ev->cpu_iter++; in evsel__cpu_iter_skip()
|
D | evlist.h | 351 bool evsel__cpu_iter_skip(struct evsel *ev, int cpu); 352 bool evsel__cpu_iter_skip_no_inc(struct evsel *ev, int cpu);
|
D | header.c | 3949 struct perf_record_event_update *ev = &event->event_update; in perf_event__fprintf_event_update() local 3955 ret = fprintf(fp, "\n... id: %" PRI_lu64 "\n", ev->id); in perf_event__fprintf_event_update() 3957 switch (ev->type) { in perf_event__fprintf_event_update() 3959 ev_scale = (struct perf_record_event_update_scale *)ev->data; in perf_event__fprintf_event_update() 3963 ret += fprintf(fp, "... unit: %s\n", ev->data); in perf_event__fprintf_event_update() 3966 ret += fprintf(fp, "... name: %s\n", ev->data); in perf_event__fprintf_event_update() 3969 ev_cpus = (struct perf_record_event_update_cpus *)ev->data; in perf_event__fprintf_event_update() 4029 struct perf_record_event_update *ev = &event->event_update; in perf_event__process_event_update() local 4041 evsel = perf_evlist__id2evsel(evlist, ev->id); in perf_event__process_event_update() 4045 switch (ev->type) { in perf_event__process_event_update() [all …]
|
/tools/testing/selftests/kcmp/ |
D | kcmp_test.c | 34 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/ |
D | reuseport_dualstack.c | 104 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()
|
D | tcp_fastopen_backup_key.c | 244 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 …]
|
D | reuseport_bpf_numa.c | 163 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()
|
D | reuseport_addr_any.c | 170 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()
|
D | reuseport_bpf_cpu.c | 153 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()
|
D | reuseport_bpf.c | 218 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()
|
D | txtimestamp.c | 521 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/testing/selftests/bpf/progs/ |
D | test_tcp_estats.c | 239 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()
|
D | bpf_dctcp.c | 171 void BPF_PROG(dctcp_cwnd_event, struct sock *sk, enum tcp_ca_event ev) in BPF_PROG() argument 175 switch (ev) { in BPF_PROG() 178 dctcp_ece_ack_update(sk, ev, &ca->prior_rcv_nxt, &ca->ce_state); in BPF_PROG()
|
/tools/testing/vsock/ |
D | util.c | 52 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/ |
D | select_reuseport.c | 409 struct epoll_event ev; in do_test() local 417 nev = epoll_wait(epfd, &ev, 1, expected >= PASS ? 5 : 0); in do_test() 432 cmd->reuseport_index != ev.data.u32, in do_test() 435 cmd->pass_on_failure, cmd->reuseport_index, ev.data.u32); in do_test() 437 srv_fd = sk_fds[ev.data.u32]; in do_test() 443 ev.data.u32, new_fd, errno); in do_test() 449 ev.data.u32, nread, sizeof(rcv_cmd), errno); in do_test() 457 ev.data.u32, nread, sizeof(rcv_cmd), errno); in do_test() 554 struct epoll_event ev; in test_detach_bpf() local 580 nev = epoll_wait(epfd, &ev, 1, 5); in test_detach_bpf() [all …]
|
/tools/perf/ |
D | builtin-inject.c | 246 union perf_event *ev = (union perf_event *)inject->event_copy; in perf_inject__cut_auxtrace_sample() local 253 memcpy(ev, event, sz1); in perf_inject__cut_auxtrace_sample() 254 memcpy((void *)ev + sz1, (void *)event + event->header.size - sz2, sz2); in perf_inject__cut_auxtrace_sample() 255 ev->header.size = sz1 + sz2; in perf_inject__cut_auxtrace_sample() 256 ((u64 *)((void *)ev + sz1))[-1] = 0; in perf_inject__cut_auxtrace_sample() 258 return ev; in perf_inject__cut_auxtrace_sample()
|
/tools/testing/selftests/bpf/ |
D | bpf_tcp_helpers.h | 164 void (*cwnd_event)(struct sock *sk, enum tcp_ca_event ev);
|
/tools/testing/ktest/ |
D | ktest.pl | 1325 my $ev; 1330 $ev = $evals{$option_name}; 1332 $ev = $evals{$name}; 1337 for my $e (@{$ev}) {
|