diff options
author | Pekka Paalanen <pq@iki.fi> | 2008-05-12 15:20:57 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-24 05:22:43 -0400 |
commit | f984b51e0779a6dd30feedc41404013ca54e5d05 (patch) | |
tree | ae7e80f53707e9069a9607072a554b51c660075b /include/linux/mmiotrace.h | |
parent | d61fc44853f46fb002228b18aa5f30db21fcd4ac (diff) |
ftrace: add mmiotrace plugin
On Sat, 22 Mar 2008 13:07:47 +0100
Ingo Molnar <mingo@elte.hu> wrote:
> > > i'd suggest the following: pull x86.git and sched-devel.git into a
> > > single tree [the two will combine without rejects]. Then try to add a
> > > kernel/tracing/trace_mmiotrace.c ftrace plugin. The trace_sysprof.c
> > > plugin might be a good example.
> >
> > I did this and now I have mmiotrace enabled/disabled via the tracing
> > framework (what do we call this, since ftrace is one of the tracers?).
>
> cool! could you send the patches for that? (even if they are not fully
> functional yet)
Patch attached in the end. Nice to see how much code disappeared. I tried
to mark all the features I had to break with XXX-comments.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/mmiotrace.h')
-rw-r--r-- | include/linux/mmiotrace.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mmiotrace.h b/include/linux/mmiotrace.h index cb5efd0c7f51..579b3b06c90e 100644 --- a/include/linux/mmiotrace.h +++ b/include/linux/mmiotrace.h | |||
@@ -54,6 +54,12 @@ static inline void mmiotrace_iounmap(volatile void __iomem *addr) | |||
54 | } | 54 | } |
55 | #endif /* CONFIG_MMIOTRACE_HOOKS */ | 55 | #endif /* CONFIG_MMIOTRACE_HOOKS */ |
56 | 56 | ||
57 | /* in kernel/trace/trace_mmiotrace.c */ | ||
58 | extern int __init init_mmiotrace(void); | ||
59 | extern void enable_mmiotrace(void); | ||
60 | extern void disable_mmiotrace(void); | ||
61 | extern void mmio_trace_record(u32 type, unsigned long addr, unsigned long arg); | ||
62 | |||
57 | #endif /* __KERNEL__ */ | 63 | #endif /* __KERNEL__ */ |
58 | 64 | ||
59 | 65 | ||