Skip to content

RFC perf: add logic to collect off-cpu samples

Ajay Kaher linux-perf-users lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3perf/core: add logic to collect off-cpu sampleinclude/linux/perf_event.h include/uapi/linux/perf_event.h kernel/events/core.c +1 more+42 -73 replies
2/3perf/record: add options --off-cpu-kerneltools/perf/builtin-record.c tools/perf/util/evsel.c tools/perf/util/record.h+5 -00 replies
3/3perf/report: add off-cpu samplestools/perf/util/events_stats.h tools/perf/util/evsel.c tools/perf/util/hist.c +2 more+34 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC 0/3] perf: add logic to collect off-cpu samples

Add --off-cpu-kernel option to capture off-cpu sample alongwith on-cpu samples.

off-cpu samples represent time spent by task when it was on wait queue (schedule out to waiting for events, blocked on I/O, locks, timers, paging/swapping, etc)

Refer following links for more details:
https://lpc.events/event/17/contributions/1556/
https://www.youtube.com/watch?v=sF2faKGRnjs

Ajay Kaher (3):
perf/core: add logic to collect off-cpu sample
perf/record: add options --off-cpu-kernel
perf/report: add off-cpu samples

 include/linux/perf_event.h            | 16 ++++++++++++++
 include/uapi/linux/perf_event.h       |  3 ++-
 kernel/events/core.c                  | 27 ++++++++++++++++++-----
 tools/include/uapi/linux/perf_event.h |  3 ++-
 tools/perf/builtin-record.c           |  2 ++
 tools/perf/util/events_stats.h        |  2 ++
 tools/perf/util/evsel.c               |  4 ++++
 tools/perf/util/hist.c                | 31 ++++++++++++++++++++++++---
 tools/perf/util/hist.h                |  1 +
 tools/perf/util/record.h              |  1 +
 tools/perf/util/sample.h              |  1 +
 11 files changed, 81 insertions(+), 10 deletions(-)
Signature · 1 line
2.39.0