Home
last modified time | relevance | path

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

12345678910>>...13

/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_skmsg_load_helpers.c27 static int prog_msg_verdict_common(struct sk_msg_md *msg) in prog_msg_verdict_common() argument
35 sk_stg = bpf_sk_storage_get(&socket_storage, msg->sk, 0, BPF_SK_STORAGE_GET_F_CREATE); in prog_msg_verdict_common()
42 bpf_sk_storage_delete(&socket_storage, (void *)msg->sk); in prog_msg_verdict_common()
47 int prog_msg_verdict(struct sk_msg_md *msg) in prog_msg_verdict() argument
49 return prog_msg_verdict_common(msg); in prog_msg_verdict()
53 int prog_msg_verdict_clone(struct sk_msg_md *msg) in prog_msg_verdict_clone() argument
55 return prog_msg_verdict_common(msg); in prog_msg_verdict_clone()
59 int prog_msg_verdict_clone2(struct sk_msg_md *msg) in prog_msg_verdict_clone2() argument
61 return prog_msg_verdict_common(msg); in prog_msg_verdict_clone2()
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()
Dtest_sockmap_kern.h234 int bpf_prog4(struct sk_msg_md *msg) in bpf_prog4() argument
241 bpf_msg_apply_bytes(msg, *bytes); in bpf_prog4()
244 bpf_msg_cork_bytes(msg, *bytes); in bpf_prog4()
248 bpf_msg_pull_data(msg, *start, *end, 0); in bpf_prog4()
252 err = bpf_msg_push_data(msg, *start_push, *end_push, 0); in bpf_prog4()
259 bpf_msg_pop_data(msg, *start_pop, *pop, 0); in bpf_prog4()
264 int bpf_prog6(struct sk_msg_md *msg) in bpf_prog6() argument
273 bpf_msg_apply_bytes(msg, *bytes); in bpf_prog6()
276 bpf_msg_cork_bytes(msg, *bytes); in bpf_prog6()
281 bpf_msg_pull_data(msg, *start, *end, 0); in bpf_prog6()
[all …]
Dbpf_misc.h110 #define __msg(msg) __attribute__((btf_decl_tag("comment:test_expect_msg=" XSTR(__COUNTER__) "=" ms… argument
111 #define __xlated(msg) __attribute__((btf_decl_tag("comment:test_expect_xlated=" XSTR(__COUNTER__) … argument
112 #define __jited(msg) __attribute__((btf_decl_tag("comment:test_jited=" XSTR(__COUNTER__) "=" msg))) argument
116 #define __msg_unpriv(msg) __attribute__((btf_decl_tag("comment:test_expect_msg_unpriv=" XSTR(__COUN… argument
117 #define __xlated_unpriv(msg) __attribute__((btf_decl_tag("comment:test_expect_xlated_unpriv=" XSTR(… argument
118 #define __jited_unpriv(msg) __attribute__((btf_decl_tag("comment:test_jited=" XSTR(__COUNTER__) "="… argument
/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"
275 msg="new NIC device created"
280 msg="VxLAN v4 devices"
285 msg="VxLAN v4 devices go down"
291 msg="VxLAN v6 devices"
301 msg="another VxLAN v6 devices"
305 msg="Geneve device"
309 msg="NIC device goes down"
[all …]
/tools/testing/selftests/
Dkselftest.h159 static inline __printf(1, 2) void ksft_print_msg(const char *msg, ...) in ksft_print_msg() argument
164 va_start(args, msg); in ksft_print_msg()
167 vprintf(msg, args); in ksft_print_msg()
171 static inline void ksft_perror(const char *msg) in ksft_perror() argument
173 ksft_print_msg("%s: %s (%d)\n", msg, strerror(errno), errno); in ksft_perror()
176 static inline __printf(1, 2) void ksft_test_result_pass(const char *msg, ...) in ksft_test_result_pass() argument
183 va_start(args, msg); in ksft_test_result_pass()
186 vprintf(msg, args); in ksft_test_result_pass()
190 static inline __printf(1, 2) void ksft_test_result_fail(const char *msg, ...) in ksft_test_result_fail() argument
197 va_start(args, msg); in ksft_test_result_fail()
[all …]
/tools/testing/selftests/mm/
Dva_high_addr_switch.c30 const char *msg; member
67 .msg = "mmap(addr_switch_hint - pagesize, pagesize)", in testcases_init()
80 .msg = "mmap(addr_switch_hint - pagesize, (2 * pagesize))", in testcases_init()
91 .msg = "mmap(addr_switch_hint, pagesize)", in testcases_init()
98 .msg = "mmap(addr_switch_hint, 2 * pagesize, MAP_FIXED)", in testcases_init()
104 .msg = "mmap(NULL)", in testcases_init()
111 .msg = "mmap(low_addr)", in testcases_init()
118 .msg = "mmap(high_addr)", in testcases_init()
125 .msg = "mmap(high_addr) again", in testcases_init()
132 .msg = "mmap(high_addr, MAP_FIXED)", in testcases_init()
[all …]
/tools/testing/selftests/net/mptcp/
Ddiag.sh51 local msg="$3"
57 mptcp_lib_print_title "$msg"
61 mptcp_lib_result_skip "${msg}"
64 mptcp_lib_result_fail "${msg}"
69 mptcp_lib_result_pass "${msg}"
89 local msg="$2"
91 __chk_nr "ss -nlHMON $ns | wc -l" "$expected" "$msg - mptcp" 0
92 __chk_nr "ss -nlHtON $ns | wc -l" "$expected" "$msg - subflows"
100 local msg nr
105 msg=$*
[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/drivers/net/hw/
Dethtool_extended_state.sh48 local msg
54 msg=$(busywait $TIMEOUT ethtool_ext_state $swp1 \
56 check_err $? "$msg"
65 local msg
79 msg=$(busywait $TIMEOUT ethtool_ext_state $swp1 \
81 check_err $? "$msg"
83 msg=$(busywait $TIMEOUT ethtool_ext_state $swp2 \
85 check_err $? "$msg"
98 local msg
104 msg=$(busywait $TIMEOUT ethtool_ext_state $swp3 "No cable")
[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 …]
/tools/testing/selftests/alsa/
Dpcm-test.c287 char name[64], msg[256]; in test_pcm_time() local
353 snprintf(msg, sizeof(msg), "Failed to get pcm handle: %s", snd_strerror(err)); in test_pcm_time()
359 snprintf(msg, sizeof(msg), "snd_pcm_hw_params_any: %s", snd_strerror(err)); in test_pcm_time()
364 snprintf(msg, sizeof(msg), "snd_pcm_hw_params_set_rate_resample: %s", snd_strerror(err)); in test_pcm_time()
369 snprintf(msg, sizeof(msg), "snd_pcm_hw_params_set_access %s: %s", in test_pcm_time()
397 snprintf(msg, sizeof(msg), "snd_pcm_hw_params_set_format %s: %s", in test_pcm_time()
403 snprintf(msg, sizeof(msg), "snd_pcm_hw_params_set_channels %ld: %s", channels, snd_strerror(err)); in test_pcm_time()
409 snprintf(msg, sizeof(msg), "snd_pcm_hw_params_set_rate %ld: %s", rate, snd_strerror(err)); in test_pcm_time()
413 snprintf(msg, sizeof(msg), "rate mismatch %ld != %u", rate, rrate); in test_pcm_time()
419 …snprintf(msg, sizeof(msg), "snd_pcm_hw_params_set_period_size %ld: %s", period_size, snd_strerror(… in test_pcm_time()
[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/testing/selftests/net/tcp_ao/lib/
Dutils.c29 char *msg; in test_echo() local
37 msg = test_snprintf(fmt, vargs); in test_echo()
39 if (!msg) { in test_echo()
43 len = strlen(msg); in test_echo()
44 written = fwrite(msg, 1, len, f); in test_echo()
46 free(msg); in test_echo()
/tools/testing/selftests/bpf/
Dtest_progs.c1200 static inline const char *str_msg(const struct msg *msg, char *buf) in str_msg() argument
1202 switch (msg->type) { in str_msg()
1204 sprintf(buf, "MSG_DO_TEST %d", msg->do_test.num); in str_msg()
1208 msg->test_done.num, in str_msg()
1209 msg->test_done.have_log); in str_msg()
1213 msg->subtest_done.num, in str_msg()
1214 msg->subtest_done.have_log); in str_msg()
1218 strlen(msg->test_log.log_buf), in str_msg()
1219 msg->test_log.is_last); in str_msg()
1232 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()
131 sprintf(buf, "err: %s [%s]", tests[i].msg, bpf_program__name(prog)); in test_empty_skb()
137 sprintf(buf, "ret: %s [%s]", tests[i].msg, bpf_program__name(prog)); in test_empty_skb()
Dtcp_rtt.c50 static int verify_sk(int map_fd, int client_fd, const char *msg, __u32 invoked, in verify_sk() argument
62 msg, val.invoked, invoked); in verify_sk()
68 msg, val.dsack_dups, dsack_dups); in verify_sk()
74 msg, val.delivered, delivered); in verify_sk()
80 msg, val.delivered_ce, delivered_ce); in verify_sk()
86 msg, val.icsk_retransmits, icsk_retransmits); in verify_sk()
92 log_err("%s: unexpected bpf_tcp_sock.args[0] (mrtt_us) %u == 0", msg, val.mrtt_us); in verify_sk()
97 log_err("%s: unexpected bpf_tcp_sock.args[1] (srtt) %u == 0", msg, val.srtt); in verify_sk()
/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()

12345678910>>...13