/tools/perf/util/ |
D | debug.h | 17 #define pr_fmt(fmt) fmt argument 20 #define pr_err(fmt, ...) \ argument 21 eprintf(0, verbose, pr_fmt(fmt), ##__VA_ARGS__) 22 #define pr_warning(fmt, ...) \ argument 23 eprintf(0, verbose, pr_fmt(fmt), ##__VA_ARGS__) 24 #define pr_info(fmt, ...) \ argument 25 eprintf(0, verbose, pr_fmt(fmt), ##__VA_ARGS__) 26 #define pr_debug(fmt, ...) \ argument 27 eprintf(1, verbose, pr_fmt(fmt), ##__VA_ARGS__) 28 #define pr_debugN(n, fmt, ...) \ argument [all …]
|
D | color.c | 14 const char *fmt, va_list args, const char *trail) in __color_vsnprintf() argument 30 r += vscnprintf(bf + r, size - r, fmt, args); in __color_vsnprintf() 39 static int __color_vfprintf(FILE *fp, const char *color, const char *fmt, in __color_vfprintf() argument 56 r += vfprintf(fp, fmt, args); in __color_vfprintf() 63 const char *fmt, va_list args) in color_vsnprintf() argument 65 return __color_vsnprintf(bf, size, color, fmt, args, NULL); in color_vsnprintf() 68 int color_vfprintf(FILE *fp, const char *color, const char *fmt, va_list args) in color_vfprintf() 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() [all …]
|
D | debug.c | 34 int veprintf(int level, int var, const char *fmt, va_list args) in veprintf() argument 40 ui_helpline__vshow(fmt, args); in veprintf() 42 ret = vfprintf(stderr, fmt, args); in veprintf() 48 int eprintf(int level, int var, const char *fmt, ...) in eprintf() argument 53 va_start(args, fmt); in eprintf() 54 ret = veprintf(level, var, fmt, args); in eprintf() 60 static int veprintf_time(u64 t, const char *fmt, va_list args) in veprintf_time() argument 71 ret += vfprintf(stderr, fmt, args); in veprintf_time() 75 int eprintf_time(int level, int var, u64 t, const char *fmt, ...) in eprintf_time() argument 81 va_start(args, fmt); in eprintf_time() [all …]
|
D | block-info.c | 93 int64_t block_info__cmp(struct perf_hpp_fmt *fmt __maybe_unused, in block_info__cmp() 163 static int block_column_header(struct perf_hpp_fmt *fmt, in block_column_header() argument 169 struct block_fmt *block_fmt = container_of(fmt, struct block_fmt, fmt); in block_column_header() 175 static int block_column_width(struct perf_hpp_fmt *fmt, in block_column_width() argument 179 struct block_fmt *block_fmt = container_of(fmt, struct block_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() argument 199 struct block_fmt *block_fmt = container_of(fmt, struct block_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() argument 213 struct block_fmt *block_fmt = container_of(fmt, struct block_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() argument [all …]
|
D | color.h | 38 const char *fmt, va_list args); 39 int color_vfprintf(FILE *fp, const char *color, const char *fmt, va_list args); 40 int color_fprintf(FILE *fp, const char *color, const char *fmt, ...); 41 int color_snprintf(char *bf, size_t size, const char *color, const char *fmt, ...); 43 int value_color_snprintf(char *bf, size_t size, const char *fmt, double value); 44 int percent_color_snprintf(char *bf, size_t size, const char *fmt, ...); 45 int percent_color_len_snprintf(char *bf, size_t size, const char *fmt, ...); 46 int percent_color_fprintf(FILE *fp, const char *fmt, double percent);
|
/tools/lib/traceevent/ |
D | parse-utils.c | 14 void __vwarning(const char *fmt, va_list ap) in __vwarning() argument 21 vfprintf(stderr, fmt, ap); in __vwarning() 26 void __warning(const char *fmt, ...) in __warning() argument 30 va_start(ap, fmt); in __warning() 31 __vwarning(fmt, ap); in __warning() 35 void __weak warning(const char *fmt, ...) in warning() argument 39 va_start(ap, fmt); in warning() 40 __vwarning(fmt, ap); in warning() 44 void __vpr_stat(const char *fmt, va_list ap) in __vpr_stat() argument 46 vprintf(fmt, ap); in __vpr_stat() [all …]
|
D | event-utils.h | 12 void warning(const char *fmt, ...); 13 void pr_stat(const char *fmt, ...); 14 void vpr_stat(const char *fmt, va_list ap); 17 void __warning(const char *fmt, ...); 18 void __pr_stat(const char *fmt, ...); 20 void __vwarning(const char *fmt, ...); 21 void __vpr_stat(const char *fmt, ...);
|
/tools/lib/perf/ |
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/perf/ui/ |
D | hist.c | 18 #define hpp__call_print_fn(hpp, fn, fmt, ...) \ argument 20 int __ret = fn(hpp, fmt, ##__VA_ARGS__); \ 26 hpp_field_fn get_field, const char *fmt, int len, in __hpp__fmt() argument 42 ret = hpp__call_print_fn(hpp, print_fn, fmt, len, percent); in __hpp__fmt() 44 ret = hpp__call_print_fn(hpp, print_fn, fmt, len, get_field(he)); in __hpp__fmt() 70 fmt, len, 0.0); in __hpp__fmt() 73 fmt, len, 0ULL); in __hpp__fmt() 78 ret += hpp__call_print_fn(hpp, print_fn, fmt, len, in __hpp__fmt() 81 ret += hpp__call_print_fn(hpp, print_fn, fmt, in __hpp__fmt() 96 fmt, len, 0.0); in __hpp__fmt() [all …]
|
D | helpline.c | 19 static int nop_helpline__show(const char *fmt __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() 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 [all …]
|
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/powerpc/nx-gzip/include/ |
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, \ 59 #define prt_info(fmt, ...) do { if (nx_dbg >= 2) { \ argument 60 prt("Info: "fmt, ## __VA_ARGS__); \ 64 #define prt_trace(fmt, ...) do { if (nx_gzip_trace_enabled()) { \ argument 65 prt("### "fmt, ## __VA_ARGS__); \ [all …]
|
/tools/testing/selftests/timens/ |
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/bpf/progs/ |
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()
|
D | test_tunnel_kern.c | 25 char fmt[] = "ERROR line:%d ret:%d\n";\ 26 bpf_trace_printk(fmt, sizeof(fmt), __LINE__, ret); \ 72 char fmt[] = "key %d remote ip 0x%x\n"; in _gre_get_tunnel() local 80 bpf_trace_printk(fmt, sizeof(fmt), key.tunnel_id, key.remote_ipv4); in _gre_get_tunnel() 111 char fmt[] = "key %d remote ip6 ::%x label %x\n"; in _ip6gretap_get_tunnel() local 122 bpf_trace_printk(fmt, sizeof(fmt), in _ip6gretap_get_tunnel() 174 char fmt[] = "key %d remote ip 0x%x erspan version %d\n"; in _erspan_get_tunnel() local 192 bpf_trace_printk(fmt, sizeof(fmt), in _erspan_get_tunnel() 259 char fmt[] = "ip6erspan get key %d remote ip6 ::%x erspan version %d\n"; in _ip4ip6erspan_get_tunnel() local 278 bpf_trace_printk(fmt, sizeof(fmt), in _ip4ip6erspan_get_tunnel() [all …]
|
/tools/lib/api/ |
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/perf/pmu-events/ |
D | json.h | 18 extern int eprintf(int level, int var, const char *fmt, ...); 19 #define pr_fmt(fmt) fmt argument 21 #define pr_err(fmt, ...) \ argument 22 eprintf(0, verbose, pr_fmt(fmt), ##__VA_ARGS__) 24 #define pr_info(fmt, ...) \ argument 25 eprintf(1, verbose, pr_fmt(fmt), ##__VA_ARGS__) 27 #define pr_debug(fmt, ...) \ argument 28 eprintf(2, verbose, pr_fmt(fmt), ##__VA_ARGS__)
|
/tools/usb/usbip/libsrc/ |
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/lib/ |
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/testing/selftests/tpm2/ |
D | tpm2.py | 258 fmt = '>I H%us B H%us' % (len(self.nonce), len(self.hmac)) 259 return struct.pack(fmt, self.session_handle, len(self.nonce), 264 fmt = '>I H%us B H%us' % (len(self.nonce), len(self.hmac)) 265 return struct.calcsize(fmt) 276 fmt = '>H%us H%us' % (len(self.user_auth), len(self.data)) 277 return struct.pack(fmt, len(self.user_auth), self.user_auth, 281 fmt = '>H%us H%us' % (len(self.user_auth), len(self.data)) 282 return struct.calcsize(fmt) 411 fmt = '>HII IHB%us' % (pcrsel_len) 412 cmd = struct.pack(fmt, [all …]
|
/tools/perf/ui/gtk/ |
D | hists.c | 16 static int __percent_color_snprintf(struct perf_hpp *hpp, const char *fmt, ...) in __percent_color_snprintf() argument 26 va_start(args, fmt); in __percent_color_snprintf() 35 ret += scnprintf(buf + ret, size - ret, fmt, len, percent); in __percent_color_snprintf() 49 static int perf_gtk__hpp_color_##_type(struct perf_hpp_fmt *fmt, \ 53 return hpp__fmt(fmt, hpp, he, he_get_##_field, " %*.2f%%", \ 63 static int perf_gtk__hpp_color_##_type(struct perf_hpp_fmt *fmt, \ 67 return hpp__fmt_acc(fmt, hpp, he, he_get_acc_##_field, " %*.2f%%", \ 296 struct perf_hpp_fmt *fmt; in perf_gtk__show_hists() local 314 hists__for_each_format(hists, fmt) in perf_gtk__show_hists() 325 hists__for_each_format(hists, fmt) { in perf_gtk__show_hists() [all …]
|
/tools/perf/ui/stdio/ |
D | hist.c | 418 struct perf_hpp_fmt *fmt; in __hist_entry__snprintf() local 426 perf_hpp_list__for_each_format(hpp_list, fmt) { in __hist_entry__snprintf() 427 if (perf_hpp__should_skip(fmt, he->hists)) in __hist_entry__snprintf() 440 if (perf_hpp__use_color() && fmt->color) in __hist_entry__snprintf() 441 ret = fmt->color(fmt, hpp, he); in __hist_entry__snprintf() 443 ret = fmt->entry(fmt, hpp, he); in __hist_entry__snprintf() 445 ret = hist_entry__snprintf_alignment(he, hpp, fmt, ret); in __hist_entry__snprintf() 463 struct perf_hpp_fmt *fmt; in hist_entry__hierarchy_fprintf() local 479 perf_hpp_list__for_each_format(&fmt_node->hpp, fmt) { in hist_entry__hierarchy_fprintf() 490 if (perf_hpp__use_color() && fmt->color) in hist_entry__hierarchy_fprintf() [all …]
|
/tools/testing/selftests/mount/ |
D | nosymfollow-test.c | 30 static void die(char *fmt, ...) in die() argument 34 va_start(ap, fmt); in die() 35 vfprintf(stderr, fmt, ap); in die() 40 static void vmaybe_write_file(bool enoent_ok, char *filename, char *fmt, in vmaybe_write_file() argument 48 buf_len = vsnprintf(buf, sizeof(buf), fmt, ap); in vmaybe_write_file() 76 static void maybe_write_file(char *filename, char *fmt, ...) in maybe_write_file() argument 80 va_start(ap, fmt); in maybe_write_file() 81 vmaybe_write_file(true, filename, fmt, ap); in maybe_write_file() 85 static void write_file(char *filename, char *fmt, ...) in write_file() argument 89 va_start(ap, fmt); in write_file() [all …]
|
/tools/perf/ |
D | builtin-diff.c | 66 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() argument 510 struct diff_hpp_fmt *dfmt = container_of(fmt, struct diff_hpp_fmt, fmt); in fmt_to_data_file() 512 struct data__file *d = container_of(ptr, struct data__file, fmt); in fmt_to_data_file() 534 struct data__file *d = fmt_to_data_file(&dfmt->fmt); in get_pair_fmt() 576 static int64_t block_sort(struct perf_hpp_fmt *fmt __maybe_unused, in block_sort() 859 hist_entry__cmp_nop(struct perf_hpp_fmt *fmt __maybe_unused, in hist_entry__cmp_nop() 867 hist_entry__cmp_baseline(struct perf_hpp_fmt *fmt __maybe_unused, in hist_entry__cmp_baseline() 876 hist_entry__cmp_delta(struct perf_hpp_fmt *fmt, in hist_entry__cmp_delta() argument [all …]
|
/tools/testing/selftests/kvm/include/ |
D | test_util.h | 35 void print_skip(const char *fmt, ...) __attribute__((format(printf, 1, 2))); 42 const char *file, unsigned int line, const char *fmt, ...) 45 #define TEST_ASSERT(e, fmt, ...) \ argument 46 test_assert((e), #e, __FILE__, __LINE__, fmt, ##__VA_ARGS__) 58 #define TEST_FAIL(fmt, ...) \ argument 59 TEST_ASSERT(false, fmt, ##__VA_ARGS__)
|