Home
last modified time | relevance | path

Searched refs:err (Results 1 – 25 of 132) sorted by relevance

123456

/tools/perf/util/
Dusage.c12 static void report(const char *prefix, const char *err, va_list params) in report() argument
15 vsnprintf(msg, sizeof(msg), err, params); in report()
19 static NORETURN void usage_builtin(const char *err) in usage_builtin() argument
21 fprintf(stderr, "\n Usage: %s\n", err); in usage_builtin()
25 static NORETURN void die_builtin(const char *err, va_list params) in die_builtin() argument
27 report(" Fatal: ", err, params); in die_builtin()
31 static void error_builtin(const char *err, va_list params) in error_builtin() argument
33 report(" Error: ", err, params); in error_builtin()
43 static void (*usage_routine)(const char *err) NORETURN = usage_builtin;
44 static void (*die_routine)(const char *err, va_list params) NORETURN = die_builtin;
[all …]
Dtrace-event-info.c66 int err = -EIO; in record_file() local
99 err = 0; in record_file()
102 return err; in record_file()
109 int err = -EIO; in record_header_files() local
137 err = -ENOMEM; in record_header_files()
156 err = 0; in record_header_files()
159 return err; in record_header_files()
181 int err; in copy_event_system() local
196 err = -ENOMEM; in copy_event_system()
207 err = -EIO; in copy_event_system()
[all …]
Dcloexec.c25 int err; in perf_flag_probe() local
48 err = errno; in perf_flag_probe()
55 WARN_ONCE(err != EINVAL && err != EBUSY, in perf_flag_probe()
57 err, strerror_r(err, sbuf, sizeof(sbuf))); in perf_flag_probe()
68 err = errno; in perf_flag_probe()
73 if (WARN_ONCE(fd < 0 && err != EBUSY, in perf_flag_probe()
75 err, strerror_r(err, sbuf, sizeof(sbuf)))) in perf_flag_probe()
Dtrace-event-scripting.c90 int err; in register_python_scripting() local
91 err = script_spec_register("Python", scripting_ops); in register_python_scripting()
92 if (err) in register_python_scripting()
95 err = script_spec_register("py", scripting_ops); in register_python_scripting()
96 if (err) in register_python_scripting()
154 int err; in register_perl_scripting() local
155 err = script_spec_register("Perl", scripting_ops); in register_perl_scripting()
156 if (err) in register_perl_scripting()
159 err = script_spec_register("pl", scripting_ops); in register_perl_scripting()
160 if (err) in register_perl_scripting()
/tools/perf/tests/
Devsel-roundtrip-name.c10 int type, op, err = 0, ret = 0, i, idx; in perf_evsel__roundtrip_cache_name_test() local
26 err = parse_events(evlist, name); in perf_evsel__roundtrip_cache_name_test()
27 if (err) in perf_evsel__roundtrip_cache_name_test()
28 ret = err; in perf_evsel__roundtrip_cache_name_test()
66 int i, err; in __perf_evsel__name_array_test() local
74 err = parse_events(evlist, names[i]); in __perf_evsel__name_array_test()
75 if (err) { in __perf_evsel__name_array_test()
77 names[i], err); in __perf_evsel__name_array_test()
82 err = 0; in __perf_evsel__name_array_test()
85 --err; in __perf_evsel__name_array_test()
[all …]
Dswitch-tracking.c17 int err, i; in spin_sleep() local
22 err = gettimeofday(&start, NULL); in spin_sleep()
23 if (err) in spin_sleep()
24 return err; in spin_sleep()
31 err = gettimeofday(&now, NULL); in spin_sleep()
32 if (err) in spin_sleep()
33 return err; in spin_sleep()
44 err = nanosleep(&ts, NULL); in spin_sleep()
45 if (err == EINTR) in spin_sleep()
46 err = 0; in spin_sleep()
[all …]
Dmmap-thread-lookup.c76 int err, go; in thread_create() local
81 err = pthread_create(&td->pt, NULL, thread_fn, td); in thread_create()
82 if (!err) { in thread_create()
85 err = ret != sizeof(int); in thread_create()
90 return err; in thread_create()
96 int i, err = 0; in threads_create() local
104 for (i = 1; !err && i < THREADS; i++) in threads_create()
105 err = thread_create(i); in threads_create()
107 return err; in threads_create()
113 int i, err = 0; in threads_destroy() local
[all …]
Dopen-syscall-tp-fields.c24 int err = -1, i, nr_events = 0, nr_polls = 0; in test__syscall_open_tp_fields() local
40 err = perf_evlist__create_maps(evlist, &opts.target); in test__syscall_open_tp_fields()
41 if (err < 0) { in test__syscall_open_tp_fields()
50 err = perf_evlist__open(evlist); in test__syscall_open_tp_fields()
51 if (err < 0) { in test__syscall_open_tp_fields()
57 err = perf_evlist__mmap(evlist, UINT_MAX, false); in test__syscall_open_tp_fields()
58 if (err < 0) { in test__syscall_open_tp_fields()
89 err = perf_evsel__parse_sample(evsel, event, &sample); in test__syscall_open_tp_fields()
90 if (err) { in test__syscall_open_tp_fields()
91 pr_err("Can't parse sample, err = %d\n", err); in test__syscall_open_tp_fields()
[all …]
Dtask-exit.c36 int err = -1; in test__task_exit() local
64 err = -ENOMEM; in test__task_exit()
69 err = perf_evlist__prepare_workload(evlist, &target, argv, false, in test__task_exit()
71 if (err < 0) { in test__task_exit()
84 err = perf_evlist__open(evlist); in test__task_exit()
85 if (err < 0) { in test__task_exit()
87 strerror_r(-err, sbuf, sizeof(sbuf))); in test__task_exit()
114 err = -1; in test__task_exit()
119 return err; in test__task_exit()
Dsw-clock.c21 int i, err = -1; in __test__sw_clock_freq() local
56 err = -ENOMEM; in __test__sw_clock_freq()
64 err = -errno; in __test__sw_clock_freq()
71 err = perf_evlist__mmap(evlist, 128, true); in __test__sw_clock_freq()
72 if (err < 0) { in __test__sw_clock_freq()
92 err = perf_evlist__parse_sample(evlist, event, &sample); in __test__sw_clock_freq()
93 if (err < 0) { in __test__sw_clock_freq()
107 err = -1; in __test__sw_clock_freq()
112 return err; in __test__sw_clock_freq()
Dhists_cumulate.c247 int err; in test1() local
282 err = add_hist_entries(hists, machine); in test1()
283 if (err < 0) in test1()
286 err = do_test(hists, expected, ARRAY_SIZE(expected), NULL, 0); in test1()
291 return err; in test1()
297 int err; in test2() local
428 err = add_hist_entries(hists, machine); in test2()
429 if (err < 0) in test2()
432 err = do_test(hists, expected, ARRAY_SIZE(expected), in test2()
438 return err; in test2()
[all …]
Dparse-no-sample-id-all.c41 int err = 0; in process_events() local
44 for (i = 0; i < count && !err; i++) in process_events()
45 err = process_event(&evlist, events[i]); in process_events()
50 return err; in process_events()
72 int err; in test__parse_no_sample_id_all() local
104 err = process_events(events, ARRAY_SIZE(events)); in test__parse_no_sample_id_all()
105 if (err) in test__parse_no_sample_id_all()
Dperf-record.c59 int err = -1, errs = 0, i, wakeups = 0; in test__PERF_RECORD() local
75 err = perf_evlist__create_maps(evlist, &opts.target); in test__PERF_RECORD()
76 if (err < 0) { in test__PERF_RECORD()
87 err = perf_evlist__prepare_workload(evlist, &opts.target, argv, false, NULL); in test__PERF_RECORD()
88 if (err < 0) { in test__PERF_RECORD()
102 err = sched__get_first_possible_cpu(evlist->workload.pid, &cpu_mask); in test__PERF_RECORD()
103 if (err < 0) { in test__PERF_RECORD()
109 cpu = err; in test__PERF_RECORD()
124 err = perf_evlist__open(evlist); in test__PERF_RECORD()
125 if (err < 0) { in test__PERF_RECORD()
[all …]
Dsample-parsing.c194 int err, ret = -1; in do_test() local
220 err = perf_event__synthesize_sample(event, sample_type, read_format, in do_test()
222 if (err) { in do_test()
224 "perf_event__synthesize_sample", sample_type, err); in do_test()
241 err = perf_evsel__parse_sample(&evsel, event, &sample_out); in do_test()
242 if (err) { in do_test()
244 "perf_evsel__parse_sample", sample_type, err); in do_test()
276 int err; in test__sample_parsing() local
294 err = do_test(sample_type, 0, rf[i]); in test__sample_parsing()
295 if (err) in test__sample_parsing()
[all …]
/tools/virtio/
Dvringh_test.c112 int err; in vringh_get_head() local
114 err = get_user(avail_idx, &vrh->vring.avail->idx); in vringh_get_head()
115 if (err) in vringh_get_head()
116 return err; in vringh_get_head()
126 err = get_user(*head, &vrh->vring.avail->ring[i]); in vringh_get_head()
127 if (err) in vringh_get_head()
128 return err; in vringh_get_head()
149 err(1, "Opening /tmp/vringh_test-file"); in parallel_test()
172 int status, err, rlen = 0; in parallel_test() local
200 err = vringh_get_head(&vrh, &head); in parallel_test()
[all …]
/tools/perf/ui/tui/
Dsetup.c52 int err, key; in ui__getch() local
64 err = select(1, &read_set, NULL, NULL, ptimeout); in ui__getch()
66 if (err == 0) in ui__getch()
69 if (err == -1) { in ui__getch()
83 err = select(1, &read_set, NULL, NULL, &timeout); in ui__getch()
84 if (err == 0) in ui__getch()
100 int err; in ui__init() local
106 err = SLsmg_init_smg(); in ui__init()
107 if (err < 0) in ui__init()
109 err = SLang_init_tty(0, 0, 0); in ui__init()
[all …]
/tools/testing/selftests/timers/
Dposix_timers.c77 int err; in check_itimer() local
103 err = gettimeofday(&start, NULL); in check_itimer()
104 if (err < 0) { in check_itimer()
109 err = setitimer(which, &val, NULL); in check_itimer()
110 if (err < 0) { in check_itimer()
123 if (err < 0) { in check_itimer()
138 int err; in check_timer_create() local
154 err = timer_create(which, NULL, &id); in check_timer_create()
155 if (err < 0) { in check_timer_create()
161 err = gettimeofday(&start, NULL); in check_timer_create()
[all …]
/tools/testing/selftests/ipc/
Dmsgque.c91 goto err; in check_and_destroy_queue()
97 goto err; in check_and_destroy_queue()
102 goto err; in check_and_destroy_queue()
107 goto err; in check_and_destroy_queue()
115 goto err; in check_and_destroy_queue()
119 err: in check_and_destroy_queue()
193 int msg, pid, err; in main() local
209 err = -errno; in main()
214 err = fill_msgque(&msgque); in main()
215 if (err) { in main()
[all …]
/tools/perf/
Dbuiltin-record.c210 int err; in perf_event__synthesize_guest_os() local
220 err = perf_event__synthesize_modules(tool, process_synthesized_event, in perf_event__synthesize_guest_os()
222 if (err < 0) in perf_event__synthesize_guest_os()
230 err = perf_event__synthesize_kernel_mmap(tool, process_synthesized_event, in perf_event__synthesize_guest_os()
232 if (err < 0) in perf_event__synthesize_guest_os()
304 int err; in __cmd_record() local
333 err = perf_evlist__prepare_workload(rec->evlist, &opts->target, in __cmd_record()
336 if (err < 0) { in __cmd_record()
338 status = err; in __cmd_record()
344 err = -1; in __cmd_record()
[all …]
/tools/lib/symbol/
Dkallsyms.c11 int err = -1; in kallsyms__parse() local
17 err = 0; in kallsyms__parse()
43 err = -1; in kallsyms__parse()
47 err = process_symbol(arg, symbol_name, symbol_type, start); in kallsyms__parse()
48 if (err) in kallsyms__parse()
54 return err; in kallsyms__parse()
/tools/usb/usbip/src/
Dusbip_attach.c96 err("open vhci_driver"); in import_device()
102 err("no free port"); in import_device()
110 err("import device"); in import_device()
133 err("send op_common"); in query_import_device()
143 err("send op_import_request"); in query_import_device()
150 err("recv op_common"); in query_import_device()
156 err("recv op_import_reply"); in query_import_device()
164 err("recv different busid %s", reply.udev.busid); in query_import_device()
180 err("tcp connect"); in attach_device()
186 err("query"); in attach_device()
[all …]
/tools/testing/selftests/net/
Dsocket.c40 int i, err; in run_tests() local
42 err = 0; in run_tests()
65 err = -1; in run_tests()
78 err = -1; in run_tests()
84 return err; in run_tests()
89 int err = run_tests(); in main() local
91 return err; in main()
/tools/cgroup/
Dcgroup_event_listener.c35 err(1, "Cannot open %s", argv[1]); in main()
44 err(1, "Cannot open %s", event_control_path); in main()
48 err(1, "eventfd() failed"); in main()
56 err(1, "Cannot write to cgroup.event_control"); in main()
65 err(1, "Cannot read from eventfd"); in main()
76 err(1, "cgroup.event_control is not accessible any more"); in main()
/tools/power/cpupower/debug/i386/
Dpowernow-k8-decode.c30 int err = 1; in get_fidvid() local
49 err = 0; in get_fidvid()
53 return err; in get_fidvid()
71 int err; in main() local
80 err = get_fidvid(cpu, &fid, &vid); in main()
82 if (err) { in main()
/tools/power/cpupower/utils/helpers/
Dmsr.c36 goto err; in read_msr()
38 goto err; in read_msr()
41 err: in read_msr()
65 goto err; in write_msr()
67 goto err; in write_msr()
70 err: in write_msr()

123456