Home
last modified time | relevance | path

Searched defs:fmt (Results 1 – 25 of 144) sorted by relevance

123456

/tools/perf/util/
Ddebug.h18 #define pr_fmt(fmt) fmt argument
21 #define pr_err(fmt, ...) \ argument
23 #define pr_warning(fmt, ...) \ argument
25 #define pr_warning_once(fmt, ...) ({ \ argument
32 #define pr_info(fmt, ...) \ argument
34 #define pr_debug(fmt, ...) \ argument
36 #define pr_debugN(n, fmt, ...) \ argument
38 #define pr_debug2(fmt, ...) pr_debugN(2, pr_fmt(fmt), ##__VA_ARGS__) argument
39 #define pr_debug3(fmt, ...) pr_debugN(3, pr_fmt(fmt), ##__VA_ARGS__) argument
40 #define pr_debug4(fmt, ...) pr_debugN(4, pr_fmt(fmt), ##__VA_ARGS__) argument
[all …]
Dcolor.c14 const char *fmt, va_list args, const char *trail) in __color_vsnprintf()
39 static int __color_vfprintf(FILE *fp, const char *color, const char *fmt, in __color_vfprintf()
63 const char *fmt, va_list args) in color_vsnprintf()
68 int color_vfprintf(FILE *fp, const char *color, const char *fmt, va_list args) in color_vfprintf()
74 const char *fmt, ...) in color_snprintf()
85 int color_fprintf(FILE *fp, const char *color, const char *fmt, ...) in color_fprintf()
142 int percent_color_fprintf(FILE *fp, const char *fmt, double percent) in percent_color_fprintf()
153 int value_color_snprintf(char *bf, size_t size, const char *fmt, double value) in value_color_snprintf()
159 int percent_color_snprintf(char *bf, size_t size, const char *fmt, ...) in percent_color_snprintf()
170 int percent_color_len_snprintf(char *bf, size_t size, const char *fmt, ...) in percent_color_len_snprintf()
Dblock-info.c163 static int block_column_header(struct perf_hpp_fmt *fmt, in block_column_header()
175 static int block_column_width(struct perf_hpp_fmt *fmt, in block_column_width()
195 static int block_total_cycles_pct_entry(struct perf_hpp_fmt *fmt, in block_total_cycles_pct_entry()
209 static int64_t block_total_cycles_pct_sort(struct perf_hpp_fmt *fmt, in block_total_cycles_pct_sort()
239 static int block_cycles_lbr_entry(struct perf_hpp_fmt *fmt, in block_cycles_lbr_entry()
252 static int block_cycles_pct_entry(struct perf_hpp_fmt *fmt, in block_cycles_pct_entry()
268 static int block_avg_cycles_entry(struct perf_hpp_fmt *fmt, in block_avg_cycles_entry()
283 static int block_range_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in block_range_entry()
314 static int block_dso_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in block_dso_entry()
331 struct perf_hpp_fmt *fmt = &block_fmt->fmt; in init_block_header() local
[all …]
Ddebug.c66 int veprintf(int level, int var, const char *fmt, va_list args) in veprintf()
82 int eprintf(int level, int var, const char *fmt, ...) in eprintf()
94 static int veprintf_time(u64 t, const char *fmt, va_list args) in veprintf_time()
109 int eprintf_time(int level, int var, u64 t, const char *fmt, ...) in eprintf_time()
127 void pr_stat(const char *fmt, ...) in pr_stat()
137 int dump_printf(const char *fmt, ...) in dump_printf()
/tools/lib/perf/
Dinternal.h11 #define __pr(level, fmt, ...) \ argument
16 #define pr_err(fmt, ...) __pr(LIBPERF_ERR, fmt, ##__VA_ARGS__) argument
17 #define pr_warning(fmt, ...) __pr(LIBPERF_WARN, fmt, ##__VA_ARGS__) argument
18 #define pr_info(fmt, ...) __pr(LIBPERF_INFO, fmt, ##__VA_ARGS__) argument
19 #define pr_debug(fmt, ...) __pr(LIBPERF_DEBUG, fmt, ##__VA_ARGS__) argument
20 #define pr_debug2(fmt, ...) __pr(LIBPERF_DEBUG2, fmt, ##__VA_ARGS__) argument
21 #define pr_debug3(fmt, ...) __pr(LIBPERF_DEBUG3, fmt, ##__VA_ARGS__) argument
/tools/testing/selftests/powerpc/nx-gzip/include/
Dnx_dbg.h32 #define prt(fmt, ...) do { \ argument
47 #define prt_err(fmt, ...) do { if (nx_dbg >= 0) { \ argument
53 #define prt_warn(fmt, ...) do { if (nx_dbg >= 1) { \ argument
59 #define prt_info(fmt, ...) do { if (nx_dbg >= 2) { \ argument
64 #define prt_trace(fmt, ...) do { if (nx_gzip_trace_enabled()) { \ argument
69 #define prt_stat(fmt, ...) do { if (nx_gzip_gather_statistics()) { \ argument
74 #define hw_trace(fmt, ...) do { \ argument
80 #define sw_trace(fmt, ...) do { \ argument
/tools/lib/traceevent/
Dparse-utils.c14 void __vwarning(const char *fmt, va_list ap) in __vwarning()
26 void __warning(const char *fmt, ...) in __warning()
35 void __weak warning(const char *fmt, ...) in warning()
44 void __vpr_stat(const char *fmt, va_list ap) in __vpr_stat()
50 void __pr_stat(const char *fmt, ...) in __pr_stat()
59 void __weak vpr_stat(const char *fmt, va_list ap) in vpr_stat()
64 void __weak pr_stat(const char *fmt, ...) in pr_stat()
/tools/testing/selftests/timens/
Dlog.h6 #define pr_msg(fmt, lvl, ...) \ argument
10 #define pr_p(func, fmt, ...) func(fmt ": %m", ##__VA_ARGS__) argument
12 #define pr_err(fmt, ...) \ argument
18 #define pr_fail(fmt, ...) \ argument
24 #define pr_perror(fmt, ...) pr_p(pr_err, fmt, ##__VA_ARGS__) argument
/tools/lib/api/
Ddebug-internal.h7 #define __pr(func, fmt, ...) \ argument
17 #define pr_warn(fmt, ...) __pr(__pr_warn, fmt, ##__VA_ARGS__) argument
18 #define pr_info(fmt, ...) __pr(__pr_info, fmt, ##__VA_ARGS__) argument
19 #define pr_debug(fmt, ...) __pr(__pr_debug, fmt, ##__VA_ARGS__) argument
/tools/perf/pmu-events/
Djson.h19 #define pr_fmt(fmt) fmt argument
21 #define pr_err(fmt, ...) \ argument
24 #define pr_info(fmt, ...) \ argument
27 #define pr_debug(fmt, ...) \ argument
/tools/perf/ui/
Dhist.c18 #define hpp__call_print_fn(hpp, fn, fmt, ...) \ argument
26 hpp_field_fn get_field, const char *fmt, int len, in __hpp__fmt()
114 int hpp__fmt(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in hpp__fmt()
133 int hpp__fmt_acc(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in hpp__fmt_acc()
287 static int hpp__width_fn(struct perf_hpp_fmt *fmt, in hpp__width_fn()
303 static int hpp__header_fn(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in hpp__header_fn()
311 int hpp_color_scnprintf(struct perf_hpp *hpp, const char *fmt, ...) in hpp_color_scnprintf()
327 static int hpp_entry_scnprintf(struct perf_hpp *hpp, const char *fmt, ...) in hpp_entry_scnprintf()
538 static void fmt_free(struct perf_hpp_fmt *fmt) in fmt_free()
556 struct perf_hpp_fmt *fmt = &perf_hpp__format[i]; in perf_hpp__init() local
[all …]
Dhelpline.c43 void ui_helpline__vpush(const char *fmt, va_list ap) in ui_helpline__vpush()
55 void ui_helpline__fpush(const char *fmt, ...) in ui_helpline__fpush()
70 int ui_helpline__vshow(const char *fmt, va_list ap) in ui_helpline__vshow()
75 void ui_helpline__printf(const char *fmt, ...) in ui_helpline__printf()
/tools/testing/selftests/bpf/progs/
Dtest_tunnel_kern.c72 char fmt[] = "key %d remote ip 0x%x\n"; in _gre_get_tunnel() local
111 char fmt[] = "key %d remote ip6 ::%x label %x\n"; in _ip6gretap_get_tunnel() local
174 char fmt[] = "key %d remote ip 0x%x erspan version %d\n"; in _erspan_get_tunnel() local
259 char fmt[] = "ip6erspan get key %d remote ip6 ::%x erspan version %d\n"; in _ip4ip6erspan_get_tunnel() local
334 char fmt[] = "key %d remote ip 0x%x vxlan gbp 0x%x\n"; in _vxlan_get_tunnel() local
379 char fmt[] = "key %d remote ip6 ::%x label %x\n"; in _ip6vxlan_get_tunnel() local
440 char fmt[] = "key %d remote ip 0x%x geneve class 0x%x\n"; in _geneve_get_tunnel() local
498 char fmt[] = "key %d remote ip 0x%x geneve class 0x%x\n"; in _ip6geneve_get_tunnel() local
554 char fmt[] = "remote ip 0x%x\n"; in _ipip_get_tunnel() local
602 char fmt[] = "remote ip6 %x::%x\n"; in _ipip6_get_tunnel() local
[all …]
/tools/lib/
Dvsprintf.c6 int vscnprintf(char *buf, size_t size, const char *fmt, va_list args) in vscnprintf()
14 int scnprintf(char * buf, size_t size, const char * fmt, ...) in scnprintf()
27 int scnprintf_pad(char * buf, size_t size, const char * fmt, ...) in scnprintf_pad()
/tools/usb/usbip/libsrc/
Dusbip_common.h62 #define pr_fmt(fmt) "%s: %s: " fmt "\n", PROGNAME argument
63 #define dbg_fmt(fmt) pr_fmt("%s:%d:[%s] " fmt), "debug", \ argument
66 #define err(fmt, args...) \ argument
76 #define info(fmt, args...) \ argument
86 #define dbg(fmt, args...) \ argument
/tools/testing/selftests/mount/
Dnosymfollow-test.c30 static void die(char *fmt, ...) in die()
40 static void vmaybe_write_file(bool enoent_ok, char *filename, char *fmt, in vmaybe_write_file()
76 static void maybe_write_file(char *filename, char *fmt, ...) in maybe_write_file()
85 static void write_file(char *filename, char *fmt, ...) in write_file()
Dunprivileged-remount-test.c48 static void die(char *fmt, ...) in die()
57 static void vmaybe_write_file(bool enoent_ok, char *filename, char *fmt, va_list ap) in vmaybe_write_file()
95 static void maybe_write_file(char *filename, char *fmt, ...) in maybe_write_file()
105 static void write_file(char *filename, char *fmt, ...) in write_file()
/tools/testing/selftests/proc/
Dproc-self-map-files-001.c26 static void pass(const char *fmt, unsigned long a, unsigned long b) in pass()
36 static void fail(const char *fmt, unsigned long a, unsigned long b) in fail()
Dproc-self-map-files-002.c26 static void pass(const char *fmt, unsigned long a, unsigned long b) in pass()
36 static void fail(const char *fmt, unsigned long a, unsigned long b) in fail()
/tools/testing/selftests/x86/
Dsyscall_numbering.c85 #define msg(lvl, fmt, ...) printf("%-*s" fmt, offset(), "[" #lvl "]", \ argument
88 #define run(fmt, ...) msg(RUN, fmt, ## __VA_ARGS__) argument
89 #define info(fmt, ...) msg(INFO, fmt, ## __VA_ARGS__) argument
90 #define ok(fmt, ...) msg(OK, fmt, ## __VA_ARGS__) argument
92 #define fail(fmt, ...) \ argument
98 #define crit(fmt, ...) \ argument
/tools/bpf/bpftool/
Djit_disasm.c43 static int printf_json(void *out, const char *fmt, va_list ap) in printf_json()
74 static int fprintf_json(void *out, const char *fmt, ...) in fprintf_json()
88 const char *fmt, ...) in fprintf_json_styled()
/tools/perf/
Dbuiltin-c2c.c419 struct perf_hpp_fmt fmt; member
438 static int c2c_width(struct perf_hpp_fmt *fmt, in c2c_width()
455 static int c2c_header(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in c2c_header()
502 static int dcacheline_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in dcacheline_entry()
516 dcacheline_node_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in dcacheline_node_entry()
530 dcacheline_node_count(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in dcacheline_node_count()
540 static int offset_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in offset_entry()
568 iaddr_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in iaddr_entry()
589 tot_hitm_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in tot_hitm_entry()
685 tot_recs_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in tot_recs_entry()
[all …]
Dbuiltin-diff.c66 struct perf_hpp_fmt fmt; member
78 struct diff_hpp_fmt fmt[PERF_HPP_DIFF__MAX_INDEX]; member
508 static struct data__file *fmt_to_data_file(struct perf_hpp_fmt *fmt) in fmt_to_data_file()
876 hist_entry__cmp_delta(struct perf_hpp_fmt *fmt, in hist_entry__cmp_delta()
885 hist_entry__cmp_delta_abs(struct perf_hpp_fmt *fmt, in hist_entry__cmp_delta_abs()
894 hist_entry__cmp_ratio(struct perf_hpp_fmt *fmt, in hist_entry__cmp_ratio()
903 hist_entry__cmp_wdiff(struct perf_hpp_fmt *fmt, in hist_entry__cmp_wdiff()
1069 struct diff_hpp_fmt *fmt = &d->fmt[col]; in data__free() local
1321 static int hpp__color_baseline(struct perf_hpp_fmt *fmt, in hpp__color_baseline()
1341 const char *fmt = symbol_conf.field_sep ? "%.2f" : "%6.2f%%"; in hpp__entry_baseline() local
[all …]
/tools/perf/util/intel-pt-decoder/
Dintel-pt-log.h32 #define intel_pt_log(fmt, ...) \ argument
70 #define intel_pt_log_var(var, fmt) intel_pt_log("%s: " #var " " fmt "\n", __func__, var) argument
/tools/testing/selftests/safesetid/
Dsafesetid-test.c31 static void die(char *fmt, ...) in die()
40 static bool vmaybe_write_file(bool enoent_ok, char *filename, char *fmt, va_list ap) in vmaybe_write_file()
83 static bool write_file(char *filename, char *fmt, ...) in write_file()

123456