Home
last modified time | relevance | path

Searched refs:errbuf (Results 1 – 23 of 23) sorted by relevance

/linux/tools/perf/tests/
H A Dopenat-syscall.c25 char errbuf[BUFSIZ]; in test__openat_syscall_event() local
34 tracing_path__strerror_open_tp(errno, errbuf, sizeof(errbuf), "syscalls", "sys_enter_openat"); in test__openat_syscall_event()
35 pr_debug("%s\n", errbuf); in test__openat_syscall_event()
H A Dopenat-syscall-all-cpus.c33 char errbuf[BUFSIZ]; in test__openat_syscall_event_on_all_cpus() local
50 tracing_path__strerror_open_tp(errno, errbuf, sizeof(errbuf), "syscalls", "sys_enter_openat"); in test__openat_syscall_event_on_all_cpus()
51 pr_debug("%s\n", errbuf); in test__openat_syscall_event_on_all_cpus()
H A Dcode-reading.c803 char errbuf[512]; in do_test_code_reading() local
804 evlist__strerror_open(evlist, errno, errbuf, sizeof(errbuf)); in do_test_code_reading()
805 pr_debug("perf_evlist__open() failed!\n%s\n", errbuf); in do_test_code_reading()
/linux/drivers/scsi/aic7xxx/aicasm/
H A Daicasm_gram.y66 static char errbuf[255]; variable
720 snprintf(errbuf, sizeof(errbuf),
723 stop(errbuf, EX_DATAERR);
814 snprintf(errbuf, sizeof(errbuf), "%s%d", SRAM_SYMNAME,
943 snprintf(errbuf, sizeof(errbuf),
948 stop(errbuf, EX_DATAERR);
1629 snprintf(errbuf, sizeof(errbuf), "Undefined register %s", in process_register()
1631 stop(errbuf, EX_DATAERR); in process_register()
1638 snprintf(errbuf, sizeof(errbuf), in process_register()
1641 stop(errbuf, EX_DATAERR); in process_register()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dspin_lock.c65 char errbuf[512]; in match_regex()
67 regerror(err, &re, errbuf, sizeof(errbuf)); in match_regex()
68 PRINT_FAIL("Can't compile regex: %s\n", errbuf); in match_regex()
62 char errbuf[512]; match_regex() local
H A Dctx_rewrite.c341 char errbuf[512]; in compile_regex() local
343 regerror(err, re, errbuf, sizeof(errbuf)); in compile_regex()
344 PRINT_FAIL("Can't compile regex: %s\n", errbuf); in compile_regex()
/linux/drivers/usb/host/
H A Duhci-hcd.c78 static char *errbuf; variable
83 #define errbuf NULL macro
480 if (debug > 1 && errbuf) { in uhci_irq()
482 uhci_sprint_schedule(uhci, errbuf, in uhci_irq()
484 lprintk(errbuf); in uhci_irq()
873 errbuf = kmalloc(ERRBUF_LEN, GFP_KERNEL); in uhci_hcd_init()
874 if (!errbuf) in uhci_hcd_init()
911 kfree(errbuf); in uhci_hcd_init()
931 kfree(errbuf); in uhci_hcd_cleanup()
H A Duhci-q.c1199 if (debug > 1 && errbuf) { in uhci_result_common()
1201 uhci_show_qh(uhci, urbp->qh, errbuf, in uhci_result_common()
1203 lprintk(errbuf); in uhci_result_common()
/linux/tools/perf/bench/
H A Devlist-open-close.c246 char *evstr, errbuf[BUFSIZ]; in bench_evlist_open_close() local
257 target__strerror(&opts.target, err, errbuf, sizeof(errbuf)); in bench_evlist_open_close()
258 pr_err("%s\n", errbuf); in bench_evlist_open_close()
/linux/tools/perf/
H A Dbuiltin-top.c1306 char errbuf[BUFSIZ]; in __cmd_top() local
1307 const char *err = str_error_r(-ret, errbuf, sizeof(errbuf)); in __cmd_top()
1445 char errbuf[BUFSIZ]; in cmd_top() local
1661 str_error_r(errno, errbuf, sizeof(errbuf))); in cmd_top()
1793 target__strerror(target, status, errbuf, BUFSIZ); in cmd_top()
1794 ui__warning("%s\n", errbuf); in cmd_top()
1815 errno == ENOENT ? "No such process" : str_error_r(errno, errbuf, sizeof(errbuf))); in cmd_top()
H A Dbuiltin-ftrace.c140 char errbuf[512]; in __write_tracing_file() local
157 name, str_error_r(errno, errbuf, sizeof(errbuf))); in __write_tracing_file()
174 val, name, str_error_r(errno, errbuf, sizeof(errbuf))); in __write_tracing_file()
1981 char errbuf[512]; in cmd_ftrace() local
1983 target__strerror(&ftrace.target, ret, errbuf, 512); in cmd_ftrace()
1984 pr_err("%s\n", errbuf); in cmd_ftrace()
H A Dbuiltin-trace.c4653 char errbuf[BUFSIZ]; in trace__run() local
4656 tracing_path__strerror_open_tp(errno, errbuf, sizeof(errbuf), "sched", "sched_stat_runtime"); in trace__run()
4660 tracing_path__strerror_open_tp(errno, errbuf, sizeof(errbuf), "raw_syscalls", "sys_(enter|exit)"); in trace__run()
4664 evlist__strerror_mmap(evlist, errno, errbuf, sizeof(errbuf)); in trace__run()
4668 evlist__strerror_open(evlist, errno, errbuf, sizeof(errbuf)); in trace__run()
4671 fprintf(trace->output, "%s\n", errbuf); in trace__run()
4678 str_error_r(errno, errbuf, sizeof(errbuf))); in trace__run()
H A Dbuiltin-kvm.c1819 char errbuf[BUFSIZ]; in kvm_events_live() local
1892 target__strerror(&kvm->opts.target, err, errbuf, BUFSIZ); in kvm_events_live()
1893 ui__warning("%s", errbuf); in kvm_events_live()
H A Dbuiltin-lock.c2056 char errbuf[512]; in __cmd_contention() local
2058 target__strerror(&target, err, errbuf, 512); in __cmd_contention()
2059 pr_err("%s\n", errbuf); in __cmd_contention()
H A Dbuiltin-record.c4099 char errbuf[BUFSIZ]; in cmd_record() local
4322 target__strerror(&rec->opts.target, err, errbuf, BUFSIZ); in cmd_record()
4323 ui__warning("%s\n", errbuf); in cmd_record()
4354 errno == ENOENT ? "No such process" : str_error_r(errno, errbuf, sizeof(errbuf))); in cmd_record()
H A Dbuiltin-stat.c2606 char errbuf[BUFSIZ]; in cmd_stat() local
2739 target__strerror(&target, err, errbuf, BUFSIZ); in cmd_stat()
2740 pr_warning("%s\n", errbuf); in cmd_stat()
/linux/arch/mips/boot/tools/
H A Drelocs.c48 char errbuf[128]; in regex_init() local
55 regerror(err, &sym_regex_c, errbuf, sizeof(errbuf)); in regex_init()
56 die("%s", errbuf); in regex_init()
/linux/tools/testing/selftests/bpf/
H A Dnetwork_helpers.c1093 char errbuf[PCAP_ERRBUF_SIZE]; in traffic_monitor_start()
1098 pcap = pcap_create("any", errbuf); in traffic_monitor_start()
1100 log_err("Failed to open pcap: %s", errbuf); in traffic_monitor_start()
1115 r = pcap_setnonblock(pcap, 1, errbuf); in traffic_monitor_start()
1117 log_err("Failed to set nonblock: %s", errbuf); in traffic_monitor_start()
1003 char errbuf[PCAP_ERRBUF_SIZE]; traffic_monitor_prepare_pcap() local
/linux/drivers/net/ethernet/sfc/siena/
H A Dmcdi.c507 MCDI_DECLARE_BUF_ERR(errbuf); in efx_mcdi_complete_async()
549 err_len = min(sizeof(errbuf), data_len); in efx_mcdi_complete_async()
550 efx->type->mcdi_read_response(efx, errbuf, hdr_len, in efx_mcdi_complete_async()
551 sizeof(errbuf)); in efx_mcdi_complete_async()
553 errbuf, err_len, rc); in efx_mcdi_complete_async()
659 MCDI_DECLARE_BUF_ERR(errbuf); in _efx_mcdi_rpc_finish()
709 err_len = min(sizeof(errbuf), data_len); in _efx_mcdi_rpc_finish()
719 efx->type->mcdi_read_response(efx, errbuf, hdr_len, err_len); in _efx_mcdi_rpc_finish()
737 efx_siena_mcdi_display_error(efx, cmd, inlen, errbuf, in _efx_mcdi_rpc_finish()
/linux/drivers/net/ethernet/sfc/
H A Dmcdi.c503 MCDI_DECLARE_BUF_ERR(errbuf); in efx_mcdi_complete_async()
545 err_len = min(sizeof(errbuf), data_len); in efx_mcdi_complete_async()
546 efx->type->mcdi_read_response(efx, errbuf, hdr_len, in efx_mcdi_complete_async()
547 sizeof(errbuf)); in efx_mcdi_complete_async()
548 efx_mcdi_display_error(efx, async->cmd, async->inlen, errbuf, in efx_mcdi_complete_async()
655 MCDI_DECLARE_BUF_ERR(errbuf); in _efx_mcdi_rpc_finish()
705 err_len = min(sizeof(errbuf), data_len); in _efx_mcdi_rpc_finish()
715 efx->type->mcdi_read_response(efx, errbuf, hdr_len, err_len); in _efx_mcdi_rpc_finish()
733 efx_mcdi_display_error(efx, cmd, inlen, errbuf, err_len, in _efx_mcdi_rpc_finish()
/linux/arch/x86/tools/
H A Drelocs.c132 char errbuf[128]; in regex_init() local
148 regerror(err, &sym_regex_c[i], errbuf, sizeof(errbuf)); in regex_init()
149 die("%s", errbuf); in regex_init()
/linux/arch/powerpc/kernel/
H A Drtas.c1856 char *buff_copy, *errbuf = NULL; in SYSCALL_DEFINE1() local
1948 errbuf = __fetch_rtas_last_error(buff_copy); in SYSCALL_DEFINE1()
1957 if (errbuf) in SYSCALL_DEFINE1()
1958 log_error(errbuf, ERR_TYPE_RTAS_LOG, 0); in SYSCALL_DEFINE1()
/linux/tools/testing/selftests/net/
H A Dnettest.c1875 char *outbuf, *errbuf; in ipc_child() local
1879 errbuf = malloc(4096); in ipc_child()
1880 if (!outbuf || !errbuf) { in ipc_child()
1886 setbuffer(stderr, errbuf, 4096); in ipc_child()
1900 free(errbuf); in ipc_child()