Home
last modified time | relevance | path

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

/tools/testing/selftests/bpf/progs/
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/timers/
Dposix_timers.c230 const char *errmsg; in check_timer_distribution() local
234 errmsg = "Can't create thread\n"; in check_timer_distribution()
238 errmsg = "Can't join thread\n"; in check_timer_distribution()
239 if (pthread_join(ctd_thread, (void **)&errmsg) || errmsg) in check_timer_distribution()
250 ksft_print_msg("%s", errmsg); in check_timer_distribution()
/tools/testing/selftests/mm/
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);
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 priviledge"; in uffd_test_ctx_init()
Duffd-unit-tests.c188 mem_type_t *mem_type, const char **errmsg) in uffd_setup_environment() argument
206 return uffd_test_ctx_init(test->uffd_feature_required, errmsg); in uffd_setup_environment()
1226 static int prevent_hugepages(const char **errmsg) in prevent_hugepages() argument
1232 if (errmsg) in prevent_hugepages()
1233 *errmsg = "madvise(MADV_NOHUGEPAGE) failed"; in prevent_hugepages()
1240 static int request_hugepages(const char **errmsg) in request_hugepages() argument
1244 if (errmsg) { in request_hugepages()
1245 *errmsg = (errno == EINVAL) ? in request_hugepages()
1487 const char *errmsg; in main() local
1542 &errmsg)) { in main()
[all …]
/tools/lib/bpf/
Dnlattr.c166 char *errmsg = NULL; in libbpf_nla_dump_errormsg() local
190 errmsg = (char *) libbpf_nla_data(tb[NLMSGERR_ATTR_MSG]); in libbpf_nla_dump_errormsg()
192 pr_warn("Kernel error message: %s\n", errmsg); in libbpf_nla_dump_errormsg()
Dlibbpf.c1329 char errmsg[STRERR_BUFSIZE], *cp; in bpf_object__elf_init() local
1332 cp = libbpf_strerror_r(err, errmsg, sizeof(errmsg)); in bpf_object__elf_init()
4507 char *cp, errmsg[STRERR_BUFSIZE]; in bpf_object__probe_loading() local
4527 cp = libbpf_strerror_r(ret, errmsg, sizeof(errmsg)); in bpf_object__probe_loading()
4570 char *cp, errmsg[STRERR_BUFSIZE]; in probe_kern_global_data() local
4582 cp = libbpf_strerror_r(ret, errmsg, sizeof(errmsg)); in probe_kern_global_data()
4752 char *cp, errmsg[STRERR_BUFSIZE]; in probe_prog_bind_map() local
4762 cp = libbpf_strerror_r(ret, errmsg, sizeof(errmsg)); in probe_prog_bind_map()
5025 char *cp, errmsg[STRERR_BUFSIZE]; in bpf_object__reuse_map() local
5037 cp = libbpf_strerror_r(-err, errmsg, sizeof(errmsg)); in bpf_object__reuse_map()
[all …]
Delf.c15 char errmsg[STRERR_BUFSIZE]; in elf_open() local
27 libbpf_strerror_r(ret, errmsg, sizeof(errmsg))); in elf_open()
/tools/testing/selftests/bpf/prog_tests/
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/tc-testing/
Dtdc.py481 errmsg = "Tests using the DEV2 variable must define the name of a "
482 errmsg += "physical NIC with the -d option when running tdc.\n"
483 errmsg += "Test has been skipped."
485 print(errmsg)
488 res.set_errormsg(errmsg)
/tools/perf/util/
Dsrcline.c156 const char *errmsg; in bfd_error() local
158 errmsg = bfd_errmsg(bfd_get_error()); in bfd_error()
162 pr_debug("%s: %s\n", string, errmsg); in bfd_error()
164 pr_debug("%s\n", errmsg); in bfd_error()
/tools/perf/
Dbuiltin-kmem.c1974 …static const char errmsg[] = "No %s allocation events found. Have you run 'perf kmem record --%s'… in cmd_kmem() local
2009 pr_err(errmsg, "slab", "slab"); in cmd_kmem()
2018 pr_err(errmsg, "page", "page"); in cmd_kmem()
/tools/power/pm-graph/
Dsleepgraph.py1196 errmsg = 'unrecognized turbostat output:\n'+rawout.strip()
1197 self.vprint(errmsg)
1199 pprint(errmsg)