Skip to content

convert perf to local64_t

Peter Zijlstra linux-arch lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4arch: local64_tarch/alpha/include/asm/local64.h arch/arm/include/asm/local64.h arch/avr32/include/asm/local64.h +20 more+118 -02 replies
2/4perf: Add perf_event_count()kernel/perf_event.c+11 -60 replies
3/4perf: Add child_countinclude/linux/perf_event.h kernel/perf_event.c+3 -20 replies
4/4perf: Convert perf_event to local_tarch/arm/kernel/perf_event.c arch/powerpc/kernel/perf_event.c arch/sh/kernel/perf_event.c +4 more+72 -710 replies

Reviews trailers per patch

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

PatchKyle McMartin
1/4A-b
2/4
3/4
4/4

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 0/4] convert perf to local64_t

These patches introduce local64_t.

Since perf_event:count is only modified cross-cpu when child-counters feed back their changes on exit, and we can use a secondary variable for that, we can convert perf to use local64_t instead of atomic64_t and use instructions without buslock semantics.

The local64_t implementation uses local_t for 64 bits, since local_t is of type long, for 32 bit it falls back to atomic64_t. Architectures can provide their own implementation as usual.