Daniel Bristot de Oliveira
d9b035e704
x86/irq, trace: Add __irq_entry annotation to x86's platform IRQ handlers
[ Upstream commit c4158ff536439619fa342810cc575ae2c809f03f ]
This patch adds the __irq_entry annotation to the default x86
platform IRQ handlers. ftrace's function_graph tracer uses the
__irq_entry annotation to notify the entry and return of IRQ
handlers.
For example, before the patch:
354549.667252 | 3) d..1 | default_idle_call() {
354549.667252 | 3) d..1 | arch_cpu_idle() {
354549.667253 | 3) d..1 | default_idle() {
354549.696886 | 3) d..1 | smp_trace_reschedule_interrupt() {
354549.696886 | 3) d..1 | irq_enter() {
354549.696886 | 3) d..1 | rcu_irq_enter() {
After the patch:
366416.254476 | 3) d..1 | arch_cpu_idle() {
366416.254476 | 3) d..1 | default_idle() {
366416.261566 | 3) d..1 ==========> |
366416.261566 | 3) d..1 | smp_trace_reschedule_interrupt() {
366416.261566 | 3) d..1 | irq_enter() {
366416.261566 | 3) d..1 | rcu_irq_enter() {
KASAN also uses this annotation. The smp_apic_timer_interrupt()
was already annotated.
Signed-off-by: Daniel Bristot de Oliveira <bristot@redhat.com>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Cc: Aaron Lu <aaron.lu@intel.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Baoquan He <bhe@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Claudio Fontana <claudio.fontana@huawei.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: Dou Liyang <douly.fnst@cn.fujitsu.com>
Cc: Gu Zheng <guz.fnst@cn.fujitsu.com>
Cc: Hidehiro Kawai <hidehiro.kawai.ez@hitachi.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Nicolai Stange <nicstange@gmail.com>
Cc: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Wanpeng Li <wanpeng.li@hotmail.com>
Cc: linux-edac@vger.kernel.org
Link: http://lkml.kernel.org/r/059fdf437c2f0c09b13c18c8fe4e69999d3ffe69.1483528431.git.bristot@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
2017-11-21 09:23:24 +01:00 |
| .. |
|
apic.c
|
x86/irq, trace: Add __irq_entry annotation to x86's platform IRQ handlers
|
2017-11-21 09:23:24 +01:00 |
|
apic_flat_64.c
|
Merge branch 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
|
2016-10-03 17:18:52 -07:00 |
|
apic_noop.c
|
x86: Apply more __ro_after_init and const
|
2016-08-10 14:55:05 +02:00 |
|
apic_numachip.c
|
x86: Clean up various simple wrapper functions
|
2016-09-13 20:42:58 +02:00 |
|
bigsmp_32.c
|
x86: Apply more __ro_after_init and const
|
2016-08-10 14:55:05 +02:00 |
|
htirq.c
|
x86: Constify irqdomain ops
|
2015-05-05 11:14:48 +02:00 |
|
hw_nmi.c
|
nmi_backtrace: add more trigger_*_cpu_backtrace() methods
|
2016-10-07 18:46:30 -07:00 |
|
io_apic.c
|
x86/ioapic: Pass the correct data to unmask_ioapic_irq()
|
2017-07-27 15:08:04 -07:00 |
|
ipi.c
|
x86/kernel: Audit and remove any unnecessary uses of module.h
|
2016-07-14 15:06:41 +02:00 |
|
Makefile
|
kernel: add kcov code coverage
|
2016-03-22 15:36:02 -07:00 |
|
msi.c
|
x86: Apply more __ro_after_init and const
|
2016-08-10 14:55:05 +02:00 |
|
probe_32.c
|
Merge branch 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
|
2016-10-03 16:13:28 -07:00 |
|
probe_64.c
|
x86/apic: Remove duplicated include from probe_64.c
|
2016-07-19 16:02:31 +02:00 |
|
vector.c
|
x86/irq, trace: Add __irq_entry annotation to x86's platform IRQ handlers
|
2017-11-21 09:23:24 +01:00 |
|
x2apic_cluster.c
|
Merge branch 'x86/mm' into x86/asm, to unify the two branches for simplicity
|
2016-09-08 08:41:52 +02:00 |
|
x2apic_phys.c
|
x86: Apply more __ro_after_init and const
|
2016-08-10 14:55:05 +02:00 |
|
x2apic_uv_x.c
|
x86/apic/uv: Silence a shift wrapping warning
|
2016-11-24 06:01:05 +01:00 |