diff options
author | Paul Mundt <lethal@linux-sh.org> | 2008-09-21 00:56:39 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-09-21 00:56:39 -0400 |
commit | 3d58695edbfac785161bf282dc11fd42a483d6c9 (patch) | |
tree | 08b2fc39eda15082d1dba142d6d76a9a05de7efe /arch/sh/kernel/sys_sh.c | |
parent | 8f2baee28093ea77c7cc8da45049fd94cc76998e (diff) |
sh: Trivial trace_mark() instrumentation for core events.
This implements a few trace points across events that are deemed
interesting. This implements a number of trace points:
- The page fault handler / TLB miss
- IPC calls
- Kernel thread creation
The original LTTng patch had the slow-path instrumented, which
fails to account for the vast majority of events. In general
placing this in the fast-path is not a huge performance hit, as
we don't take page faults for kernel addresses.
The other bits of interest are some of the other trap handlers, as
well as the syscall entry/exit (which is better off being handled
through the tracehook API). Most of the other trap handlers are corner
cases where alternate means of notification exist, so there is little
value in placing extra trace points in these locations.
Based on top of the points provided both by the LTTng instrumentation
patch as well as the patch shipping in the ST-Linux tree, albeit in a
stripped down form.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/sys_sh.c')
-rw-r--r-- | arch/sh/kernel/sys_sh.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sh/kernel/sys_sh.c b/arch/sh/kernel/sys_sh.c index 0dfb88925add..38f098c9c72d 100644 --- a/arch/sh/kernel/sys_sh.c +++ b/arch/sh/kernel/sys_sh.c | |||
@@ -171,6 +171,8 @@ asmlinkage int sys_ipc(uint call, int first, int second, | |||
171 | version = call >> 16; /* hack for backward compatibility */ | 171 | version = call >> 16; /* hack for backward compatibility */ |
172 | call &= 0xffff; | 172 | call &= 0xffff; |
173 | 173 | ||
174 | trace_mark(kernel_arch_ipc_call, "call %u first %d", call, first); | ||
175 | |||
174 | if (call <= SEMTIMEDOP) | 176 | if (call <= SEMTIMEDOP) |
175 | switch (call) { | 177 | switch (call) { |
176 | case SEMOP: | 178 | case SEMOP: |