Home
last modified time | relevance | path

Searched refs:sbuf (Results 1 – 25 of 34) sorted by relevance

12

/tools/perf/util/
Dcloexec.c28 char sbuf[STRERR_BUFSIZE]; in perf_flag_probe() local
57 err, str_error_r(err, sbuf, sizeof(sbuf))); in perf_flag_probe()
75 err, str_error_r(err, sbuf, sizeof(sbuf)))) in perf_flag_probe()
Dmutex.c10 char sbuf[STRERR_BUFSIZE]; in check_err() local
15 pr_err("%s error: '%s'\n", fn, str_error_r(err, sbuf, sizeof(sbuf))); in check_err()
Ddata.c252 char sbuf[STRERR_BUFSIZE]; in open_file_read() local
259 str_error_r(err, sbuf, sizeof(sbuf))); in open_file_read()
292 char sbuf[STRERR_BUFSIZE]; in open_file_write() local
299 str_error_r(errno, sbuf, sizeof(sbuf))); in open_file_write()
Dprobe-file.c76 char sbuf[STRERR_BUFSIZE]; in print_open_warning() local
86 str_error_r(-err, sbuf, sizeof(sbuf))); in print_open_warning()
91 char sbuf[STRERR_BUFSIZE]; in print_both_open_warning() local
102 str_error_r(-kerr, sbuf, sizeof(sbuf))); in print_both_open_warning()
106 str_error_r(-uerr, sbuf, sizeof(sbuf))); in print_both_open_warning()
269 char sbuf[STRERR_BUFSIZE]; in probe_file__add_event() local
281 str_error_r(errno, sbuf, sizeof(sbuf))); in probe_file__add_event()
/tools/perf/bench/
Devlist-open-close.c117 char sbuf[STRERR_BUFSIZE]; in bench__do_evlist_open_close() local
121 pr_err("evlist__open: %s\n", str_error_r(errno, sbuf, sizeof(sbuf))); in bench__do_evlist_open_close()
127 pr_err("evlist__mmap: %s\n", str_error_r(errno, sbuf, sizeof(sbuf))); in bench__do_evlist_open_close()
193 char sbuf[STRERR_BUFSIZE]; in bench__repeat_event_string() local
200 pr_err("strbuf_init: %s\n", str_error_r(err, sbuf, sizeof(sbuf))); in bench__repeat_event_string()
207 pr_err("strbuf_add: %s\n", str_error_r(err, sbuf, sizeof(sbuf))); in bench__repeat_event_string()
213 pr_err("strbuf_addch: %s\n", str_error_r(err, sbuf, sizeof(sbuf))); in bench__repeat_event_string()
/tools/perf/tests/
Dbackward-ring-buffer.c66 char sbuf[STRERR_BUFSIZE]; in do_test() local
71 str_error_r(errno, sbuf, sizeof(sbuf))); in do_test()
88 char pid[16], sbuf[STRERR_BUFSIZE]; in test__backward_ring_buffer() local
136 str_error_r(errno, sbuf, sizeof(sbuf))); in test__backward_ring_buffer()
157 str_error_r(errno, sbuf, sizeof(sbuf))); in test__backward_ring_buffer()
Dopenat-syscall-all-cpus.c32 char sbuf[STRERR_BUFSIZE]; in test__openat_syscall_event_on_all_cpus() local
59 str_error_r(errno, sbuf, sizeof(sbuf))); in test__openat_syscall_event_on_all_cpus()
81 str_error_r(errno, sbuf, sizeof(sbuf))); in test__openat_syscall_event_on_all_cpus()
Dsw-clock.c34 char sbuf[STRERR_BUFSIZE]; in __test__sw_clock_freq() local
80 str_error_r(errno, sbuf, sizeof(sbuf)), in __test__sw_clock_freq()
88 str_error_r(errno, sbuf, sizeof(sbuf))); in __test__sw_clock_freq()
Dopenat-syscall-tp-fields.c44 char sbuf[STRERR_BUFSIZE]; in test__syscall_openat_tp_fields() local
72 str_error_r(errno, sbuf, sizeof(sbuf))); in test__syscall_openat_tp_fields()
79 str_error_r(errno, sbuf, sizeof(sbuf))); in test__syscall_openat_tp_fields()
Dtask-exit.c53 char sbuf[STRERR_BUFSIZE]; in test__task_exit() local
104 str_error_r(-err, sbuf, sizeof(sbuf))); in test__task_exit()
110 str_error_r(errno, sbuf, sizeof(sbuf))); in test__task_exit()
Dsigtrap.c179 char sbuf[STRERR_BUFSIZE]; in test__sigtrap() local
193 pr_debug("FAILED sigaction(): %s\n", str_error_r(errno, sbuf, sizeof(sbuf))); in test__sigtrap()
201 str_error_r(errno, sbuf, sizeof(sbuf))); in test__sigtrap()
211 pr_debug("FAILED pthread_create(): %s\n", str_error_r(errno, sbuf, sizeof(sbuf))); in test__sigtrap()
Dperf-record.c71 char sbuf[STRERR_BUFSIZE]; in test__PERF_RECORD() local
117 str_error_r(errno, sbuf, sizeof(sbuf))); in test__PERF_RECORD()
128 str_error_r(errno, sbuf, sizeof(sbuf))); in test__PERF_RECORD()
139 str_error_r(errno, sbuf, sizeof(sbuf))); in test__PERF_RECORD()
151 str_error_r(errno, sbuf, sizeof(sbuf))); in test__PERF_RECORD()
Dopenat-syscall.c24 char sbuf[STRERR_BUFSIZE]; in test__openat_syscall_event() local
43 str_error_r(errno, sbuf, sizeof(sbuf))); in test__openat_syscall_event()
Dmmap-basic.c46 char sbuf[STRERR_BUFSIZE]; in test__basic_mmap() local
67 str_error_r(errno, sbuf, sizeof(sbuf))); in test__basic_mmap()
101 str_error_r(errno, sbuf, sizeof(sbuf))); in test__basic_mmap()
111 str_error_r(errno, sbuf, sizeof(sbuf))); in test__basic_mmap()
Devent-times.c24 char sbuf[STRERR_BUFSIZE]; in attach__enable_on_exec() local
46 str_error_r(errno, sbuf, sizeof(sbuf))); in attach__enable_on_exec()
Dbuiltin-test.c214 char sbuf[STRERR_BUFSIZE]; in run_test() local
218 str_error_r(errno, sbuf, sizeof(sbuf))); in run_test()
/tools/lib/subcmd/
Drun-command.c33 char sbuf[STRERR_BUFSIZE]; in start_command() local
114 cmd->dir, str_error_r(errno, sbuf, sizeof(sbuf))); in start_command()
168 char sbuf[STRERR_BUFSIZE]; in wait_or_whine() local
178 str_error_r(errno, sbuf, sizeof(sbuf))); in wait_or_whine()
/tools/perf/
Dbuiltin-buildid-cache.c382 char sbuf[STRERR_BUFSIZE]; in cmd_buildid_cache() local
475 pos->s, str_error_r(errno, sbuf, sizeof(sbuf))); in cmd_buildid_cache()
493 pos->s, str_error_r(errno, sbuf, sizeof(sbuf))); in cmd_buildid_cache()
511 pos->s, str_error_r(errno, sbuf, sizeof(sbuf))); in cmd_buildid_cache()
521 str_error_r(errno, sbuf, sizeof(sbuf))); in cmd_buildid_cache()
539 pos->s, str_error_r(errno, sbuf, sizeof(sbuf))); in cmd_buildid_cache()
Dperf.c309 char sbuf[STRERR_BUFSIZE]; in run_builtin() local
341 str_error_r(errno, sbuf, sizeof(sbuf))); in run_builtin()
350 str_error_r(errno, sbuf, sizeof(sbuf))); in run_builtin()
436 char sbuf[STRERR_BUFSIZE]; in main() local
548 cmd, str_error_r(errno, sbuf, sizeof(sbuf))); in main()
Dbuiltin-help.c121 char sbuf[STRERR_BUFSIZE]; in exec_failed() local
122 pr_warning("failed to exec '%s': %s", cmd, str_error_r(errno, sbuf, sizeof(sbuf))); in exec_failed()
/tools/lib/api/fs/
Dtracing_path.c130 char sbuf[128]; in tracing_path__strerror_open_tp() local
173 snprintf(buf, size, "%s", str_error_r(err, sbuf, sizeof(sbuf))); in tracing_path__strerror_open_tp()
Dfs.c354 char sbuf[STRERR_BUFSIZE]; in filename__read_str() local
376 strerror_r(errno, sbuf, sizeof(sbuf))); in filename__read_str()
/tools/testing/selftests/sync/
Dsync_test.c67 struct stat sbuf; in sync_api_supported() local
70 ret = stat("/sys/kernel/debug/sync/sw_sync", &sbuf); in sync_api_supported()
/tools/usb/usbip/src/
Dusbipd.c364 char sbuf[NI_MAXSERV]; in addrinfo_to_text() local
370 sbuf, sizeof(sbuf), NI_NUMERICHOST | NI_NUMERICSERV); in addrinfo_to_text()
374 snprintf(buf, buf_size, "%s:%s", hbuf, sbuf); in addrinfo_to_text()
/tools/testing/selftests/net/
Dtap.c235 uint16_t *sbuf = (uint16_t *)buf; in add_csum() local
238 sum += *sbuf++; in add_csum()
243 sum += *(uint8_t *)sbuf; in add_csum()

12