/tools/testing/selftests/drivers/net/netdevsim/ |
D | udp_tunnel_nic.sh | 161 err_cnt "ethtool table $1 on port $port: $pfx - $msg" 171 err_cnt "table $1 on port $port: $pfx - $msg" 204 err_cnt "ethtool static entry: $pfx - $msg" 274 msg="new NIC device created" 279 msg="VxLAN v4 devices" 284 msg="VxLAN v4 devices go down" 290 msg="VxLAN v6 devices" 300 msg="another VxLAN v6 devices" 304 msg="Geneve device" 308 msg="NIC device goes down" [all …]
|
/tools/testing/selftests/ |
D | kselftest.h | 115 static inline void ksft_print_msg(const char *msg, ...) in ksft_print_msg() argument 120 va_start(args, msg); in ksft_print_msg() 123 vprintf(msg, args); in ksft_print_msg() 127 static inline void ksft_test_result_pass(const char *msg, ...) in ksft_test_result_pass() argument 134 va_start(args, msg); in ksft_test_result_pass() 137 vprintf(msg, args); in ksft_test_result_pass() 141 static inline void ksft_test_result_fail(const char *msg, ...) in ksft_test_result_fail() argument 148 va_start(args, msg); in ksft_test_result_fail() 151 vprintf(msg, args); in ksft_test_result_fail() 167 static inline void ksft_test_result_xfail(const char *msg, ...) in ksft_test_result_xfail() argument [all …]
|
/tools/testing/selftests/vm/ |
D | va_128TBswitch.c | 37 const char *msg; member 51 .msg = "mmap(ADDR_SWITCH_HINT - PAGE_SIZE, PAGE_SIZE)", 63 .msg = "mmap(ADDR_SWITCH_HINT - PAGE_SIZE, (2 * PAGE_SIZE))", 74 .msg = "mmap(ADDR_SWITCH_HINT, PAGE_SIZE)", 81 .msg = "mmap(ADDR_SWITCH_HINT, 2 * PAGE_SIZE, MAP_FIXED)", 87 .msg = "mmap(NULL)", 94 .msg = "mmap(LOW_ADDR)", 101 .msg = "mmap(HIGH_ADDR)", 108 .msg = "mmap(HIGH_ADDR) again", 115 .msg = "mmap(HIGH_ADDR, MAP_FIXED)", [all …]
|
/tools/perf/ui/gtk/ |
D | util.c | 33 char *msg; in perf_gtk__error() local 37 vasprintf(&msg, format, args) < 0) { in perf_gtk__error() 48 "<b>Error</b>\n\n%s", msg); in perf_gtk__error() 52 free(msg); in perf_gtk__error() 59 char *msg; in perf_gtk__warning_info_bar() local 62 vasprintf(&msg, format, args) < 0) { in perf_gtk__warning_info_bar() 69 gtk_label_set_text(GTK_LABEL(pgctx->message_label), msg); in perf_gtk__warning_info_bar() 74 free(msg); in perf_gtk__warning_info_bar() 80 char *msg, *p; in perf_gtk__warning_statusbar() local 83 vasprintf(&msg, format, args) < 0) { in perf_gtk__warning_statusbar() [all …]
|
/tools/perf/ui/ |
D | libslang.h | 21 #define slsmg_printf(msg, args...) \ argument 22 SLsmg_printf((char *)(msg), ##args) 23 #define slsmg_vprintf(msg, vargs) \ argument 24 SLsmg_vprintf((char *)(msg), vargs) 25 #define slsmg_write_nstring(msg, len) \ argument 26 SLsmg_write_nstring((char *)(msg), len)
|
D | helpline.c | 15 static void nop_helpline__push(const char *msg __maybe_unused) in nop_helpline__push() 38 void ui_helpline__push(const char *msg) in ui_helpline__push() argument 40 helpline_fns->push(msg); in ui_helpline__push() 64 void ui_helpline__puts(const char *msg) in ui_helpline__puts() argument 67 ui_helpline__push(msg); in ui_helpline__puts()
|
D | helpline.h | 10 void (*push)(const char *msg); 19 void ui_helpline__push(const char *msg); 22 void ui_helpline__puts(const char *msg);
|
/tools/testing/selftests/bpf/progs/ |
D | test_sockmap_kern.h | 235 int bpf_prog4(struct sk_msg_md *msg) in bpf_prog4() argument 242 bpf_msg_apply_bytes(msg, *bytes); in bpf_prog4() 245 bpf_msg_cork_bytes(msg, *bytes); in bpf_prog4() 249 bpf_msg_pull_data(msg, *start, *end, 0); in bpf_prog4() 253 err = bpf_msg_push_data(msg, *start_push, *end_push, 0); in bpf_prog4() 260 bpf_msg_pop_data(msg, *start_pop, *pop, 0); in bpf_prog4() 265 int bpf_prog6(struct sk_msg_md *msg) in bpf_prog6() argument 274 bpf_msg_apply_bytes(msg, *bytes); in bpf_prog6() 277 bpf_msg_cork_bytes(msg, *bytes); in bpf_prog6() 282 bpf_msg_pull_data(msg, *start, *end, 0); in bpf_prog6() [all …]
|
D | sockmap_tcp_msg_prog.c | 9 int bpf_prog1(struct sk_msg_md *msg) in bpf_prog1() argument 11 void *data_end = (void *)(long) msg->data_end; in bpf_prog1() 12 void *data = (void *)(long) msg->data; in bpf_prog1() 19 bpf_printk("data length %i\n", (__u64)msg->data_end - (__u64)msg->data); in bpf_prog1()
|
/tools/testing/selftests/net/ |
D | ipv6_flowlabel.c | 41 struct msghdr msg = {0}; in do_send() local 48 msg.msg_iov = &iov; in do_send() 49 msg.msg_iovlen = 1; in do_send() 60 msg.msg_control = control; in do_send() 61 msg.msg_controllen = sizeof(control); in do_send() 64 ret = sendmsg(fd, &msg, 0); in do_send() 78 struct msghdr msg = {0}; in do_recv() local 87 msg.msg_iov = &iov; in do_recv() 88 msg.msg_iovlen = 1; in do_recv() 91 msg.msg_control = control; in do_recv() [all …]
|
D | msg_zerocopy.c | 170 static void add_zcopy_cookie(struct msghdr *msg, uint32_t cookie) in add_zcopy_cookie() argument 174 if (!msg->msg_control) in add_zcopy_cookie() 176 cm = (void *)msg->msg_control; in add_zcopy_cookie() 183 static bool do_sendmsg(int fd, struct msghdr *msg, bool do_zerocopy, int domain) in do_sendmsg() argument 190 for (i = 0; i < msg->msg_iovlen; i++) in do_sendmsg() 191 len += msg->msg_iov[i].iov_len; in do_sendmsg() 197 memset(&msg->msg_control, 0, sizeof(msg->msg_control)); in do_sendmsg() 198 msg->msg_controllen = CMSG_SPACE(sizeof(cookie)); in do_sendmsg() 199 msg->msg_control = (struct cmsghdr *)ckbuf; in do_sendmsg() 200 add_zcopy_cookie(msg, ++cookie); in do_sendmsg() [all …]
|
D | tcp_inq.c | 104 struct msghdr msg; in main() local 149 msg.msg_name = NULL; in main() 150 msg.msg_namelen = 0; in main() 151 msg.msg_iov = iov; in main() 152 msg.msg_iovlen = 1; in main() 153 msg.msg_control = cmsgbuf; in main() 154 msg.msg_controllen = sizeof(cmsgbuf); in main() 155 msg.msg_flags = 0; in main() 161 if (recvmsg(fd, &msg, 0) != iov[0].iov_len) in main() 163 if (msg.msg_flags & MSG_CTRUNC) in main() [all …]
|
D | so_txtime.c | 67 struct msghdr msg = {0}; in do_send_one() local 76 msg.msg_iov = &iov; in do_send_one() 77 msg.msg_iovlen = 1; in do_send_one() 81 msg.msg_control = &control; in do_send_one() 82 msg.msg_controllen = sizeof(control); in do_send_one() 86 cm = CMSG_FIRSTHDR(&msg); in do_send_one() 93 ret = sendmsg(fdt, &msg, 0); in do_send_one() 147 struct msghdr msg = {0}; in do_recv_errqueue_timeout() local 156 msg.msg_iov = &iov; in do_recv_errqueue_timeout() 157 msg.msg_iovlen = 1; in do_recv_errqueue_timeout() [all …]
|
D | txtimestamp.c | 308 static void __recv_errmsg_cmsg(struct msghdr *msg, int payload_len) in __recv_errmsg_cmsg() argument 315 for (cm = CMSG_FIRSTHDR(msg); in __recv_errmsg_cmsg() 317 cm = CMSG_NXTHDR(msg, cm)) { in __recv_errmsg_cmsg() 365 static struct msghdr msg; in recv_errmsg() local 374 memset(&msg, 0, sizeof(msg)); in recv_errmsg() 380 msg.msg_iov = &entry; in recv_errmsg() 381 msg.msg_iovlen = 1; in recv_errmsg() 382 msg.msg_name = NULL; in recv_errmsg() 383 msg.msg_namelen = 0; in recv_errmsg() 384 msg.msg_control = ctrl; in recv_errmsg() [all …]
|
D | udpgso_bench_tx.c | 215 struct msghdr msg = {0}; in flush_errqueue_recv() local 220 msg.msg_control = control; in flush_errqueue_recv() 221 msg.msg_controllen = sizeof(control); in flush_errqueue_recv() 222 ret = recvmsg(fd, &msg, MSG_ERRQUEUE); in flush_errqueue_recv() 227 if (msg.msg_flags != MSG_ERRQUEUE) in flush_errqueue_recv() 228 error(1, 0, "errqueue: flags 0x%x\n", msg.msg_flags); in flush_errqueue_recv() 230 for (cmsg = CMSG_FIRSTHDR(&msg); in flush_errqueue_recv() 232 cmsg = CMSG_NXTHDR(&msg, cmsg)) in flush_errqueue_recv() 235 msg.msg_flags = 0; in flush_errqueue_recv() 338 struct msghdr msg = {0}; in send_udp_sendmmsg() local [all …]
|
/tools/bpf/runqslower/ |
D | Makefile | 24 msg = macro 27 msg = @printf ' %-8s %s%s\n' "$(1)" "$(notdir $(2))" "$(if $(3), $(3))"; macro 40 $(call msg,CLEAN) 44 $(call msg,BINARY,$@) 53 $(call msg,GEN-SKEL,$@) 57 $(call msg,BPF,$@) 63 $(call msg,CC,$@) 67 $(call msg,MKDIR,$@) 71 $(call msg,GEN,$@)
|
/tools/include/linux/ |
D | build_bug.h | 39 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) argument 79 #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) argument
|
D | compiler.h | 14 # define __compiletime_assert(condition, msg, prefix, suffix) \ argument 16 extern void prefix ## suffix(void) __compiletime_error(msg); \ 21 # define __compiletime_assert(condition, msg, prefix, suffix) do { } while (0) argument 24 #define _compiletime_assert(condition, msg, prefix, suffix) \ argument 25 __compiletime_assert(condition, msg, prefix, suffix) 36 #define compiletime_assert(condition, msg) \ argument 37 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
|
/tools/accounting/ |
D | getdelays.c | 128 struct msgtemplate msg; in send_cmd() local 130 msg.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in send_cmd() 131 msg.n.nlmsg_type = nlmsg_type; in send_cmd() 132 msg.n.nlmsg_flags = NLM_F_REQUEST; in send_cmd() 133 msg.n.nlmsg_seq = 0; in send_cmd() 134 msg.n.nlmsg_pid = nlmsg_pid; in send_cmd() 135 msg.g.cmd = genl_cmd; in send_cmd() 136 msg.g.version = 0x1; in send_cmd() 137 na = (struct nlattr *) GENLMSG_DATA(&msg); in send_cmd() 141 msg.n.nlmsg_len += NLMSG_ALIGN(na->nla_len); in send_cmd() [all …]
|
/tools/bpf/resolve_btfids/ |
D | Makefile | 9 msg = macro 13 msg = macro 15 msg = @printf ' %-8s %s%s\n' "$(1)" "$(notdir $(2))" "$(if $(3), $(3))"; macro 41 $(call msg,MKDIR,,$@) 65 $(call msg,LINK,$@) 77 $(call msg,CLEAN,$(BINARY)) 84 $(call msg,GEN,,tags)
|
/tools/testing/vsock/ |
D | vsock_diag_test.c | 32 struct vsock_diag_msg msg; member 94 print_vsock_addr(fp, st->msg.vdiag_src_cid, st->msg.vdiag_src_port); in print_vsock_stat() 96 print_vsock_addr(fp, st->msg.vdiag_dst_cid, st->msg.vdiag_dst_port); in print_vsock_stat() 98 sock_type_str(st->msg.vdiag_type), in print_vsock_stat() 99 sock_state_str(st->msg.vdiag_state), in print_vsock_stat() 100 sock_shutdown_str(st->msg.vdiag_shutdown), in print_vsock_stat() 101 st->msg.vdiag_ino); in print_vsock_stat() 123 if (st->msg.vdiag_ino == stat.st_ino) in find_vsock_stat() 157 if (st->msg.vdiag_state != state) { in check_socket_state() 159 state, st->msg.vdiag_state); in check_socket_state() [all …]
|
/tools/testing/selftests/sigaltstack/ |
D | sas.c | 30 static const char *msg = "[OK]\tStack preserved"; variable 33 char msg[128]; member 52 strcpy(p->msg, msg); in my_usr1() 67 ksft_print_msg("%s\n", p->msg); in my_usr1() 83 p = memmem(aa, 1024, msg, strlen(msg)); in my_usr2() 87 strcpy(p->msg, msg2); in my_usr2()
|
/tools/perf/util/intel-pt-decoder/ |
D | intel-pt-log.h | 60 static inline void intel_pt_log_at(const char *msg, uint64_t u) in intel_pt_log_at() argument 62 intel_pt_log("%s at " x64_fmt "\n", msg, u); in intel_pt_log_at() 65 static inline void intel_pt_log_to(const char *msg, uint64_t u) in intel_pt_log_to() argument 67 intel_pt_log("%s to " x64_fmt "\n", msg, u); in intel_pt_log_to()
|
/tools/perf/trace/beauty/include/linux/ |
D | socket.h | 118 #define CMSG_FIRSTHDR(msg) __CMSG_FIRSTHDR((msg)->msg_control, (msg)->msg_controllen) argument 123 #define for_each_cmsghdr(cmsg, msg) \ argument 124 for (cmsg = CMSG_FIRSTHDR(msg); \ 126 cmsg = CMSG_NXTHDR(msg, cmsg)) 158 static inline size_t msg_data_left(struct msghdr *msg) in msg_data_left() argument 160 return iov_iter_count(&msg->msg_iter); in msg_data_left() 378 extern void put_cmsg_scm_timestamping64(struct msghdr *msg, struct scm_timestamping_internal *tss); 379 extern void put_cmsg_scm_timestamping(struct msghdr *msg, struct scm_timestamping_internal *tss); 384 extern long __sys_recvmsg(int fd, struct user_msghdr __user *msg, 386 extern long __sys_sendmsg(int fd, struct user_msghdr __user *msg, [all …]
|
/tools/testing/selftests/bpf/ |
D | Makefile | 94 msg = macro 97 msg = @printf ' %-8s%s %s%s\n' "$(1)" "$(if $(2), [$(2)])" "$(notdir $(3))" "$(if $(4), $(4))"; macro 105 $(call msg,CLEAN) 126 $(call msg,CC,,$@) 130 $(call msg,BINARY,,$@) 134 $(call msg,BINARY,,$@) 138 $(call msg,CC,,$@) 194 $(call msg,MKDIR,,$@) 199 $(call msg,GEN,,$@) 202 $(call msg,CP,,$@) [all …]
|