Home
last modified time | relevance | path

Searched refs:format (Results 1 – 25 of 67) sorted by relevance

123

/tools/perf/ui/
Dutil.c8 static int perf_stdio__error(const char *format, va_list args) in perf_stdio__error() argument
11 vfprintf(stderr, format, args); in perf_stdio__error()
15 static int perf_stdio__warning(const char *format, va_list args) in perf_stdio__warning() argument
18 vfprintf(stderr, format, args); in perf_stdio__warning()
31 int ui__error(const char *format, ...) in ui__error() argument
36 va_start(args, format); in ui__error()
37 ret = perf_eops->error(format, args); in ui__error()
43 int ui__warning(const char *format, ...) in ui__warning() argument
48 va_start(args, format); in ui__warning()
49 ret = perf_eops->warning(format, args); in ui__warning()
Dutil.h14 int (*error)(const char *format, va_list args);
15 int (*warning)(const char *format, va_list args);
/tools/virtio/virtio-trace/
Dtrace-agent.h67 #define pr_err(format, ...) fprintf(stderr, format, ## __VA_ARGS__) argument
68 #define pr_info(format, ...) fprintf(stdout, format, ## __VA_ARGS__) argument
70 #define pr_debug(format, ...) fprintf(stderr, format, ## __VA_ARGS__) argument
72 #define pr_debug(format, ...) do {} while (0) argument
/tools/power/cpupower/po/
Dde.po73 #, c-format
80 #, c-format
87 #, c-format
92 #, c-format
97 #, c-format
102 #, c-format
107 #, c-format
112 #, c-format
117 #, c-format
124 #, c-format
[all …]
Dfr.po73 #, c-format
80 #, c-format
87 #, c-format
92 #, c-format
97 #, c-format
102 #, c-format
107 #, c-format
112 #, c-format
117 #, c-format
124 #, c-format
[all …]
Dit.po73 #, c-format
80 #, c-format
87 #, c-format
92 #, c-format
97 #, c-format
102 #, c-format
107 #, c-format
112 #, c-format
117 #, c-format
124 #, c-format
[all …]
Dcs.po76 #, c-format
83 #, c-format
90 #, c-format
95 #, c-format
100 #, c-format
105 #, c-format
110 #, c-format
115 #, c-format
120 #, c-format
127 #, c-format
[all …]
Dpt.po71 #, c-format
78 #, c-format
85 #, c-format
90 #, c-format
95 #, c-format
100 #, c-format
105 #, c-format
110 #, c-format
115 #, c-format
122 #, c-format
[all …]
/tools/virtio/linux/
Dkernel.h40 #define __printf(a,b) __attribute__((format(printf,a,b)))
98 #define pr_err(format, ...) fprintf (stderr, format, ## __VA_ARGS__) argument
100 #define pr_debug(format, ...) fprintf (stderr, format, ## __VA_ARGS__) argument
102 #define pr_debug(format, ...) do {} while (0) argument
104 #define dev_err(dev, format, ...) fprintf (stderr, format, ## __VA_ARGS__) argument
105 #define dev_warn(dev, format, ...) fprintf (stderr, format, ## __VA_ARGS__) argument
/tools/perf/ui/gtk/
Dutil.c30 static int perf_gtk__error(const char *format, va_list args) in perf_gtk__error() argument
36 vasprintf(&msg, format, args) < 0) { in perf_gtk__error()
38 vfprintf(stderr, format, args); in perf_gtk__error()
56 static int perf_gtk__warning_info_bar(const char *format, va_list args) in perf_gtk__warning_info_bar() argument
61 vasprintf(&msg, format, args) < 0) { in perf_gtk__warning_info_bar()
63 vfprintf(stderr, format, args); in perf_gtk__warning_info_bar()
77 static int perf_gtk__warning_statusbar(const char *format, va_list args) in perf_gtk__warning_statusbar() argument
82 vasprintf(&msg, format, args) < 0) { in perf_gtk__warning_statusbar()
84 vfprintf(stderr, format, args); in perf_gtk__warning_statusbar()
/tools/perf/util/
Dpmu.y2 %parse-param {struct list_head *format}
37 format:
38 format format_term
45 ABORT_ON(perf_pmu__new_format(format, name,
52 ABORT_ON(perf_pmu__new_format(format, name,
59 ABORT_ON(perf_pmu__new_format(format, name,
Ddebug.h43 int dump_printf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
46 int ui__error(const char *format, ...) __attribute__((format(printf, 1, 2)));
47 int ui__warning(const char *format, ...) __attribute__((format(printf, 1, 2)));
51 int eprintf(int level, int var, const char *fmt, ...) __attribute__((format(printf, 3, 4)));
52 int eprintf_time(int level, int var, u64 t, const char *fmt, ...) __attribute__((format(printf, 4, …
Dpmu.c73 static int pmu_format(const char *name, struct list_head *format) in pmu_format() argument
88 if (perf_pmu__format_parse(path, format)) in pmu_format()
462 LIST_HEAD(format); in pmu_lookup()
471 if (pmu_format(name, &format)) in pmu_lookup()
486 INIT_LIST_HEAD(&pmu->format); in pmu_lookup()
488 list_splice(&format, &pmu->format); in pmu_lookup()
544 struct perf_pmu_format *format; in pmu_find_format() local
546 list_for_each_entry(format, formats, list) in pmu_find_format()
547 if (!strcmp(format->name, name)) in pmu_find_format()
548 return format; in pmu_find_format()
[all …]
Dhist.h221 #define perf_hpp__for_each_format(format) \ argument
222 list_for_each_entry(format, &perf_hpp__list, list)
224 #define perf_hpp__for_each_format_safe(format, tmp) \ argument
225 list_for_each_entry_safe(format, tmp, &perf_hpp__list, list)
227 #define perf_hpp__for_each_sort_list(format) \ argument
228 list_for_each_entry(format, &perf_hpp__sort_list, sort_list)
230 #define perf_hpp__for_each_sort_list_safe(format, tmp) \ argument
231 list_for_each_entry_safe(format, tmp, &perf_hpp__sort_list, sort_list)
250 void perf_hpp__column_register(struct perf_hpp_fmt *format);
251 void perf_hpp__column_unregister(struct perf_hpp_fmt *format);
[all …]
Dcache.h68 extern char *mkpath(const char *fmt, ...) __attribute__((format (printf, 1, 2)));
69 extern char *perf_path(const char *fmt, ...) __attribute__((format (printf, 1, 2)));
72 __attribute__((format (printf, 1, 2)));
Dtrace-event-info.c177 char *format; in copy_event_system() local
195 if (asprintf(&format, "%s/%s/format", sys, dent->d_name) < 0) { in copy_event_system()
199 ret = stat(format, &st); in copy_event_system()
200 free(format); in copy_event_system()
219 if (asprintf(&format, "%s/%s/format", sys, dent->d_name) < 0) { in copy_event_system()
223 ret = stat(format, &st); in copy_event_system()
226 err = record_file(format, 8); in copy_event_system()
228 free(format); in copy_event_system()
232 free(format); in copy_event_system()
Dpmu.h25 struct list_head format; /* HEAD struct perf_pmu_format -> list */ member
77 ...) __attribute__((format(scanf, 3, 4)));
/tools/include/asm/
Dbug.h8 #define WARN(condition, format...) ({ \ argument
11 __WARN_printf(format); \
15 #define WARN_ONCE(condition, format...) ({ \ argument
20 if (WARN(!__warned, format)) \
/tools/perf/tests/
Dpmu.c95 struct test_format *format = &test_formats[i]; in test_format_dir_get() local
98 scnprintf(name, PATH_MAX, "%s/%s", dir, format->name); in test_format_dir_get()
104 if (1 != fwrite(format->value, strlen(format->value), 1, file)) in test_format_dir_get()
138 char *format = test_format_dir_get(); in test__pmu() local
143 if (!format) in test__pmu()
151 ret = perf_pmu__format_parse(format, &formats); in test__pmu()
173 test_format_dir_put(format); in test__pmu()
/tools/perf/ui/tui/
Dutil.c226 static int __ui__warning(const char *title, const char *format, va_list args) in __ui__warning() argument
230 if (vasprintf(&s, format, args) > 0) { in __ui__warning()
239 vfprintf(stderr, format, args); in __ui__warning()
243 static int perf_tui__error(const char *format, va_list args) in perf_tui__error() argument
245 return __ui__warning("Error:", format, args); in perf_tui__error()
248 static int perf_tui__warning(const char *format, va_list args) in perf_tui__warning() argument
250 return __ui__warning("Warning:", format, args); in perf_tui__warning()
Dhelpline.c29 static int tui_helpline__show(const char *format, va_list ap) in tui_helpline__show() argument
36 sizeof(ui_helpline__last_msg) - backlog, format, ap); in tui_helpline__show()
/tools/lib/traceevent/
Devent-parse.c1667 ret = event_read_fields(event, &event->format.common_fields); in event_read_format()
1670 event->format.nr_common = ret; in event_read_format()
1672 ret = event_read_fields(event, &event->format.fields); in event_read_format()
1675 event->format.nr_fields = ret; in event_read_format()
3197 event->print_fmt.format = token; in event_read_print()
3210 if (asprintf(&cat, "%s%s", event->print_fmt.format, token) < 0) in event_read_print()
3213 free_token(event->print_fmt.format); in event_read_print()
3214 event->print_fmt.format = NULL; in event_read_print()
3246 struct format_field *format; in pevent_find_common_field() local
3248 for (format = event->format.common_fields; in pevent_find_common_field()
[all …]
/tools/perf/Documentation/
Dperf-data.txt20 Converts perf data file into another format (only CTF [1] format is support by now).
/tools/build/feature/
Dtest-libaudit.c3 extern int printf(const char *format, ...);
Dtest-libbfd.c3 extern int printf(const char *format, ...);

123