convert perf to local64_t
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | arch: local64_tarch/ arch/ arch/ +20 more | +118 | 2 replies | |
| 2/4 | perf: Add perf_event_count()kernel/ | +11 | 0 replies | |
| 3/4 | perf: Add child_countinclude/ kernel/ | +3 | 0 replies | |
| 4/4 | perf: Convert perf_event to local_tarch/ arch/ arch/ +4 more | +72 | 0 replies |
Reviews trailers per patch
1 of 4 patches has a Reviewed-by or Acked-by.
| Patch | Kyle McMartin |
|---|---|
| 1/4 | A-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.
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.