Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140755
b: refs/heads/master
c: 809dcf2
h: refs/heads/master
i:
  140753: 17e9c4c
  140751: 07d53ec
v: v3
  • Loading branch information
Steven Rostedt committed Feb 17, 2009
1 parent a09fbaf commit 7a1b85e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8fc0c701c5b6c0c3e242758c3acef6f9047940a9
refs/heads/master: 809dcf29ce4e1723709910878e050bd187617e0e
6 changes: 6 additions & 0 deletions trunk/include/linux/ftrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions trunk/kernel/trace/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -834,6 +834,9 @@ static int t_hash_show(struct seq_file *m, void *v)

rec = hlist_entry(hnd, struct ftrace_func_hook, node);

if (rec->ops->print)
return rec->ops->print(m, rec->ip, rec->ops, rec->data);

kallsyms_lookup(rec->ip, NULL, NULL, NULL, str);
seq_printf(m, "%s:", str);

Expand Down

0 comments on commit 7a1b85e

Please sign in to comment.