]> git.baikalelectronics.ru Git - kernel.git/commit
sh: Trivial trace_mark() instrumentation for core events.
authorPaul Mundt <lethal@linux-sh.org>
Sun, 21 Sep 2008 04:56:39 +0000 (13:56 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Sun, 21 Sep 2008 04:56:39 +0000 (13:56 +0900)
commit11ae29c6e020fb248876b562a1bab695165c7cc6
tree08b2fc39eda15082d1dba142d6d76a9a05de7efe
parent6bc9ece01f7fddf9ff535d0a43fc585fbb55ac01
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>
arch/sh/kernel/process_32.c
arch/sh/kernel/process_64.c
arch/sh/kernel/sys_sh.c
arch/sh/mm/fault_32.c