Skip to content

generic software counters -v2

Peter Zijlstra lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 26 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11sched: remove extra call overhead for schedule()kernel/mutex.c kernel/sched.c+7 -92 replies
2/11hrtimer: fix rq->lock inversion (again)include/linux/interrupt.h kernel/hrtimer.c kernel/sched.c +1 more+50 -255 replies
3/11perf_counter: x86: fix 32bit irq_period assumption.arch/x86/kernel/cpu/perf_counter.c+1 -12 replies
4/11perf_counter: use list_move_tailkernel/perf_counter.c+2 -42 replies
5/11perf_counter: add comment to barrierarch/x86/kernel/cpu/perf_counter.c+4 -02 replies
6/11perf_counter: x86: use ULL postfix for 64bit constantsarch/x86/kernel/cpu/perf_counter.c+6 -62 replies
7/11perf_counter: software counter event infrastructureinclude/linux/perf_counter.h kernel/perf_counter.c+207 -02 replies
8/11perf_counter: provide pagefault software eventsarch/powerpc/mm/fault.c arch/x86/mm/fault.c kernel/perf_counter.c+9 -502 replies
9/11perf_counter: provide major/minor page fault software eventsarch/powerpc/mm/fault.c arch/x86/mm/fault.c include/linux/perf_counter.h +1 more+21 -172 replies
10/11perf_counter: hrtimer based sampling for software time eventsinclude/linux/perf_counter.h kernel/perf_counter.c+100 -434 replies
11/11perf_counter: add an event_listinclude/linux/perf_counter.h kernel/perf_counter.c+23 -112 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/11] generic software counters -v2

This patch set improves the current software counters by providing sampling events for most of them.

The clock based software counters use hrtimers to generate events, allowing sample based profiling without hardware support -- obviously this has limited functionality for kernal based profiling since we disable interrupts quite frequently, but should be good for userspace.

Other events like pagefaults insert simple hooks into the actual pagefault code to generate these events.

Future work (in-progress) will hook into the tracepoint infrastructure to to provide profiling events.