mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 05:29:04 -04:00
ftrace: add pretty print to selected fuction traces
This patch adds a call back for the tracers that have hooks to selected functions. This allows the tracer to show better output in the set_ftrace_filter file. Signed-off-by: Steven Rostedt <srostedt@redhat.com>
This commit is contained in:
parent
8fc0c701c5
commit
809dcf29ce
2 changed files with 9 additions and 0 deletions
|
|
@ -106,12 +106,18 @@ struct ftrace_func_command {
|
|||
/* asm/ftrace.h must be defined for archs supporting dynamic ftrace */
|
||||
#include <asm/ftrace.h>
|
||||
|
||||
struct seq_file;
|
||||
|
||||
struct ftrace_hook_ops {
|
||||
void (*func)(unsigned long ip,
|
||||
unsigned long parent_ip,
|
||||
void **data);
|
||||
int (*callback)(unsigned long ip, void **data);
|
||||
void (*free)(void **data);
|
||||
int (*print)(struct seq_file *m,
|
||||
unsigned long ip,
|
||||
struct ftrace_hook_ops *ops,
|
||||
void *data);
|
||||
};
|
||||
|
||||
extern int
|
||||
|
|
|
|||
Loading…
Reference in a new issue