Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
30 lines
941 B
C
30 lines
941 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _LINUX_TRACE_H
|
|
#define _LINUX_TRACE_H
|
|
|
|
#ifdef CONFIG_TRACING
|
|
/*
|
|
* The trace export - an export of Ftrace output. The trace_export
|
|
* can process traces and export them to a registered destination as
|
|
* an addition to the current only output of Ftrace - i.e. ring buffer.
|
|
*
|
|
* If you want traces to be sent to some other place rather than ring
|
|
* buffer only, just need to register a new trace_export and implement
|
|
* its own .write() function for writing traces to the storage.
|
|
*
|
|
* next - pointer to the next trace_export
|
|
* write - copy traces which have been delt with ->commit() to
|
|
* the destination
|
|
*/
|
|
struct trace_export {
|
|
struct trace_export __rcu *next;
|
|
void (*write)(const void *, unsigned int);
|
|
};
|
|
|
|
int register_ftrace_export(struct trace_export *export);
|
|
int unregister_ftrace_export(struct trace_export *export);
|
|
|
|
#endif /* CONFIG_TRACING */
|
|
|
|
#endif /* _LINUX_TRACE_H */
|