aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ftrace.h
diff options
context:
space:
mode:
authorAbhishek Sagar <sagar.abhishek@gmail.com>2008-06-21 14:17:27 -0400
committerIngo Molnar <mingo@elte.hu>2008-06-23 16:10:56 -0400
commit395a59d0f8e86bb39cd700c3d185d30c670bb958 (patch)
tree1558e635efcede901c5dbe9acd625d475db5b369 /include/linux/ftrace.h
parentf34bfb1beef8a17ba3d46b60f8fa19ffedc1ed8d (diff)
ftrace: store mcount address in rec->ip
Record the address of the mcount call-site. Currently all archs except sparc64 record the address of the instruction following the mcount call-site. Some general cleanups are entailed. Storing mcount addresses in rec->ip enables looking them up in the kprobe hash table later on to check if they're kprobe'd. Signed-off-by: Abhishek Sagar <sagar.abhishek@gmail.com> Cc: davem@davemloft.net Cc: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r--include/linux/ftrace.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
index 20e14d0093c7..366098d591de 100644
--- a/include/linux/ftrace.h
+++ b/include/linux/ftrace.h
@@ -31,7 +31,6 @@ int unregister_ftrace_function(struct ftrace_ops *ops);
31void clear_ftrace_function(void); 31void clear_ftrace_function(void);
32 32
33extern void ftrace_stub(unsigned long a0, unsigned long a1); 33extern void ftrace_stub(unsigned long a0, unsigned long a1);
34extern void mcount(void);
35 34
36#else /* !CONFIG_FTRACE */ 35#else /* !CONFIG_FTRACE */
37# define register_ftrace_function(ops) do { } while (0) 36# define register_ftrace_function(ops) do { } while (0)
@@ -54,7 +53,7 @@ enum {
54 53
55struct dyn_ftrace { 54struct dyn_ftrace {
56 struct hlist_node node; 55 struct hlist_node node;
57 unsigned long ip; 56 unsigned long ip; /* address of mcount call-site */
58 unsigned long flags; 57 unsigned long flags;
59}; 58};
60 59