Skip to content

RFC cputime: Generic virtual based cputime accounting v2

Frederic Weisbecker lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5code_domain: New code domain tracking susbsystemarch/Kconfig arch/x86/Kconfig arch/x86/include/asm/code_domain.h +12 more+121 -835 replies
2/5cputime: Don't allow virtual and irq finegrained cputime accounting simultaneouslyinit/Kconfig+1 -10 replies
3/5cputime: Allow dynamic switch between tick/virtual based cputime accountingarch/ia64/include/asm/cputime.h arch/ia64/kernel/time.c arch/powerpc/include/asm/cputime.h +9 more+58 -460 replies
4/5cputime: Rename account_system_vtime to account_vtimearch/ia64/kernel/time.c arch/powerpc/kernel/time.c arch/s390/kernel/vtime.c +4 more+21 -210 replies
5/5cputime: Generic on-demand virtual cputime accountinginclude/asm-generic/cputime.h include/linux/code_domain.h include/linux/kernel_stat.h +3 more+166 -170 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchPaul E. McKenney
1/5R-b
2/5
3/5
4/5
5/5

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

Read the v1 thread

Cover letter [RFC PATCH 0/5] cputime: Generic virtual based cputime accounting v2

Hi,

The changes since v1 (https://lkml.org/lkml/2012/7/27/286) are:

- change naming from "user hooks" to "code domain tracking".
- use of __this_cpu_* APIs instead of __get_cpu_*

There is still a dependency against Paul's rcu/idle branch and the vtime consolidation set: https://lkml.org/lkml/2012/6/19/216

Bold warriors can pull from:

git://github.com/fweisbec/linux-dynticks.git
vtime/generic-v2

Frederic Weisbecker (5):
code_domain: New code domain tracking susbsystem
cputime: Don't allow virtual and irq finegrained cputime accounting
simultaneously
cputime: Allow dynamic switch between tick/virtual based cputime
accounting
cputime: Rename account_system_vtime to account_vtime
cputime: Generic on-demand virtual cputime accounting

 arch/Kconfig                                  |   12 +-
 arch/ia64/include/asm/cputime.h               |    5 +
 arch/ia64/kernel/time.c                       |    6 +-
 arch/powerpc/include/asm/cputime.h            |    5 +
 arch/powerpc/kernel/time.c                    |   10 +-
 arch/s390/include/asm/cputime.h               |    5 +
 arch/s390/kernel/vtime.c                      |    6 +-
 arch/x86/Kconfig                              |    2 +-
 arch/x86/include/asm/{rcu.h => code_domain.h} |   12 +-
 arch/x86/kernel/ptrace.c                      |    6 +-
 arch/x86/kernel/signal.c                      |    5 +-
 arch/x86/kernel/traps.c                       |    2 +-
 arch/x86/mm/fault.c                           |    2 +-
 include/asm-generic/cputime.h                 |    7 +
 include/linux/code_domain.h                   |   44 +++++++
 include/linux/hardirq.h                       |    8 +-
 include/linux/kernel_stat.h                   |   13 ++
 include/linux/kvm_host.h                      |    4 +-
 include/linux/rcupdate.h                      |    2 -
 include/linux/sched.h                         |   13 +--
 init/Kconfig                                  |   35 ++++--
 kernel/Makefile                               |    1 +
 kernel/code_domain_tracking.c                 |   49 ++++++++
 kernel/fork.c                                 |    3 +-
 kernel/rcutree.c                              |   42 +------
 kernel/sched/core.c                           |    9 +-
 kernel/sched/cputime.c                        |  159 +++++++++++++++++++++----
 kernel/softirq.c                              |    6 +-
 kernel/time/tick-sched.c                      |   28 ++---
 29 files changed, 350 insertions(+), 151 deletions(-)
 rename arch/x86/include/asm/{rcu.h => code_domain.h} (53%)
 create mode 100644 include/linux/code_domain.h
 create mode 100644 kernel/code_domain_tracking.c
Signature · 1 line
1.7.5.4