Home
last modified time | relevance | path

Searched refs:fmt (Results 1 – 25 of 103) sorted by relevance

12345

/kernel/trace/
Dtrace_printk.c35 const char *fmt; member
38 static inline struct trace_bprintk_fmt *lookup_format(const char *fmt) in lookup_format() argument
42 if (!fmt) in lookup_format()
46 if (!strcmp(pos->fmt, fmt)) in lookup_format()
56 char *fmt; in hold_module_trace_bprintk_format() local
67 *iter = tb_fmt->fmt; in hold_module_trace_bprintk_format()
71 fmt = NULL; in hold_module_trace_bprintk_format()
74 fmt = kmalloc(strlen(*iter) + 1, GFP_KERNEL); in hold_module_trace_bprintk_format()
75 if (fmt) { in hold_module_trace_bprintk_format()
77 strcpy(fmt, *iter); in hold_module_trace_bprintk_format()
[all …]
Dtrace_seq.c78 void trace_seq_printf(struct trace_seq *s, const char *fmt, ...) in trace_seq_printf() argument
88 va_start(ap, fmt); in trace_seq_printf()
89 seq_buf_vprintf(&s->seq, fmt, ap); in trace_seq_printf()
139 void trace_seq_vprintf(struct trace_seq *s, const char *fmt, va_list args) in trace_seq_vprintf() argument
148 seq_buf_vprintf(&s->seq, fmt, args); in trace_seq_vprintf()
173 void trace_seq_bprintf(struct trace_seq *s, const char *fmt, const u32 *binary) in trace_seq_bprintf() argument
182 seq_buf_bprintf(&s->seq, fmt, binary); in trace_seq_bprintf()
Dtrace_events.c12 #define pr_fmt(fmt) fmt argument
251 static struct trace_event_fields *find_event_field(const char *fmt, in find_event_field() argument
255 const char *p = fmt; in find_event_field()
258 if (!(len = str_has_prefix(fmt, "REC->"))) in find_event_field()
260 fmt += len; in find_event_field()
261 for (p = fmt; *p; p++) { in find_event_field()
265 len = p - fmt; in find_event_field()
268 if (strncmp(field->name, fmt, len) || field->name[len]) in find_event_field()
280 static bool test_field(const char *fmt, struct trace_event_call *call) in test_field() argument
284 field = find_event_field(fmt, call); in test_field()
[all …]
Dtrace_events_synth.c278 const char *fmt = "%llu"; in synth_field_fmt() local
281 fmt = "%lld"; in synth_field_fmt()
283 fmt = "%llu"; in synth_field_fmt()
285 fmt = "%d"; in synth_field_fmt()
287 fmt = "%u"; in synth_field_fmt()
289 fmt = "%d"; in synth_field_fmt()
291 fmt = "%u"; in synth_field_fmt()
293 fmt = "%d"; in synth_field_fmt()
295 fmt = "%u"; in synth_field_fmt()
297 fmt = "%d"; in synth_field_fmt()
[all …]
Dtrace_probe.c12 #define pr_fmt(fmt) "trace_probe: " fmt argument
37 #define DEFINE_BASIC_PRINT_TYPE_FUNC(tname, type, fmt) \ argument
40 trace_seq_printf(s, fmt, *(type *)data); \
43 const char PRINT_TYPE_FMT_NAME(tname)[] = fmt;
1506 parg->fmt = kmalloc(len, GFP_KERNEL); in traceprobe_parse_probe_arg_body()
1507 if (!parg->fmt) { in traceprobe_parse_probe_arg_body()
1511 snprintf(parg->fmt, len, "%s[%d]", parg->type->fmttype, in traceprobe_parse_probe_arg_body()
1638 kfree(arg->fmt); in traceprobe_free_probe_arg()
1891 const char *fmt, *arg; in __set_print_fmt() local
1895 fmt = "(%lx)"; in __set_print_fmt()
[all …]
Dtrace_export.c67 #define F_printk(fmt, args...) fmt, args argument
168 #define F_printk(fmt, args...) __stringify(fmt) ", " __stringify(args) argument
Dtrace_output.c46 trace_seq_bprintf(s, field->fmt, field->buf); in trace_print_bprintk_msg_only()
222 const char *fmt = concatenate ? "%*phN" : "%*ph"; in trace_print_hex_seq() local
227 trace_seq_printf(p, fmt, min(buf_len - i, 16), &buf[i]); in trace_print_hex_seq()
318 void trace_event_printf(struct trace_iterator *iter, const char *fmt, ...) in trace_event_printf() argument
326 va_start(ap, fmt); in trace_event_printf()
327 trace_seq_vprintf(s, trace_event_format(iter, fmt), ap); in trace_event_printf()
334 char *fmt, va_list ap) in trace_output_raw() argument
339 trace_seq_vprintf(s, trace_event_format(iter, fmt), ap); in trace_output_raw()
344 int trace_output_call(struct trace_iterator *iter, char *name, char *fmt, ...) in trace_output_call() argument
349 va_start(ap, fmt); in trace_output_call()
[all …]
Dtrace_boot.c7 #define pr_fmt(fmt) "trace_boot: " fmt argument
176 append_printf(char **bufp, char *end, const char *fmt, ...) in append_printf() argument
184 va_start(args, fmt); in append_printf()
185 ret = vsnprintf(*bufp, end - *bufp, fmt, args); in append_printf()
/kernel/
Dpanic.c287 void panic(const char *fmt, ...) in panic() argument
341 va_start(args, fmt); in panic()
342 len = vscnprintf(buf, sizeof(buf), fmt, args); in panic()
716 const char *fmt; member
740 vprintk(args->fmt, args->args); in __warn()
767 const char *fmt, ...) in warn_slowpath_fmt() argument
774 if (!fmt) { in warn_slowpath_fmt()
781 args.fmt = fmt; in warn_slowpath_fmt()
782 va_start(args.args, fmt); in warn_slowpath_fmt()
789 void __warn_printk(const char *fmt, ...) in __warn_printk() argument
[all …]
Dvmcore_info.c88 void vmcoreinfo_append_str(const char *fmt, ...) in vmcoreinfo_append_str() argument
94 va_start(args, fmt); in vmcoreinfo_append_str()
95 r = vscnprintf(buf, sizeof(buf), fmt, args); in vmcoreinfo_append_str()
/kernel/bpf/
Dhelpers.c820 int bpf_bprintf_prepare(char *fmt, u32 fmt_size, const u64 *raw_args, in bpf_bprintf_prepare() argument
831 fmt_end = strnchr(fmt, fmt_size, 0); in bpf_bprintf_prepare()
834 fmt_size = fmt_end - fmt; in bpf_bprintf_prepare()
850 if ((!isprint(fmt[i]) && !isspace(fmt[i])) || !isascii(fmt[i])) { in bpf_bprintf_prepare()
855 if (fmt[i] != '%') in bpf_bprintf_prepare()
858 if (fmt[i + 1] == '%') { in bpf_bprintf_prepare()
874 while (fmt[i] == '0' || fmt[i] == '+' || fmt[i] == '-' || in bpf_bprintf_prepare()
875 fmt[i] == ' ') in bpf_bprintf_prepare()
877 if (fmt[i] >= '1' && fmt[i] <= '9') { in bpf_bprintf_prepare()
879 while (fmt[i] >= '0' && fmt[i] <= '9') in bpf_bprintf_prepare()
[all …]
Dlog.c14 #define verbose(env, fmt, args...) bpf_verifier_log_write(env, fmt, ##args) argument
60 void bpf_verifier_vlog(struct bpf_verifier_log *log, const char *fmt, in bpf_verifier_vlog() argument
66 n = vscnprintf(log->kbuf, BPF_VERIFIER_TMP_LOG_SIZE, fmt, args); in bpf_verifier_vlog()
305 const char *fmt, ...) in bpf_verifier_log_write() argument
312 va_start(args, fmt); in bpf_verifier_log_write()
313 bpf_verifier_vlog(&env->log, fmt, args); in bpf_verifier_log_write()
319 const char *fmt, ...) in bpf_log() argument
326 va_start(args, fmt); in bpf_log()
327 bpf_verifier_vlog(log, fmt, args); in bpf_log()
678 #define verbose_a(fmt, ...) ({ verbose(env, "%s" fmt, sep, ##__VA_ARGS__); sep = ","; }) argument
/kernel/printk/
Dprintk_safe.c57 asmlinkage int vprintk(const char *fmt, va_list args) in vprintk() argument
62 return vkdb_printf(KDB_MSGSRC_PRINTK, fmt, args); in vprintk()
70 return vprintk_deferred(fmt, args); in vprintk()
73 return vprintk_default(fmt, args); in vprintk()
Dinternal.h18 #define con_printk(lvl, con, fmt, ...) \ argument
19 printk(lvl pr_fmt("%s%sconsole [%s%d] " fmt), \
70 const char *fmt, va_list args);
72 __printf(1, 0) int vprintk_default(const char *fmt, va_list args);
73 __printf(1, 0) int vprintk_deferred(const char *fmt, va_list args);
Dprintk.c20 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
755 int devkmsg_emit(int facility, int level, const char *fmt, ...) in devkmsg_emit() argument
760 va_start(args, fmt); in devkmsg_emit()
761 r = vprintk_emit(facility, level, NULL, fmt, args); in devkmsg_emit()
2226 enum printk_info_flags *flags, const char *fmt, in printk_sprint() argument
2231 text_len = vscnprintf(text, size, fmt, args); in printk_sprint()
2258 const char *fmt, va_list args) in vprintk_store() argument
2295 reserve_size = vsnprintf(&prefix_buf[0], sizeof(prefix_buf), fmt, args2) + 1; in vprintk_store()
2315 facility, &flags, fmt, args); in vprintk_store()
2347 text_len = printk_sprint(&r.text_buf[0], reserve_size, facility, &flags, fmt, args); in vprintk_store()
[all …]
Dindex.c85 if (!entry->fmt) in pi_show()
91 prefix_len = printk_parse_prefix(entry->fmt, &level, &flags); in pi_show()
110 seq_escape_printf_format(s, entry->fmt + prefix_len); in pi_show()
Dbraille.c2 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
/kernel/power/
Dwakeup_reason.c216 static void __log_abort_or_abnormal_wake(bool abort, const char *fmt, in __log_abort_or_abnormal_wake() argument
234 vsnprintf(non_irq_wake_reason, MAX_SUSPEND_ABORT_LEN, fmt, args); in __log_abort_or_abnormal_wake()
239 void log_suspend_abort_reason(const char *fmt, ...) in log_suspend_abort_reason() argument
243 va_start(args, fmt); in log_suspend_abort_reason()
244 __log_abort_or_abnormal_wake(true, fmt, args); in log_suspend_abort_reason()
249 void log_abnormal_wakeup_reason(const char *fmt, ...) in log_abnormal_wakeup_reason() argument
253 va_start(args, fmt); in log_abnormal_wakeup_reason()
254 __log_abort_or_abnormal_wake(false, fmt, args); in log_abnormal_wakeup_reason()
/kernel/module/
Dkmod.c132 int __request_module(bool wait, const char *fmt, ...) in __request_module() argument
149 va_start(args, fmt); in __request_module()
150 ret = vsnprintf(module_name, MODULE_NAME_LEN, fmt, args); in __request_module()
/kernel/dma/
Dcontiguous.c38 #define pr_fmt(fmt) "cma: " fmt argument
443 #define pr_fmt(fmt) fmt argument
/kernel/debug/kdb/
Dkdb_io.c615 int vkdb_printf(enum kdb_msgsrc src, const char *fmt, va_list ap) in vkdb_printf() argument
659 vsnprintf(next_avail, size_avail, fmt, ap); in vkdb_printf()
891 int kdb_printf(const char *fmt, ...) in kdb_printf() argument
896 va_start(ap, fmt); in kdb_printf()
897 r = vkdb_printf(KDB_MSGSRC_INTERNAL, fmt, ap); in kdb_printf()
/kernel/time/
Dtimer_list.c31 static void SEQ_printf(struct seq_file *m, const char *fmt, ...) in SEQ_printf() argument
35 va_start(args, fmt); in SEQ_printf()
38 seq_vprintf(m, fmt, args); in SEQ_printf()
40 vprintk(fmt, args); in SEQ_printf()
/kernel/livepatch/
Dstate.c8 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
/kernel/gcov/
Dbase.c17 #define pr_fmt(fmt) "gcov: " fmt argument
/kernel/bpf/preload/
Dbpf_preload_kern.c2 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument

12345