diff options
| author | Dmitry Torokhov <[email protected]> | 2023-05-01 15:20:08 -0700 | 
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2023-05-01 15:20:08 -0700 | 
| commit | 9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e (patch) | |
| tree | d57f3a63479a07b4e0cece029886e76e04feb984 /include/linux/trace.h | |
| parent | 5dc63e56a9cf8df0b59c234a505a1653f1bdf885 (diff) | |
| parent | 53bea86b5712c7491bb3dae12e271666df0a308c (diff) | |
Merge branch 'next' into for-linus
Prepare input updates for 6.4 merge window.
Diffstat (limited to 'include/linux/trace.h')
| -rw-r--r-- | include/linux/trace.h | 12 | 
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/trace.h b/include/linux/trace.h index 80ffda871749..2a70a447184c 100644 --- a/include/linux/trace.h +++ b/include/linux/trace.h @@ -33,6 +33,18 @@ struct trace_array;  int register_ftrace_export(struct trace_export *export);  int unregister_ftrace_export(struct trace_export *export); +/** + * trace_array_puts - write a constant string into the trace buffer. + * @tr:    The trace array to write to + * @str:   The constant string to write + */ +#define trace_array_puts(tr, str)					\ +	({								\ +		str ? __trace_array_puts(tr, _THIS_IP_, str, strlen(str)) : -1;	\ +	}) +int __trace_array_puts(struct trace_array *tr, unsigned long ip, +		       const char *str, int size); +  void trace_printk_init_buffers(void);  __printf(3, 4)  int trace_array_printk(struct trace_array *tr, unsigned long ip,  |