diff options
author | Anton Blanchard <anton@samba.org> | 2009-10-26 19:50:29 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2009-10-28 06:13:04 +0100 |
commit | c8cd093a6e9f96ea6b871576fd4e46d7c818bb89 (patch) | |
tree | 2bad2c3a2cc68a35fb93d986a49bf543efcd0156 /virt/kvm | |
parent | powerpc: tracing: Add powerpc tracepoints for timer entry and exit (diff) | |
download | linux-c8cd093a6e9f96ea6b871576fd4e46d7c818bb89.tar.xz linux-c8cd093a6e9f96ea6b871576fd4e46d7c818bb89.zip |
powerpc: tracing: Add hypervisor call tracepoints
Add hcall_entry and hcall_exit tracepoints. This replaces the inline
assembly HCALL_STATS code and converts it to use the new tracepoints.
To keep the disabled case as quick as possible, we embed a status word
in the TOC so we can get at it with a single load. By doing so we
keep the overhead at a minimum. Time taken for a null hcall:
No tracepoint code: 135.79 cycles
Disabled tracepoints: 137.95 cycles
For reference, before this patch enabling HCALL_STATS resulted in a null
hcall of 201.44 cycles!
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'virt/kvm')
0 files changed, 0 insertions, 0 deletions