Skip to content

context_tracking: prerequisites for ARM support

Kevin Hilman linux-arm-kernel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5context tracking: conditionalize guest support based on CONFIG_KVMkernel/context_tracking.c+4 -05 replies
2/5kernel_cpustat: convert to atomic 64-bit accessorsfs/proc/stat.c fs/proc/uptime.c include/linux/kernel_stat.h +2 more+46 -466 replies
3/5virt CPU accounting: Kconfig: drop 64-bit requirmentinit/Kconfig+1 -10 replies
4/5cputime: use do_div() for nsec resolution conversion helpersinclude/asm-generic/cputime_nsecs.h+37 -144 replies
5/5ARM: Kconfig: allow virt CPU accountingarch/arm/Kconfig+1 -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/PATCH 0/5] context_tracking: prerequisites for ARM support

Frederic,

Here is a first pass at some changes needed in order to add ARM support.

I have another series coming that instruments the syscalls, exceptions etc. on ARM also, but this one is just to get some prerequisites out for broader discussion.

This series applies on top of your 3.8-rc6-nohz4 branch, and is also available here:

git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux.git wip/arm-nohz/prereq

I'm aware of the >80 column warnings from checkpatch on the atomic64 conversion patch, but wanted to get some feedback on this approach before fixing all those up. Maybe some simpler wrappers in kernel_stat.h would make this a bit cleaner?

Kevin

Kevin Hilman (5):
context tracking: conditionalize guest support based on CONFIG_KVM
kernel_cpustat: convert to atomic 64-bit accessors
virt CPU accounting: Kconfig: drop 64-bit requirment
cputime: use do_div() for nsec resolution conversion helpers
ARM: Kconfig: allow virt CPU accounting

 arch/arm/Kconfig                    |  1 +
 fs/proc/stat.c                      | 36 +++++++++++++-------------
 fs/proc/uptime.c                    |  2 +-
 include/asm-generic/cputime_nsecs.h | 51 +++++++++++++++++++++++++++----------
 include/linux/kernel_stat.h         |  2 +-
 init/Kconfig                        |  2 +-
 kernel/context_tracking.c           |  4 +++
 kernel/sched/core.c                 | 10 ++++----
 kernel/sched/cputime.c              | 24 ++++++++---------
 9 files changed, 80 insertions(+), 52 deletions(-)
Signature · 1 line
1.8.1.2