1 /* SPDX-License-Identifier: GPL-2.0 */
7 * The trace export - an export of Ftrace output. The trace_export
8 * can process traces and export them to a registered destination as
9 * an addition to the current only output of Ftrace - i.e. ring buffer.
11 * If you want traces to be sent to some other place rather than ring
12 * buffer only, just need to register a new trace_export and implement
13 * its own .write() function for writing traces to the storage.
15 * next - pointer to the next trace_export
16 * write - copy traces which have been delt with ->commit() to
20 struct trace_export __rcu *next;
21 void (*write)(struct trace_export *, const void *, unsigned int);
24 int register_ftrace_export(struct trace_export *export);
25 int unregister_ftrace_export(struct trace_export *export);
29 void trace_printk_init_buffers(void);
30 int trace_array_printk(struct trace_array *tr, unsigned long ip,
31 const char *fmt, ...);
32 void trace_array_put(struct trace_array *tr);
33 struct trace_array *trace_array_get_by_name(const char *name);
34 int trace_array_destroy(struct trace_array *tr);
35 #endif /* CONFIG_TRACING */
37 #endif /* _LINUX_TRACE_H */