Skip to content

vtime: Delay cputime accounting to tick / context switch

Frederic Weisbecker lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10powerpc32: Fix stale scaled stime on context switcharch/powerpc/kernel/time.c+1 -00 replies
2/10ia64: Fix wrong start cputime assignment on task switcharch/ia64/kernel/time.c+1 -10 replies
3/10cputime: Allow accounting system time using cpustat indexinclude/linux/kernel_stat.h kernel/sched/cputime.c+7 -50 replies
4/10cputime: Export account_guest_timeinclude/linux/kernel_stat.h kernel/sched/cputime.c+2 -10 replies
5/10powerpc: Prepare accounting structure for cputime flush on tickarch/powerpc/include/asm/accounting.h arch/powerpc/kernel/asm-offsets.c arch/powerpc/kernel/time.c +1 more+34 -250 replies
6/10powerpc: Migrate stolen_time field to accounting structurearch/powerpc/include/asm/paca.h arch/powerpc/kernel/time.c arch/powerpc/xmon/xmon.c+4 -50 replies
7/10powerpc/vtime: Accumulate cputime and account only on tick/task switcharch/powerpc/kernel/time.c+77 -430 replies
8/10ia64: Accumulate cputime and account only on tick/task switcharch/ia64/include/asm/thread_info.h arch/ia64/kernel/time.c+52 -140 replies
9/10s390/cputime: delayed accounting of system timearch/s390/include/asm/lowcore.h arch/s390/include/asm/processor.h arch/s390/kernel/vtime.c+124 -780 replies
10/10vtime: Rename vtime_account_user() to vtime_flush()arch/ia64/kernel/time.c arch/powerpc/kernel/time.c arch/s390/kernel/vtime.c +3 more+11 -120 replies

Reviews trailers per patch

None of the 10 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMartin SchwidefskyThomas Gleixner
SeriesA-b A-b
1/10
2/10
3/10Inspired-by
4/10
5/10
6/10
7/10
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/10] vtime: Delay cputime accounting to tick / context switch

This version is a rebase on top of latest Linus tree which includes the fix 8f2b468aadc ("s390/vtime: correct system time accounting").

Also a small change: I have moved account_system_index_scaled() to s390 in patch "s390/cputime: delayed accounting of system time" because it is the only user of the function.

git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git
vtime/acc-v2

Thanks,
Frederic
---

Frederic Weisbecker (9):
powerpc32: Fix stale scaled stime on context switch
ia64: Fix wrong start cputime assignment on task switch
cputime: Allow accounting system time using cpustat index
cputime: Export account_guest_time
powerpc: Prepare accounting structure for cputime flush on tick
powerpc: Migrate stolen_time field to accounting structure powerpc/vtime: Accumulate cputime and account only on tick/task switch
ia64: Accumulate cputime and account only on tick/task switch
vtime: Rename vtime_account_user() to vtime_flush()

Martin Schwidefsky (1):
s390/cputime: delayed accounting of system time

 arch/ia64/include/asm/thread_info.h   |   6 ++
 arch/ia64/kernel/time.c               |  66 +++++++++++-----
 arch/powerpc/include/asm/accounting.h |  14 +++-
 arch/powerpc/include/asm/paca.h       |   1 -
 arch/powerpc/kernel/asm-offsets.c     |   8 +-
 arch/powerpc/kernel/time.c            | 138 +++++++++++++++++++++-------------
 arch/powerpc/xmon/xmon.c              |   8 +-
 arch/s390/include/asm/lowcore.h       |  65 ++++++++--------
 arch/s390/include/asm/processor.h     |   3 +
 arch/s390/kernel/vtime.c              | 138 ++++++++++++++++++++++------------
 include/linux/kernel_stat.h           |   5 +-
 include/linux/vtime.h                 |   7 +-
 kernel/sched/cputime.c                |  16 ++--
 13 files changed, 302 insertions(+), 173 deletions(-)