/* * 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 * flags - which ftrace to be exported
*/ struct trace_export { struct trace_export __rcu *next; void (*write)(struct trace_export *, constvoid *, unsignedint); int flags;
};
struct trace_array;
#ifdef CONFIG_TRACING
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, unsignedlong ip, constchar *str, int size);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.