| /tools/perf/util/ |
| A D | debug.h | 20 #define pr_fmt(fmt) fmt argument 23 #define pr_err(fmt, ...) \ argument 25 #define pr_warning(fmt, ...) \ argument 30 pr_warning(fmt, ##__VA_ARGS__); \ 34 #define pr_info(fmt, ...) \ argument 36 #define pr_debug(fmt, ...) \ argument 38 #define pr_debugN(n, fmt, ...) \ argument 40 #define pr_debug2(fmt, ...) pr_debugN(2, pr_fmt(fmt), ##__VA_ARGS__) argument 41 #define pr_debug3(fmt, ...) pr_debugN(3, pr_fmt(fmt), ##__VA_ARGS__) argument 42 #define pr_debug4(fmt, ...) pr_debugN(4, pr_fmt(fmt), ##__VA_ARGS__) argument [all …]
|
| A D | color.c | 30 r += vscnprintf(bf + r, size - r, fmt, args); in __color_vsnprintf() 56 r += vfprintf(fp, fmt, args); in __color_vfprintf() 63 const char *fmt, va_list args) in color_vsnprintf() argument 70 return __color_vfprintf(fp, color, fmt, args); in color_vfprintf() 74 const char *fmt, ...) in color_snprintf() argument 79 va_start(args, fmt); in color_snprintf() 90 va_start(args, fmt); in color_fprintf() 91 r = color_vfprintf(fp, color, fmt, args); in color_fprintf() 120 r = color_fprintf(fp, color, fmt, percent); in percent_color_fprintf() 136 va_start(args, fmt); in percent_color_snprintf() [all …]
|
| A D | block-info.c | 184 struct block_fmt *block_fmt = container_of(fmt, struct block_fmt, fmt); in block_column_header() 194 struct block_fmt *block_fmt = container_of(fmt, struct block_fmt, fmt); in block_column_width() 214 struct block_fmt *block_fmt = container_of(fmt, struct block_fmt, fmt); in block_total_cycles_pct_entry() 228 struct block_fmt *block_fmt = container_of(fmt, struct block_fmt, fmt); in block_total_cycles_pct_sort() 257 struct block_fmt *block_fmt = container_of(fmt, struct block_fmt, fmt); in block_cycles_lbr_entry() 270 struct block_fmt *block_fmt = container_of(fmt, struct block_fmt, fmt); in block_cycles_pct_entry() 287 struct block_fmt *block_fmt = container_of(fmt, struct block_fmt, fmt); in block_avg_cycles_entry() 301 struct block_fmt *block_fmt = container_of(fmt, struct block_fmt, fmt); in block_range_entry() 332 struct block_fmt *block_fmt = container_of(fmt, struct block_fmt, fmt); in block_dso_entry() 346 struct perf_hpp_fmt *fmt = &block_fmt->fmt; in init_block_header() local [all …]
|
| A D | color.h | 35 const char *fmt, va_list args); 36 int color_vfprintf(FILE *fp, const char *color, const char *fmt, va_list args); 37 int color_fprintf(FILE *fp, const char *color, const char *fmt, ...) __printf(3, 4); 38 int color_snprintf(char *bf, size_t size, const char *color, const char *fmt, ...) __printf(4, 5); 39 int value_color_snprintf(char *bf, size_t size, const char *fmt, double value); 40 int percent_color_snprintf(char *bf, size_t size, const char *fmt, ...) __printf(3, 4); 41 int percent_color_len_snprintf(char *bf, size_t size, const char *fmt, ...) __printf(3, 4); 42 int percent_color_fprintf(FILE *fp, const char *fmt, double percent);
|
| A D | debug.c | 98 ui_helpline__vshow(fmt, args); in veprintf() 113 va_start(args, fmt); in eprintf() 140 va_start(args, fmt); in eprintf_time() 141 ret = veprintf_time(t, fmt, args); in eprintf_time() 152 void pr_stat(const char *fmt, ...) in pr_stat() argument 156 va_start(args, fmt); in pr_stat() 157 veprintf(1, verbose, fmt, args); in pr_stat() 162 int dump_printf(const char *fmt, ...) in dump_printf() argument 168 va_start(args, fmt); in dump_printf() 169 ret = vprintf(fmt, args); in dump_printf() [all …]
|
| /tools/thermal/lib/ |
| A D | log.h | 18 #define DEBUG(fmt, ...) logit(LOG_DEBUG, "%s:%d: " fmt, __func__, __LINE__, ##__VA_ARGS__) argument 19 #define INFO(fmt, ...) logit(LOG_INFO, fmt, ##__VA_ARGS__) argument 20 #define NOTICE(fmt, ...) logit(LOG_NOTICE, fmt, ##__VA_ARGS__) argument 21 #define WARN(fmt, ...) logit(LOG_WARNING, fmt, ##__VA_ARGS__) argument 22 #define ERROR(fmt, ...) logit(LOG_ERR, fmt, ##__VA_ARGS__) argument 23 #define CRITICAL(fmt, ...) logit(LOG_CRIT, fmt, ##__VA_ARGS__) argument 24 #define ALERT(fmt, ...) logit(LOG_ALERT, fmt, ##__VA_ARGS__) argument 25 #define EMERG(fmt, ...) logit(LOG_EMERG, fmt, ##__VA_ARGS__) argument
|
| /tools/lib/perf/ |
| A D | internal.h | 11 #define __pr(level, fmt, ...) \ argument 13 libperf_print(level, "libperf: " fmt, ##__VA_ARGS__); \ 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/ |
| A D | nx_dbg.h | 32 #define prt(fmt, ...) do { \ argument 37 "pid %d: " fmt, \ 47 #define prt_err(fmt, ...) do { if (nx_dbg >= 0) { \ argument 48 prt("%s:%u: Error: "fmt, \ 53 #define prt_warn(fmt, ...) do { if (nx_dbg >= 1) { \ argument 54 prt("%s:%u: Warning: "fmt, \ 60 prt("Info: "fmt, ## __VA_ARGS__); \ 65 prt("### "fmt, ## __VA_ARGS__); \ 70 prt("### "fmt, ## __VA_ARGS__); \ 74 #define hw_trace(fmt, ...) do { \ argument [all …]
|
| /tools/perf/ui/ |
| A D | hist.c | 127 int len = max(fmt->user_len ?: fmt->len, (int)strlen(fmt->name)); in hpp__fmt() 148 int len = fmt->user_len ?: fmt->len; in hpp__fmt_acc() 376 int len = fmt->user_len ?: fmt->len; in hpp__width_fn() 812 fmt->free(fmt); in fmt_free() 922 if (fmt_equal(acc, fmt) || fmt_equal(acc_lat, fmt)) { in perf_hpp__cancel_cumulate() 937 if (fmt_equal(acc, fmt) || fmt_equal(acc_lat, fmt)) { in perf_hpp__cancel_cumulate() 963 if (fmt_equal(lat, fmt) || fmt_equal(acc, fmt)) in perf_hpp__cancel_latency() 973 if (fmt_equal(lat, fmt) || fmt_equal(acc, fmt)) in perf_hpp__cancel_latency() 989 if (!fmt->entry && !fmt->color) in perf_hpp__setup_output_field() 1055 ret += fmt->width(fmt, &dummy_hpp, hists); in hists__sort_list_width() [all …]
|
| A D | helpline.c | 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() 55 void ui_helpline__fpush(const char *fmt, ...) in ui_helpline__fpush() argument 59 va_start(ap, fmt); in ui_helpline__fpush() 60 ui_helpline__vpush(fmt, 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() 75 void ui_helpline__printf(const char *fmt, ...) in ui_helpline__printf() argument 80 va_start(ap, fmt); in ui_helpline__printf() [all …]
|
| A D | helpline.h | 11 int (*show)(const char *fmt, va_list ap); 20 void ui_helpline__vpush(const char *fmt, va_list ap); 21 void ui_helpline__fpush(const char *fmt, ...); 23 void ui_helpline__printf(const char *fmt, ...); 24 int ui_helpline__vshow(const char *fmt, va_list ap);
|
| /tools/testing/selftests/timens/ |
| A D | log.h | 6 #define pr_msg(fmt, lvl, ...) \ argument 7 ksft_print_msg("[%s] (%s:%d)\t" fmt "\n", \ 10 #define pr_p(func, fmt, ...) func(fmt ": %m", ##__VA_ARGS__) argument 12 #define pr_err(fmt, ...) \ argument 14 ksft_test_result_error(fmt "\n", ##__VA_ARGS__); \ 18 #define pr_fail(fmt, ...) \ argument 20 ksft_test_result_fail(fmt, ##__VA_ARGS__); \ 24 #define pr_perror(fmt, ...) pr_p(pr_err, fmt, ##__VA_ARGS__) argument
|
| /tools/testing/selftests/filesystems/overlayfs/ |
| A D | log.h | 6 #define pr_msg(fmt, lvl, ...) \ argument 7 ksft_print_msg("[%s] (%s:%d)\t" fmt "\n", \ 10 #define pr_p(func, fmt, ...) func(fmt ": %m", ##__VA_ARGS__) argument 12 #define pr_err(fmt, ...) \ argument 14 ksft_test_result_error(fmt "\n", ##__VA_ARGS__); \ 18 #define pr_fail(fmt, ...) \ argument 20 ksft_test_result_fail(fmt, ##__VA_ARGS__); \ 24 #define pr_perror(fmt, ...) pr_p(pr_err, fmt, ##__VA_ARGS__) argument
|
| /tools/testing/selftests/kvm/lib/ |
| A D | guest_sprintf.c | 139 for (str = buf; *fmt; ++fmt) { in guest_vsnprintf() 149 switch (*fmt) { in guest_vsnprintf() 172 ++fmt; in guest_vsnprintf() 184 ++fmt; in guest_vsnprintf() 188 ++fmt; in guest_vsnprintf() 198 if (*fmt == 'h' || *fmt == 'l' || *fmt == 'L') { in guest_vsnprintf() 200 ++fmt; in guest_vsnprintf() 208 ++fmt; in guest_vsnprintf() 213 switch (*fmt) { in guest_vsnprintf() 280 if (*fmt) in guest_vsnprintf() [all …]
|
| /tools/testing/selftests/bpf/progs/ |
| A D | dev_cgroup.c | 18 char fmt[] = " %d:%d \n"; in bpf_prog1() local 22 fmt[0] = 'b'; in bpf_prog1() 25 fmt[0] = 'c'; in bpf_prog1() 28 fmt[0] = '?'; in bpf_prog1() 33 fmt[8] = 'r'; in bpf_prog1() 36 fmt[9] = 'w'; in bpf_prog1() 39 fmt[10] = 'm'; in bpf_prog1() 41 bpf_trace_printk(fmt, sizeof(fmt), ctx->major, ctx->minor); in bpf_prog1()
|
| /tools/lib/api/ |
| A D | debug-internal.h | 7 #define __pr(func, fmt, ...) \ argument 10 (func)("libapi: " fmt, ##__VA_ARGS__); \ 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/usb/usbip/libsrc/ |
| A D | usbip_common.h | 62 #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 69 syslog(LOG_ERR, pr_fmt(fmt), "error", ##args); \ 72 fprintf(stderr, pr_fmt(fmt), "error", ##args); \ 76 #define info(fmt, args...) \ argument 79 syslog(LOG_INFO, pr_fmt(fmt), "info", ##args); \ 82 fprintf(stderr, pr_fmt(fmt), "info", ##args); \ 86 #define dbg(fmt, args...) \ argument 90 syslog(LOG_DEBUG, dbg_fmt(fmt), ##args); \ [all …]
|
| /tools/testing/selftests/ublk/ |
| A D | utils.h | 42 static inline void ublk_err(const char *fmt, ...) in ublk_err() argument 46 va_start(ap, fmt); in ublk_err() 47 vfprintf(stderr, fmt, ap); in ublk_err() 50 static inline void ublk_log(const char *fmt, ...) in ublk_log() argument 55 va_start(ap, fmt); in ublk_log() 56 vfprintf(stdout, fmt, ap); in ublk_log() 60 static inline void ublk_dbg(int level, const char *fmt, ...) in ublk_dbg() argument 65 va_start(ap, fmt); in ublk_dbg() 66 vfprintf(stdout, fmt, ap); in ublk_dbg()
|
| /tools/perf/util/bpf_skel/ |
| A D | bench_uprobe.bpf.c | 18 char fmt[] = "perf bench uprobe %u"; in BPF_UPROBE() local 20 bpf_trace_printk(fmt, sizeof(fmt), ++nr_uprobes); in BPF_UPROBE() 33 char fmt[] = "perf bench uretprobe %u"; in BPF_URETPROBE() local 35 bpf_trace_printk(fmt, sizeof(fmt), ++nr_uretprobes); in BPF_URETPROBE()
|
| /tools/lib/ |
| A D | vsprintf.c | 6 int vscnprintf(char *buf, size_t size, const char *fmt, va_list args) in vscnprintf() argument 8 int i = vsnprintf(buf, size, fmt, args); in vscnprintf() 14 int scnprintf(char * buf, size_t size, const char * fmt, ...) in scnprintf() argument 20 va_start(args, fmt); in scnprintf() 21 i = vsnprintf(buf, size, fmt, args); in scnprintf() 27 int scnprintf_pad(char * buf, size_t size, const char * fmt, ...) in scnprintf_pad() argument 33 va_start(args, fmt); in scnprintf_pad() 34 i = vscnprintf(buf, size, fmt, args); in scnprintf_pad()
|
| /tools/verification/rv/src/ |
| A D | utils.c | 19 void err_msg(const char *fmt, ...) in err_msg() argument 24 va_start(ap, fmt); in err_msg() 25 vsnprintf(message, sizeof(message), fmt, ap); in err_msg() 34 void debug_msg(const char *fmt, ...) in debug_msg() argument 42 va_start(ap, fmt); in debug_msg() 43 vsnprintf(message, sizeof(message), fmt, ap); in debug_msg()
|
| /tools/testing/selftests/tpm2/ |
| A D | tpm2.py | 446 fmt, 515 fmt = '>HII I' 525 fmt = '>HII I' 535 fmt = '>HIII' 574 fmt, 612 fmt, 639 fmt, 657 fmt, 679 fmt, 691 fmt = '>HII III' [all …]
|
| /tools/perf/scripts/python/ |
| A D | task-analyzer.py | 331 fmt += " {{:^{}}}".format( 358 fmt += "{}{{:>{}}}".format( 361 fmt += "{}{{:>{}}}".format( 364 fmt += "{}{{:>{}}}".format( 499 return fmt 520 fmt = self._format_stats() 598 return fmt 605 fmt += "{}{{:{}.{}f}}".format( 624 return fmt 628 fmt = _fmt_header() [all …]
|
| /tools/perf/ui/gtk/ |
| A D | hists.c | 26 va_start(args, fmt); in __percent_color_snprintf() 379 if (fmt->color) in perf_gtk__show_hists() 380 fmt->color(fmt, &hpp, h); in perf_gtk__show_hists() 382 fmt->entry(fmt, &hpp, h); in perf_gtk__show_hists() 441 if (fmt->color) in perf_gtk__add_hierarchy_entries() 442 fmt->color(fmt, hpp, he); in perf_gtk__add_hierarchy_entries() 444 fmt->entry(fmt, hpp, he); in perf_gtk__add_hierarchy_entries() 454 if (fmt->color) in perf_gtk__add_hierarchy_entries() 455 ret = fmt->color(fmt, hpp, he); in perf_gtk__add_hierarchy_entries() 457 ret = fmt->entry(fmt, hpp, he); in perf_gtk__add_hierarchy_entries() [all …]
|
| /tools/include/nolibc/ |
| A D | stdio.h | 262 c = fmt[ofs++]; in __nolibc_printf() 274 c = fmt[ofs++]; in __nolibc_printf() 353 outstr = fmt; in __nolibc_printf() 372 fmt += ofs; in __nolibc_printf() 405 va_start(args, fmt); in fprintf() 412 int printf(const char *fmt, ...) in printf() argument 417 va_start(args, fmt); in printf() 441 va_start(args, fmt); in dprintf() 442 ret = vdprintf(fd, fmt, args); in dprintf() 476 va_start(args, fmt); in snprintf() [all …]
|