Home
last modified time | relevance | path

Searched refs:ap (Results 1 – 25 of 53) sorted by relevance

123

/tools/lib/traceevent/
Dparse-utils.c14 void __vwarning(const char *fmt, va_list ap) in __vwarning() argument
21 vfprintf(stderr, fmt, ap); in __vwarning()
28 va_list ap; in __warning() local
30 va_start(ap, fmt); in __warning()
31 __vwarning(fmt, ap); in __warning()
32 va_end(ap); in __warning()
37 va_list ap; in warning() local
39 va_start(ap, fmt); in warning()
40 __vwarning(fmt, ap); in warning()
41 va_end(ap); in warning()
[all …]
Dtrace-seq.c115 va_list ap; in trace_seq_printf() local
124 va_start(ap, fmt); in trace_seq_printf()
125 ret = vsnprintf(s->buffer + s->len, len, fmt, ap); in trace_seq_printf()
126 va_end(ap); in trace_seq_printf()
/tools/perf/ui/
Dhelpline.c20 va_list ap __maybe_unused) in nop_helpline__show()
43 void ui_helpline__vpush(const char *fmt, va_list ap) in ui_helpline__vpush() argument
47 if (vasprintf(&s, fmt, ap) < 0) in ui_helpline__vpush()
48 vfprintf(stderr, fmt, ap); in ui_helpline__vpush()
57 va_list ap; in ui_helpline__fpush() local
59 va_start(ap, fmt); in ui_helpline__fpush()
60 ui_helpline__vpush(fmt, ap); in ui_helpline__fpush()
61 va_end(ap); in ui_helpline__fpush()
70 int ui_helpline__vshow(const char *fmt, va_list ap) in ui_helpline__vshow() argument
72 return helpline_fns->show(fmt, ap); in ui_helpline__vshow()
[all …]
Dhelpline.h11 int (*show)(const char *fmt, va_list ap);
20 void ui_helpline__vpush(const char *fmt, va_list ap);
24 int ui_helpline__vshow(const char *fmt, va_list ap);
/tools/testing/selftests/mount/
Dnosymfollow-test.c32 va_list ap; in die() local
34 va_start(ap, fmt); in die()
35 vfprintf(stderr, fmt, ap); in die()
36 va_end(ap); in die()
41 va_list ap) in vmaybe_write_file() argument
48 buf_len = vsnprintf(buf, sizeof(buf), fmt, ap); in vmaybe_write_file()
78 va_list ap; in maybe_write_file() local
80 va_start(ap, fmt); in maybe_write_file()
81 vmaybe_write_file(true, filename, fmt, ap); in maybe_write_file()
82 va_end(ap); in maybe_write_file()
[all …]
Dunprivileged-remount-test.c50 va_list ap; in die() local
51 va_start(ap, fmt); in die()
52 vfprintf(stderr, fmt, ap); in die()
53 va_end(ap); in die()
57 static void vmaybe_write_file(bool enoent_ok, char *filename, char *fmt, va_list ap) in vmaybe_write_file() argument
64 buf_len = vsnprintf(buf, sizeof(buf), fmt, ap); in vmaybe_write_file()
97 va_list ap; in maybe_write_file() local
99 va_start(ap, fmt); in maybe_write_file()
100 vmaybe_write_file(true, filename, fmt, ap); in maybe_write_file()
101 va_end(ap); in maybe_write_file()
[all …]
/tools/testing/selftests/safesetid/
Dsafesetid-test.c33 va_list ap; in die() local
34 va_start(ap, fmt); in die()
35 vfprintf(stderr, fmt, ap); in die()
36 va_end(ap); in die()
40 static bool vmaybe_write_file(bool enoent_ok, char *filename, char *fmt, va_list ap) in vmaybe_write_file() argument
47 buf_len = vsnprintf(buf, sizeof(buf), fmt, ap); in vmaybe_write_file()
85 va_list ap; in write_file() local
88 va_start(ap, fmt); in write_file()
89 ret = vmaybe_write_file(false, filename, fmt, ap); in write_file()
90 va_end(ap); in write_file()
/tools/testing/selftests/kvm/lib/
Dassert.c67 va_list ap; in test_assert() local
70 va_start(ap, fmt); in test_assert()
80 vfprintf(stderr, fmt, ap); in test_assert()
83 va_end(ap); in test_assert()
Dtest_util.c104 va_list ap; in print_skip() local
107 va_start(ap, fmt); in print_skip()
108 vprintf(fmt, ap); in print_skip()
109 va_end(ap); in print_skip()
/tools/perf/util/
Dstrbuf.c94 static int strbuf_addv(struct strbuf *sb, const char *fmt, va_list ap) in strbuf_addv() argument
105 va_copy(ap_saved, ap); in strbuf_addv()
106 len = vsnprintf(sb->buf + sb->len, sb->alloc - sb->len, fmt, ap); in strbuf_addv()
130 va_list ap; in strbuf_addf() local
133 va_start(ap, fmt); in strbuf_addf()
134 ret = strbuf_addv(sb, fmt, ap); in strbuf_addf()
135 va_end(ap); in strbuf_addf()
/tools/testing/selftests/capabilities/
Dtest_execve.c34 static void vmaybe_write_file(bool enoent_ok, char *filename, char *fmt, va_list ap) in vmaybe_write_file() argument
41 buf_len = vsnprintf(buf, sizeof(buf), fmt, ap); in vmaybe_write_file()
73 va_list ap; in maybe_write_file() local
75 va_start(ap, fmt); in maybe_write_file()
76 vmaybe_write_file(true, filename, fmt, ap); in maybe_write_file()
77 va_end(ap); in maybe_write_file()
82 va_list ap; in write_file() local
84 va_start(ap, fmt); in write_file()
85 vmaybe_write_file(false, filename, fmt, ap); in write_file()
86 va_end(ap); in write_file()
/tools/lib/perf/tests/
Dtest-threadmap.c8 const char *fmt, va_list ap) in libperf_print() argument
10 return vfprintf(stderr, fmt, ap); in libperf_print()
Dtest-cpumap.c8 const char *fmt, va_list ap) in libperf_print() argument
10 return vfprintf(stderr, fmt, ap); in libperf_print()
/tools/testing/selftests/firmware/
Dfw_namespace.c28 va_list ap; in die() local
30 va_start(ap, fmt); in die()
31 vfprintf(stderr, fmt, ap); in die()
32 va_end(ap); in die()
/tools/testing/selftests/net/
Dtest_vxlan_fdb_changelink.sh21 bridge fdb ap dev vx 00:00:00:00:00:00 dst 192.0.2.20 self permanent
22 bridge fdb ap dev vx 00:00:00:00:00:00 dst 192.0.2.30 self permanent
/tools/perf/ui/tui/
Dhelpline.c31 static int tui_helpline__show(const char *format, va_list ap) in tui_helpline__show() argument
38 sizeof(ui_helpline__last_msg) - backlog, format, ap); in tui_helpline__show()
/tools/perf/ui/gtk/
Dhelpline.c28 static int gtk_helpline_show(const char *fmt, va_list ap) in gtk_helpline_show() argument
35 sizeof(ui_helpline__current) - backlog, fmt, ap); in gtk_helpline_show()
/tools/bpf/bpftool/
Djit_disasm.c44 va_list ap; in fprintf_json() local
48 va_start(ap, fmt); in fprintf_json()
49 err = vasprintf(&s, fmt, ap); in fprintf_json()
50 va_end(ap); in fprintf_json()
Djson_writer.c158 void jsonw_vprintf_enquote(json_writer_t *self, const char *fmt, va_list ap) in jsonw_vprintf_enquote() argument
162 vfprintf(self->out, fmt, ap); in jsonw_vprintf_enquote()
168 va_list ap; in jsonw_printf() local
170 va_start(ap, fmt); in jsonw_printf()
172 vfprintf(self->out, fmt, ap); in jsonw_printf()
173 va_end(ap); in jsonw_printf()
/tools/testing/selftests/vm/
Dpkey-helpers.h39 va_list ap; in sigsafe_printf() local
42 va_start(ap, format); in sigsafe_printf()
43 vprintf(format, ap); in sigsafe_printf()
44 va_end(ap); in sigsafe_printf()
Dthuge-gen.c114 va_list ap; in read_sysfs() local
117 va_start(ap, fmt); in read_sysfs()
118 vsnprintf(buf, sizeof buf, fmt, ap); in read_sysfs()
119 va_end(ap); in read_sysfs()
/tools/testing/selftests/powerpc/syscalls/
Drtas_filter.c175 va_list ap; in rtas_call() local
177 va_start(ap, nrets); in rtas_call()
192 args.args[i] = (__be32) va_arg(ap, unsigned long); in rtas_call()
195 rets[i] = (__be32 *) va_arg(ap, unsigned long); in rtas_call()
212 va_end(ap); in rtas_call()
/tools/lib/perf/Documentation/examples/
Dcounting.c13 const char *fmt, va_list ap) in libperf_print() argument
15 return vfprintf(stderr, fmt, ap); in libperf_print()
Dsampling.c13 const char *fmt, va_list ap) in libperf_print() argument
15 return vfprintf(stderr, fmt, ap); in libperf_print()
/tools/lib/perf/include/perf/
Dcore.h21 const char *, va_list ap);

123