Skip to content

RFC apic: tracing IPI events

Jiri Olsa lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2apic: adding apic_send_IPI_* methods for apic's IPI callbacksarch/x86/include/asm/apic.h arch/x86/include/asm/ipi.h arch/x86/kernel/apic/apic.c +12 more+65 -250 replies
2/2apic,trace: IPI sent trace event.arch/x86/include/asm/apic_trace.h arch/x86/kernel/apic/apic.c+74 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/2] apic: tracing IPI events

hi,

I'm adding tracing of IPIs to the APIC code by hooking following apic callbacks:

        void (*send_IPI_mask)(const struct cpumask *mask, int vector);
        void (*send_IPI_mask_allbutself)(const struct cpumask *mask,
                                         int vector);
        void (*send_IPI_allbutself)(int vector);
        void (*send_IPI_all)(int vector);
        void (*send_IPI_self)(int vector);

attached patches:
- 1/2 apic: adding apic_send_IPI_* methods for apic's IPI callbacks
- 2/2 apic,trace: IPI sent trace event.

I'm not sure this is the best way, maybe some more general approach might be better.

please let me know what you think

wbr,
jirka

---
 arch/x86/include/asm/apic.h             |   16 +++++++++-
 arch/x86/include/asm/apic_trace.h       |   53 +++++++++++++++++++++++++++++++
 arch/x86/include/asm/ipi.h              |    4 +-
 arch/x86/kernel/apic/apic.c             |   48 +++++++++++++++++++++++++++-
 arch/x86/kernel/apic/apic_flat_64.c     |    4 +-
 arch/x86/kernel/apic/hw_nmi.c           |    2 +-
 arch/x86/kernel/apic/io_apic.c          |    9 +++--
 arch/x86/kernel/apic/nmi.c              |    2 +-
 arch/x86/kernel/apic/probe_64.c         |    2 +-
 arch/x86/kernel/cpu/mcheck/mce-inject.c |    2 +-
 arch/x86/kernel/cpu/mcheck/mce.c        |    2 +-
 arch/x86/kernel/cpu/perf_event.c        |    2 +-
 arch/x86/kernel/kgdb.c                  |    2 +-
 arch/x86/kernel/reboot.c                |    2 +-
 arch/x86/kernel/smp.c                   |   12 +++---
 arch/x86/mm/tlb.c                       |    2 +-
 16 files changed, 139 insertions(+), 25 deletions(-)