Home
last modified time | relevance | path

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

1234567891011

/tools/testing/selftests/bpf/progs/
Duser_ringbuf_success.c67 handle_sample_msg(const struct test_msg *msg) in handle_sample_msg() argument
69 switch (msg->msg_op) { in handle_sample_msg()
71 kern_mutated += msg->operand_64; in handle_sample_msg()
74 kern_mutated += msg->operand_32; in handle_sample_msg()
77 kern_mutated *= msg->operand_64; in handle_sample_msg()
80 kern_mutated *= msg->operand_32; in handle_sample_msg()
83 bpf_printk("Unrecognized op %d\n", msg->msg_op); in handle_sample_msg()
91 const struct test_msg *msg = NULL; in read_protocol_msg() local
93 msg = bpf_dynptr_data(dynptr, 0, sizeof(*msg)); in read_protocol_msg()
94 if (!msg) { in read_protocol_msg()
[all …]
Dtest_sockmap_kern.h237 int bpf_prog4(struct sk_msg_md *msg) in bpf_prog4() argument
244 bpf_msg_apply_bytes(msg, *bytes); in bpf_prog4()
247 bpf_msg_cork_bytes(msg, *bytes); in bpf_prog4()
251 bpf_msg_pull_data(msg, *start, *end, 0); in bpf_prog4()
255 err = bpf_msg_push_data(msg, *start_push, *end_push, 0); in bpf_prog4()
262 bpf_msg_pop_data(msg, *start_pop, *pop, 0); in bpf_prog4()
267 int bpf_prog6(struct sk_msg_md *msg) in bpf_prog6() argument
276 bpf_msg_apply_bytes(msg, *bytes); in bpf_prog6()
279 bpf_msg_cork_bytes(msg, *bytes); in bpf_prog6()
284 bpf_msg_pull_data(msg, *start, *end, 0); in bpf_prog6()
[all …]
Dtest_xdp_attach_fail.c10 char msg[ERRMSG_LEN]; member
31 __u32 msg; // __data_loc char[] msg; member
41 char *msg = (void *)(__u64) ((void *) ctx + (__u16) ctx->msg); in tp__xdp__bpf_xdp_link_attach_failed() local
44 bpf_probe_read_kernel_str(&errmsg.msg, ERRMSG_LEN, msg); in tp__xdp__bpf_xdp_link_attach_failed()
/tools/testing/selftests/drivers/net/netdevsim/
Dudp_tunnel_nic.sh161 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/
Dkselftest.h148 static inline void ksft_print_msg(const char *msg, ...) in ksft_print_msg() argument
153 va_start(args, msg); in ksft_print_msg()
156 vprintf(msg, args); in ksft_print_msg()
160 static inline void ksft_perror(const char *msg) in ksft_perror() argument
163 ksft_print_msg("%s: %s (%d)\n", msg, strerror(errno), errno); in ksft_perror()
169 ksft_print_msg("%s: %d)\n", msg, errno); in ksft_perror()
173 static inline void ksft_test_result_pass(const char *msg, ...) in ksft_test_result_pass() argument
180 va_start(args, msg); in ksft_test_result_pass()
183 vprintf(msg, args); in ksft_test_result_pass()
187 static inline void ksft_test_result_fail(const char *msg, ...) in ksft_test_result_fail() argument
[all …]
/tools/testing/selftests/mm/
Dva_high_addr_switch.c57 const char *msg; member
71 .msg = "mmap(ADDR_SWITCH_HINT - PAGE_SIZE, PAGE_SIZE)",
84 .msg = "mmap(ADDR_SWITCH_HINT - PAGE_SIZE, (2 * PAGE_SIZE))",
95 .msg = "mmap(ADDR_SWITCH_HINT, PAGE_SIZE)",
102 .msg = "mmap(ADDR_SWITCH_HINT, 2 * PAGE_SIZE, MAP_FIXED)",
108 .msg = "mmap(NULL)",
115 .msg = "mmap(LOW_ADDR)",
122 .msg = "mmap(HIGH_ADDR)",
129 .msg = "mmap(HIGH_ADDR) again",
136 .msg = "mmap(HIGH_ADDR, MAP_FIXED)",
[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/testing/selftests/net/forwarding/
Dethtool_extended_state.sh47 local msg
53 msg=$(busywait $TIMEOUT ethtool_ext_state $swp1 \
55 check_err $? "$msg"
64 local msg
78 msg=$(busywait $TIMEOUT ethtool_ext_state $swp1 \
80 check_err $? "$msg"
82 msg=$(busywait $TIMEOUT ethtool_ext_state $swp2 \
84 check_err $? "$msg"
97 local msg
103 msg=$(busywait $TIMEOUT ethtool_ext_state $swp3 "No cable")
[all …]
/tools/testing/selftests/net/mptcp/
Ddiag.sh58 local msg="$3"
64 printf "%-50s" "$msg"
68 mptcp_lib_result_skip "${msg}"
71 mptcp_lib_result_fail "${msg}"
76 mptcp_lib_result_pass "${msg}"
99 local msg nr
104 msg=$*
114 printf "%-50s" "$msg"
117 mptcp_lib_result_fail "${msg} # timeout"
121 mptcp_lib_result_fail "${msg} # unexpected result"
[all …]
/tools/testing/selftests/alsa/
Dpcm-test.c260 char name[64], msg[256]; in test_pcm_time() local
326 snprintf(msg, sizeof(msg), "Failed to get pcm handle: %s", snd_strerror(err)); in test_pcm_time()
332 snprintf(msg, sizeof(msg), "snd_pcm_hw_params_any: %s", snd_strerror(err)); in test_pcm_time()
337 snprintf(msg, sizeof(msg), "snd_pcm_hw_params_set_rate_resample: %s", snd_strerror(err)); in test_pcm_time()
342 snprintf(msg, sizeof(msg), "snd_pcm_hw_params_set_access %s: %s", in test_pcm_time()
370 snprintf(msg, sizeof(msg), "snd_pcm_hw_params_set_format %s: %s", in test_pcm_time()
376 snprintf(msg, sizeof(msg), "snd_pcm_hw_params_set_channels %ld: %s", channels, snd_strerror(err)); in test_pcm_time()
382 snprintf(msg, sizeof(msg), "snd_pcm_hw_params_set_rate %ld: %s", rate, snd_strerror(err)); in test_pcm_time()
386 snprintf(msg, sizeof(msg), "rate mismatch %ld != %d", rate, rrate); in test_pcm_time()
392 …snprintf(msg, sizeof(msg), "snd_pcm_hw_params_set_period_size %ld: %s", period_size, snd_strerror(… in test_pcm_time()
[all …]
/tools/lib/thermal/
Dthermal_nl.c19 static int nl_seq_check_handler(struct nl_msg *msg, void *arg) in nl_seq_check_handler() argument
35 static int nl_finish_handler(struct nl_msg *msg, void *arg) in nl_finish_handler() argument
45 static int nl_ack_handler(struct nl_msg *msg, void *arg) in nl_ack_handler() argument
55 int nl_send_msg(struct nl_sock *sock, struct nl_cb *cb, struct nl_msg *msg, in nl_send_msg() argument
61 err = nl_send_auto_complete(sock, msg); in nl_send_msg()
75 static int nl_family_handler(struct nl_msg *msg, void *arg) in nl_family_handler() argument
79 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in nl_family_handler()
116 struct nl_msg *msg; in nl_get_multicast_id() local
123 msg = nlmsg_alloc(); in nl_get_multicast_id()
124 if (!msg) in nl_get_multicast_id()
[all …]
/tools/power/x86/intel-speed-select/
Dhfi-events.c56 static int ack_handler(struct nl_msg *msg, void *arg) in ack_handler() argument
63 static int finish_handler(struct nl_msg *msg, void *arg) in finish_handler() argument
78 static int seq_check_handler(struct nl_msg *msg, void *arg) in seq_check_handler() argument
84 struct nl_msg *msg, in send_and_recv_msgs() argument
95 err = nl_send_auto_complete(drv->nl_handle, msg); in send_and_recv_msgs()
113 nlmsg_free(msg); in send_and_recv_msgs()
122 static int family_handler(struct nl_msg *msg, void *arg) in family_handler() argument
126 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in family_handler()
155 struct nl_msg *msg; in nl_get_multicast_id() local
159 msg = nlmsg_alloc(); in nl_get_multicast_id()
[all …]
/tools/testing/selftests/net/
Dipv6_flowlabel.c56 struct msghdr msg = {0}; in do_send() local
68 msg.msg_iov = &iov; in do_send()
69 msg.msg_iovlen = 1; in do_send()
72 msg.msg_name = &addr; in do_send()
73 msg.msg_namelen = sizeof(addr); in do_send()
83 msg.msg_control = control; in do_send()
84 msg.msg_controllen = sizeof(control); in do_send()
87 ret = sendmsg(fd, &msg, 0); in do_send()
101 struct msghdr msg = {0}; in do_recv() local
110 msg.msg_iov = &iov; in do_recv()
[all …]
Dmsg_zerocopy.c172 static void add_zcopy_cookie(struct msghdr *msg, uint32_t cookie) in add_zcopy_cookie() argument
176 if (!msg->msg_control) in add_zcopy_cookie()
178 cm = (void *)msg->msg_control; in add_zcopy_cookie()
185 static bool do_sendmsg(int fd, struct msghdr *msg, bool do_zerocopy, int domain) in do_sendmsg() argument
192 for (i = 0; i < msg->msg_iovlen; i++) in do_sendmsg()
193 len += msg->msg_iov[i].iov_len; in do_sendmsg()
199 memset(&msg->msg_control, 0, sizeof(msg->msg_control)); in do_sendmsg()
200 msg->msg_controllen = CMSG_SPACE(sizeof(cookie)); in do_sendmsg()
201 msg->msg_control = (struct cmsghdr *)ckbuf; in do_sendmsg()
202 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.c76 struct msghdr msg = {0}; in do_send_one() local
85 msg.msg_iov = &iov; in do_send_one()
86 msg.msg_iovlen = 1; in do_send_one()
87 msg.msg_name = (struct sockaddr *)&cfg_dst_addr; in do_send_one()
88 msg.msg_namelen = cfg_alen; in do_send_one()
92 msg.msg_control = &control; in do_send_one()
93 msg.msg_controllen = sizeof(control); in do_send_one()
99 cm = CMSG_FIRSTHDR(&msg); in do_send_one()
106 ret = sendmsg(fdt, &msg, 0); in do_send_one()
159 struct msghdr msg = {0}; in do_recv_errqueue_timeout() local
[all …]
/tools/accounting/
Dprocacct.c134 struct msgtemplate msg; in send_cmd() local
136 msg.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in send_cmd()
137 msg.n.nlmsg_type = nlmsg_type; in send_cmd()
138 msg.n.nlmsg_flags = NLM_F_REQUEST; in send_cmd()
139 msg.n.nlmsg_seq = 0; in send_cmd()
140 msg.n.nlmsg_pid = nlmsg_pid; in send_cmd()
141 msg.g.cmd = genl_cmd; in send_cmd()
142 msg.g.version = 0x1; in send_cmd()
143 na = (struct nlattr *) GENLMSG_DATA(&msg); in send_cmd()
147 msg.n.nlmsg_len += NLMSG_ALIGN(na->nla_len); in send_cmd()
[all …]
Dgetdelays.c127 struct msgtemplate msg; in send_cmd() local
129 msg.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in send_cmd()
130 msg.n.nlmsg_type = nlmsg_type; in send_cmd()
131 msg.n.nlmsg_flags = NLM_F_REQUEST; in send_cmd()
132 msg.n.nlmsg_seq = 0; in send_cmd()
133 msg.n.nlmsg_pid = nlmsg_pid; in send_cmd()
134 msg.g.cmd = genl_cmd; in send_cmd()
135 msg.g.version = 0x1; in send_cmd()
136 na = (struct nlattr *) GENLMSG_DATA(&msg); in send_cmd()
140 msg.n.nlmsg_len += NLMSG_ALIGN(na->nla_len); in send_cmd()
[all …]
/tools/net/ynl/lib/
Dynl.py165 def __init__(self, msg): argument
169 while offset < len(msg):
170 attr = NlAttr(msg, offset)
178 msg = ''
180 if msg:
181 msg += '\n'
182 msg += repr(a)
183 return msg
187 def __init__(self, msg, offset, attr_space=None): argument
188 self.hdr = msg[offset:offset + 16]
[all …]
/tools/testing/selftests/bpf/
Dtest_progs.c1017 static inline const char *str_msg(const struct msg *msg, char *buf) in str_msg() argument
1019 switch (msg->type) { in str_msg()
1021 sprintf(buf, "MSG_DO_TEST %d", msg->do_test.num); in str_msg()
1025 msg->test_done.num, in str_msg()
1026 msg->test_done.have_log); in str_msg()
1030 msg->subtest_done.num, in str_msg()
1031 msg->subtest_done.have_log); in str_msg()
1035 strlen(msg->test_log.log_buf), in str_msg()
1036 msg->test_log.is_last); in str_msg()
1049 static int send_message(int sock, const struct msg *msg) in send_message() argument
[all …]
/tools/testing/selftests/exec/
Dnull-argv.c22 void check_result(pid_t pid, const char *msg) in check_result() argument
28 ksft_test_result_fail("fork failed: %s\n", msg); in check_result()
33 ksft_test_result_fail("waitpid failed: %s\n", msg); in check_result()
37 ksft_test_result_fail("child did not exit: %s\n", msg); in check_result()
41 ksft_test_result_fail("non-zero exit: %s\n", msg); in check_result()
44 ksft_test_result_pass("%s\n", msg); in check_result()
/tools/testing/selftests/bpf/prog_tests/
Dempty_skb.c21 const char *msg; in test_empty_skb() member
34 .msg = "veth empty ingress packet", in test_empty_skb()
42 .msg = "ipip empty ingress packet", in test_empty_skb()
56 .msg = "veth ETH_HLEN packet ingress", in test_empty_skb()
70 .msg = "ipip ETH_HLEN packet ingress", in test_empty_skb()
81 .msg = "veth ETH_HLEN+1 packet ingress", in test_empty_skb()
88 .msg = "ipip ETH_HLEN+1 packet ingress", in test_empty_skb()
129 sprintf(buf, "err: %s [%s]", tests[i].msg, bpf_program__name(prog)); in test_empty_skb()
135 sprintf(buf, "ret: %s [%s]", tests[i].msg, bpf_program__name(prog)); in test_empty_skb()
/tools/testing/selftests/net/openvswitch/
Dovs-dpctl.py1464 for msg in msgs:
1467 if msg["cmd"] == OvsPacket.OVS_PACKET_CMD_MISS:
1468 up.miss(msg)
1469 elif msg["cmd"] == OvsPacket.OVS_PACKET_CMD_ACTION:
1470 up.action(msg)
1471 elif msg["cmd"] == OvsPacket.OVS_PACKET_CMD_EXECUTE:
1472 up.execute(msg)
1474 print("Unkonwn cmd: %d" % msg["cmd"])
1522 msg = OvsDatapath.dp_cmd_msg()
1523 msg["cmd"] = OVS_DP_CMD_GET
[all …]
/tools/perf/ui/
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()
/tools/testing/vsock/
Dvsock_diag_test.c32 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 …]

1234567891011