You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Steven Rostedt
81d68a96a3
ftrace: trace irq disabled critical timings
This patch adds latency tracing for critical timings
(how long interrupts are disabled for).
"irqsoff" is added to /debugfs/tracing/available_tracers
Note:
tracing_max_latency
also holds the max latency for irqsoff (in usecs).
(default to large number so one must start latency tracing)
tracing_thresh
threshold (in usecs) to always print out if irqs off
is detected to be longer than stated here.
If irq_thresh is non-zero, then max_irq_latency
is ignored.
Here's an example of a trace with ftrace_enabled = 0
=======
preemption latency trace v1.1.5 on 2.6.24-rc7
Signed-off-by: Ingo Molnar <mingo@elte.hu>
--------------------------------------------------------------------
latency: 100 us, #3/3, CPU#1 | (M:rt VP:0, KP:0, SP:0 HP:0 #P:2)
-----------------
| task: swapper-0 (uid:0 nice:0 policy:0 rt_prio:0)
-----------------
=> started at: _spin_lock_irqsave+0x2a/0xb7
=> ended at: _spin_unlock_irqrestore+0x32/0x5f
_------=> CPU#
/ _-----=> irqs-off
| / _----=> need-resched
|| / _---=> hardirq/softirq
||| / _--=> preempt-depth
|||| /
||||| delay
cmd pid ||||| time | caller
\ / ||||| \ | /
swapper-0 1d.s3 0us+: _spin_lock_irqsave+0x2a/0xb7 (e1000_update_stats+0x47/0x64c [e1000])
swapper-0 1d.s3 100us : _spin_unlock_irqrestore+0x32/0x5f (e1000_update_stats+0x641/0x64c [e1000])
swapper-0 1d.s3 100us : trace_hardirqs_on_caller+0x75/0x89 (_spin_unlock_irqrestore+0x32/0x5f)
vim:ft=help
=======
And this is a trace with ftrace_enabled == 1
=======
preemption latency trace v1.1.5 on 2.6.24-rc7
--------------------------------------------------------------------
latency: 102 us, #12/12, CPU#1 | (M:rt VP:0, KP:0, SP:0 HP:0 #P:2)
-----------------
| task: swapper-0 (uid:0 nice:0 policy:0 rt_prio:0)
-----------------
=> started at: _spin_lock_irqsave+0x2a/0xb7
=> ended at: _spin_unlock_irqrestore+0x32/0x5f
_------=> CPU#
/ _-----=> irqs-off
| / _----=> need-resched
|| / _---=> hardirq/softirq
||| / _--=> preempt-depth
|||| /
||||| delay
cmd pid ||||| time | caller
\ / ||||| \ | /
swapper-0 1dNs3 0us+: _spin_lock_irqsave+0x2a/0xb7 (e1000_update_stats+0x47/0x64c [e1000])
swapper-0 1dNs3 46us : e1000_read_phy_reg+0x16/0x225 [e1000] (e1000_update_stats+0x5e2/0x64c [e1000])
swapper-0 1dNs3 46us : e1000_swfw_sync_acquire+0x10/0x99 [e1000] (e1000_read_phy_reg+0x49/0x225 [e1000])
swapper-0 1dNs3 46us : e1000_get_hw_eeprom_semaphore+0x12/0xa6 [e1000] (e1000_swfw_sync_acquire+0x36/0x99 [e1000])
swapper-0 1dNs3 47us : __const_udelay+0x9/0x47 (e1000_read_phy_reg+0x116/0x225 [e1000])
swapper-0 1dNs3 47us+: __delay+0x9/0x50 (__const_udelay+0x45/0x47)
swapper-0 1dNs3 97us : preempt_schedule+0xc/0x84 (__delay+0x4e/0x50)
swapper-0 1dNs3 98us : e1000_swfw_sync_release+0xc/0x55 [e1000] (e1000_read_phy_reg+0x211/0x225 [e1000])
swapper-0 1dNs3 99us+: e1000_put_hw_eeprom_semaphore+0x9/0x35 [e1000] (e1000_swfw_sync_release+0x50/0x55 [e1000])
swapper-0 1dNs3 101us : _spin_unlock_irqrestore+0xe/0x5f (e1000_update_stats+0x641/0x64c [e1000])
swapper-0 1dNs3 102us : _spin_unlock_irqrestore+0x32/0x5f (e1000_update_stats+0x641/0x64c [e1000])
swapper-0 1dNs3 102us : trace_hardirqs_on_caller+0x75/0x89 (_spin_unlock_irqrestore+0x32/0x5f)
vim:ft=help
=======
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
|
17 years ago |
.. |
boot
|
x86: relocs ELF handling - use SELFMAG instead of numeric constant
|
17 years ago |
configs
|
x86: add optimized inlining
|
17 years ago |
crypto
|
[CRYPTO] aes-x86-32: Remove unused return code
|
17 years ago |
ia32
|
signals: x86 TS_RESTORE_SIGMASK
|
17 years ago |
kernel
|
ftrace: trace irq disabled critical timings
|
17 years ago |
kvm
|
KVM: LAPIC: ignore pending timers if LVTT is disabled
|
17 years ago |
lguest
|
x86: replace remaining __FUNCTION__ occurances
|
17 years ago |
lib
|
ftrace: trace irq disabled critical timings
|
17 years ago |
mach-default
|
spelling fixes: arch/i386/
|
18 years ago |
mach-es7000
|
i386: es7000 minor cleanups
|
18 years ago |
mach-generic
|
x86: coding style fixes to arch/x86/mach-generic/bigsmp.c
|
17 years ago |
mach-rdc321x
|
x86, rdc321x: remove watchdog file
|
17 years ago |
mach-visws
|
x86: fix compilation error in VisWS
|
17 years ago |
mach-voyager
|
x86, voyager: fix ioremap_nocache()
|
17 years ago |
math-emu
|
x86, fpu: split FPU state from task struct - v5
|
17 years ago |
mm
|
x86: fix crash on cpu hotplug on pat-incapable machines
|
17 years ago |
oprofile
|
x86: oprofile: remove NR_CPUS arrays in arch/x86/oprofile/nmi_int.c
|
17 years ago |
pci
|
PCI: Correct last two HP entries in the bfsort whitelist
|
17 years ago |
power
|
x86: coding style fixes to arch/x86/power/cpu_32.c
|
17 years ago |
vdso
|
x86: add notrace annotations to vsyscall.
|
17 years ago |
video
|
x86: video/fbdev.c: add MODULE_LICENSE
|
17 years ago |
xen
|
pageflags: use proper page flag functions in Xen
|
17 years ago |
Kconfig
|
ftrace: add basic support for gcc profiler instrumentation
|
17 years ago |
Kconfig.cpu
|
x86: CONFIG_X86_ELAN fix
|
17 years ago |
Kconfig.debug
|
x86: Mark OPTIMIZE_INLINING broken
|
17 years ago |
Makefile
|
x86: add subarch support (for headers) to x86_64
|
17 years ago |
Makefile_32.cpu
|
x86: move i386 and x86_64 Makefiles to arch/x86
|
18 years ago |