Home
last modified time | relevance | path

Searched refs:errmsg (Results 1 – 14 of 14) sorted by relevance

/tools/testing/selftests/bpf/progs/
A Dtest_xdp_attach_fail.c42 struct xdp_errmsg errmsg = {}; 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()
45 bpf_perf_event_output(ctx, &xdp_errmsg_pb, BPF_F_CURRENT_CPU, &errmsg, in tp__xdp__bpf_xdp_link_attach_failed()
/tools/testing/selftests/mm/
A Duffd-common.h96 int (*pre_alloc)(const char **errmsg);
97 int (*post_alloc)(const char **errmsg);
117 int uffd_test_ctx_init(uint64_t features, const char **errmsg);
A Duffd-common.c298 int uffd_test_ctx_init(uint64_t features, const char **errmsg) in uffd_test_ctx_init() argument
304 ret = uffd_test_case_ops->pre_alloc(errmsg); in uffd_test_ctx_init()
312 if (errmsg) in uffd_test_ctx_init()
313 *errmsg = "memory allocation failed"; in uffd_test_ctx_init()
318 ret = uffd_test_case_ops->post_alloc(errmsg); in uffd_test_ctx_init()
325 if (errmsg) in uffd_test_ctx_init()
326 *errmsg = "possible lack of privilege"; in uffd_test_ctx_init()
A Duffd-unit-tests.c190 mem_type_t *mem_type, const char **errmsg) in uffd_setup_environment() argument
209 return uffd_test_ctx_init(test->uffd_feature_required, errmsg); in uffd_setup_environment()
1418 static int prevent_hugepages(const char **errmsg) in prevent_hugepages() argument
1424 if (errmsg) in prevent_hugepages()
1425 *errmsg = "madvise(MADV_NOHUGEPAGE) failed"; in prevent_hugepages()
1432 static int request_hugepages(const char **errmsg) in request_hugepages() argument
1436 if (errmsg) { in request_hugepages()
1437 *errmsg = (errno == EINVAL) ? in request_hugepages()
1705 const char *errmsg; in main() local
1760 &errmsg)) { in main()
[all …]
/tools/testing/vsock/
A Dutil.h111 unsigned long long val, char const *errmsg);
113 char const *errmsg);
115 struct timeval val, char const *errmsg);
A Dutil.c721 unsigned long long val, char const *errmsg) in setsockopt_ull_check() argument
757 fprintf(stderr, "%s val %llu\n", errmsg, val); in setsockopt_ull_check()
764 char const *errmsg) in setsockopt_int_check() argument
799 fprintf(stderr, "%s val %d\n", errmsg, val); in setsockopt_int_check()
813 struct timeval val, char const *errmsg) in setsockopt_timeval_check() argument
851 fprintf(stderr, "%s val %ld:%ld\n", errmsg, val.tv_sec, val.tv_usec); in setsockopt_timeval_check()
/tools/lib/bpf/
A Dnlattr.c165 char *errmsg = NULL; in libbpf_nla_dump_errormsg() local
189 errmsg = (char *) libbpf_nla_data(tb[NLMSGERR_ATTR_MSG]); in libbpf_nla_dump_errormsg()
191 pr_warn("Kernel error message: %s\n", errmsg); in libbpf_nla_dump_errormsg()
/tools/testing/selftests/bpf/prog_tests/
A Dxdp_attach.c107 struct xdp_errmsg errmsg = {}; in test_xdp_attach_fail() local
124 on_xdp_errmsg, NULL, &errmsg, NULL); in test_xdp_attach_fail()
142 ASSERT_STRNEQ((const char *) errmsg.msg, tgt_errmsg, in test_xdp_attach_fail()
/tools/testing/selftests/net/netfilter/
A Dnft_fib.sh145 local errmsg="$6"
148 …s $ns $family fib type counter doesn't match expected packet count of $want for $what $errmsg" 1>&2
274 local errmsg="addr-on-if"
288 check_fib_type_counter 2 "$nsrouter" "type_match_in" "fib daddr type local" "$errmsg" || lret=1
289 …check_fib_type_counter 2 "$nsrouter" "type_match_in" "fib daddr . iif type local" "$errmsg" || lre…
297 errmsg="addr-on-host"
298 check_fib_type_counter 2 "$nsrouter" "type_match_in" "fib daddr type local" "$errmsg" || lret=1
299 …check_fib_type_counter 2 "$nsrouter" "type_match_in" "fib daddr . iif type unicast" "$errmsg" || l…
303 errmsg="addr-on-otherhost"
304 check_fib_type_counter 2 "$nsrouter" "type_match_in" "fib daddr type unicast" "$errmsg" || lret=1
[all …]
/tools/testing/selftests/bpf/
A Dnetlink_helpers.h26 typedef int (*nl_ext_ack_fn_t)(const char *errmsg, uint32_t off,
/tools/testing/selftests/tc-testing/
A Dtdc.py522 errmsg = "Tests using the DEV2 variable must define the name of a "
523 errmsg += "physical NIC with the -d option when running tdc.\n"
524 errmsg += "Test has been skipped."
526 print(errmsg)
529 res.set_errormsg(errmsg)
/tools/perf/util/
A Dsrcline.c213 const char *errmsg; in bfd_error() local
215 errmsg = bfd_errmsg(bfd_get_error()); in bfd_error()
219 pr_debug("%s: %s\n", string, errmsg); in bfd_error()
221 pr_debug("%s\n", errmsg); in bfd_error()
/tools/perf/
A Dbuiltin-kmem.c1968 …static const char errmsg[] = "No %s allocation events found. Have you run 'perf kmem record --%s'… in cmd_kmem() local
2010 pr_err(errmsg, "slab", "slab"); in cmd_kmem()
2020 pr_err(errmsg, "page", "page"); in cmd_kmem()
/tools/power/pm-graph/
A Dsleepgraph.py1219 errmsg = 'unrecognized turbostat output:\n'+rawout.strip()
1220 self.vprint(errmsg)
1222 pprint(errmsg)

Completed in 34 milliseconds