Skip to content

xen: use tracing to replace ad-hoc debug/stats stuff

Jeremy Fitzhardinge lkml xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15trace/xen: add skeleton for Xen trace eventsinclude/trace/events/xen.h+13 -00 replies
2/15xen/multicalls: remove debugfs statsarch/x86/xen/multicalls.c arch/x86/xen/multicalls.h+4 -1080 replies
3/15xen/trace: set up tracepoint skeletonarch/x86/xen/Makefile arch/x86/xen/trace.c+5 -10 replies
4/15xen/trace: add multicall tracingarch/x86/include/asm/xen/hypercall.h arch/x86/include/asm/xen/trace_types.h arch/x86/xen/multicalls.c +3 more+241 -83 replies
5/15xen/trace: add mmu tracepointsarch/x86/xen/mmu.c include/trace/events/xen.h+247 -21 reply
6/15xen/trace: add ptpage alloc/release tracepointsarch/x86/xen/mmu.c include/trace/events/xen.h+41 -21 reply
7/15xen/trace: add xen_pgd_(un)pin tracepointsarch/x86/xen/mmu.c include/trace/events/xen.h+28 -02 replies
8/15xen/trace: add segment desc tracingarch/x86/xen/enlighten.c include/trace/events/xen.h+90 -12 replies
9/15xen/trace: add tlb flush tracepointsarch/x86/xen/mmu.c include/trace/events/xen.h+56 -05 replies
10/15xen/mmu: use extend_args for more mmuext updatesarch/x86/xen/mmu.c+27 -150 replies
11/15xen/mmu: tune pgtable alloc/releasearch/x86/xen/mmu.c+42 -70 replies
12/15xen/multicalls: disable MC_DEBUGarch/x86/xen/multicalls.c+2 -20 replies
13/15xen/multicalls: add unlikely around slowpath in __xen_mc_entry()arch/x86/xen/multicalls.c+2 -20 replies
14/15xen/multicall: special-case singleton hypercallsarch/x86/xen/multicalls.c+22 -50 replies
15/15xen/multicall: move *idx fields to start of mc_bufferarch/x86/xen/multicalls.c+1 -10 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/15] xen: use tracing to replace ad-hoc debug/stats stuff

From: Jeremy Fitzhardinge <[email protected]>

Hi all,

This series (RFC for 3.1) introduces a set of trace events to keep track of what's going on within the Xen code. This allows us to replace a pile of ad-hoc debug and stats code.

The latter part of the series implements some improvements the better tracing highlighted, specifically to reduce hypercall overhead by making multicalls cheaper and to increase the multicall batch size.

Also at git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git upstream/xen-tracing2

Thanks,
J

Jeremy Fitzhardinge (15):
trace/xen: add skeleton for Xen trace events xen/multicalls: remove debugfs stats
xen/trace: set up tracepoint skeleton
xen/trace: add multicall tracing
xen/trace: add mmu tracepoints
xen/trace: add ptpage alloc/release tracepoints xen/trace: add xen_pgd_(un)pin tracepoints
xen/trace: add segment desc tracing
xen/trace: add tlb flush tracepoints
xen/mmu: use extend_args for more mmuext updates xen/mmu: tune pgtable alloc/release
xen/multicalls: disable MC_DEBUG
xen/multicalls: add unlikely around slowpath in __xen_mc_entry() xen/multicall: special-case singleton hypercalls xen/multicall: move *idx fields to start of mc_buffer

 arch/x86/include/asm/xen/hypercall.h   |   22 ++
 arch/x86/include/asm/xen/trace_types.h |   18 +
 arch/x86/xen/Makefile                  |    2 +-
 arch/x86/xen/enlighten.c               |   16 +-
 arch/x86/xen/mmu.c                     |  139 +++++++--
 arch/x86/xen/multicalls.c              |  169 +++--------
 arch/x86/xen/multicalls.h              |    6 +
 arch/x86/xen/trace.c                   |   61 ++++
 include/trace/events/xen.h             |  534 ++++++++++++++++++++++++++++++++
 9 files changed, 817 insertions(+), 150 deletions(-)
 create mode 100644 arch/x86/include/asm/xen/trace_types.h
 create mode 100644 arch/x86/xen/trace.c
 create mode 100644 include/trace/events/xen.h
Signature · 1 line
1.7.5.4