Home
last modified time | relevance | path

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

123456

/tools/testing/selftests/vm/
Dva_128TBswitch.c37 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/testing/selftests/
Dkselftest.h83 static inline void ksft_print_msg(const char *msg, ...) in ksft_print_msg() argument
88 va_start(args, msg); in ksft_print_msg()
91 vprintf(msg, args); in ksft_print_msg()
95 static inline void ksft_test_result_pass(const char *msg, ...) in ksft_test_result_pass() argument
102 va_start(args, msg); in ksft_test_result_pass()
105 vprintf(msg, args); in ksft_test_result_pass()
109 static inline void ksft_test_result_fail(const char *msg, ...) in ksft_test_result_fail() argument
116 va_start(args, msg); in ksft_test_result_fail()
119 vprintf(msg, args); in ksft_test_result_fail()
123 static inline void ksft_test_result_skip(const char *msg, ...) in ksft_test_result_skip() argument
[all …]
/tools/testing/selftests/bpf/
Dtest_sockmap_kern.h175 int bpf_prog4(struct sk_msg_md *msg) in bpf_prog4() argument
182 bpf_msg_apply_bytes(msg, *bytes); in bpf_prog4()
185 bpf_msg_cork_bytes(msg, *bytes); in bpf_prog4()
189 bpf_msg_pull_data(msg, *start, *end, 0); in bpf_prog4()
193 bpf_msg_push_data(msg, *start_push, *end_push, 0); in bpf_prog4()
197 bpf_msg_pop_data(msg, *start_pop, *pop, 0); in bpf_prog4()
202 int bpf_prog5(struct sk_msg_md *msg) in bpf_prog5() argument
211 err1 = bpf_msg_apply_bytes(msg, *bytes); in bpf_prog5()
214 err2 = bpf_msg_cork_bytes(msg, *bytes); in bpf_prog5()
215 len1 = (__u64)msg->data_end - (__u64)msg->data; in bpf_prog5()
[all …]
/tools/perf/ui/gtk/
Dutil.c33 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/
Dlibslang.h21 #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)
Dhelpline.c15 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()
Dhelpline.h10 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/
Dsockmap_tcp_msg_prog.c9 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/
Dipv6_flowlabel.c41 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 …]
Dmsg_zerocopy.c170 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 …]
Dtcp_inq.c104 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 …]
Dso_txtime.c67 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 …]
Dudpgso_bench_tx.c215 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/accounting/
Dgetdelays.c128 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/testing/selftests/networking/timestamping/
Dtxtimestamp.c213 static void __recv_errmsg_cmsg(struct msghdr *msg, int payload_len) in __recv_errmsg_cmsg() argument
220 for (cm = CMSG_FIRSTHDR(msg); in __recv_errmsg_cmsg()
222 cm = CMSG_NXTHDR(msg, cm)) { in __recv_errmsg_cmsg()
270 static struct msghdr msg; in recv_errmsg() local
279 memset(&msg, 0, sizeof(msg)); in recv_errmsg()
285 msg.msg_iov = &entry; in recv_errmsg()
286 msg.msg_iovlen = 1; in recv_errmsg()
287 msg.msg_name = NULL; in recv_errmsg()
288 msg.msg_namelen = 0; in recv_errmsg()
289 msg.msg_control = ctrl; in recv_errmsg()
[all …]
Dtimestamping.c134 static void printpacket(struct msghdr *msg, int res, in printpacket() argument
139 struct sockaddr_in *from_addr = (struct sockaddr_in *)msg->msg_name; in printpacket()
152 msg->msg_controllen); in printpacket()
153 for (cmsg = CMSG_FIRSTHDR(msg); in printpacket()
155 cmsg = CMSG_NXTHDR(msg, cmsg)) { in printpacket()
263 struct msghdr msg; in recvpacket() local
272 memset(&msg, 0, sizeof(msg)); in recvpacket()
273 msg.msg_iov = &entry; in recvpacket()
274 msg.msg_iovlen = 1; in recvpacket()
277 msg.msg_name = (caddr_t)&from_addr; in recvpacket()
[all …]
/tools/testing/selftests/sigaltstack/
Dsas.c30 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/
Dintel-pt-log.h60 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/bpf/bpftool/
Dmain.c125 char msg[256]; in detect_common_prefix() local
128 snprintf(msg, sizeof(msg), "ambiguous prefix: '%s' could be '", arg); in detect_common_prefix()
135 strncat(msg, "' or '", sizeof(msg) - strlen(msg) - 1); in detect_common_prefix()
136 strncat(msg, ref, sizeof(msg) - strlen(msg) - 1); in detect_common_prefix()
139 strncat(msg, "'", sizeof(msg) - strlen(msg) - 1); in detect_common_prefix()
142 p_err("%s", msg); in detect_common_prefix()
/tools/testing/selftests/cpufreq/
Dmain.sh40 msg="skip all tests:"
43 echo $msg must be run as root >&2
52 echo $msg sysfs is not mounted >&2
60 echo $msg cpus not available in sysfs >&2
65 echo $msg cpufreq directory not available in sysfs >&2
/tools/testing/vsock/
Dvsock_diag_test.c42 struct vsock_diag_msg msg; member
104 print_vsock_addr(fp, st->msg.vdiag_src_cid, st->msg.vdiag_src_port); in print_vsock_stat()
106 print_vsock_addr(fp, st->msg.vdiag_dst_cid, st->msg.vdiag_dst_port); in print_vsock_stat()
108 sock_type_str(st->msg.vdiag_type), in print_vsock_stat()
109 sock_state_str(st->msg.vdiag_state), in print_vsock_stat()
110 sock_shutdown_str(st->msg.vdiag_shutdown), in print_vsock_stat()
111 st->msg.vdiag_ino); in print_vsock_stat()
133 if (st->msg.vdiag_ino == stat.st_ino) in find_vsock_stat()
167 if (st->msg.vdiag_state != state) { in check_socket_state()
169 state, st->msg.vdiag_state); in check_socket_state()
[all …]
/tools/lib/traceevent/
Dtep_strerror.c32 const char *msg; in tep_strerror() local
49 msg = tep_error_str[idx]; in tep_strerror()
50 snprintf(buf, buflen, "%s", msg); in tep_strerror()
/tools/lib/subcmd/
Dsubcmd-util.h13 char msg[1024]; in report() local
14 vsnprintf(msg, sizeof(msg), err, params); in report()
15 fprintf(stderr, " %s%s\n", prefix, msg); in report()
/tools/testing/selftests/gpio/
Dgpio-mockup.sh38 msg="skip all tests:"
40 echo $msg must be run as root >&2
45 echo $msg sysfs is not mounted >&2
52 echo $msg debugfs is not mounted >&2
66 echo $msg insmod $module failed >&2
/tools/testing/selftests/memory-hotplug/
Dmem-on-off-test.sh11 msg="skip all tests:"
14 echo $msg must be run as root >&2
21 echo $msg sysfs is not mounted >&2
26 echo $msg memory hotplug is not supported >&2
31 echo $msg no hot-pluggable memory >&2
235 msg="skip extra tests:"
241 echo $msg debugfs is not mounted >&2
246 echo $msg memory-notifier-error-inject module is not available >&2

123456