mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC V2 PATCH 0/4] perf: Add PERF_RECORD_SWITCH to indicate context switches
@ 2015-07-03 12:52 Adrian Hunter
  2015-07-03 12:52 ` [RFC V2 PATCH 1/4] " Adrian Hunter
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Adrian Hunter @ 2015-07-03 12:52 UTC (permalink / raw)
  To: Peter Zijlstra
  Cc: Andi Kleen, Arnaldo Carvalho de Melo, Ingo Molnar, linux-kernel,
	Jiri Olsa, Stephane Eranian, mathieu.poirier, Pawel Moll

Hi

Here is another look at PERF_RECORD_SWITCH.
The event now shows scheduling in and out,
and I added next/prev pid/tid for cpu-wide
contexts, plus there are some tools patches
that apply to Arnaldo's perf/core branch.


Adrian Hunter (4):
      perf: Add PERF_RECORD_SWITCH to indicate context switches
      perf tools: Add new PERF_RECORD_SWITCH event
      perf record: Add option --switch-events to select PERF_RECORD_SWITCH events
      perf script: Add option --show-switch-events

 include/uapi/linux/perf_event.h          |  20 +++++-
 kernel/events/core.c                     | 102 +++++++++++++++++++++++++++++++
 tools/perf/Documentation/perf-record.txt |   3 +
 tools/perf/Documentation/perf-script.txt |   3 +
 tools/perf/builtin-inject.c              |   1 +
 tools/perf/builtin-record.c              |   7 +++
 tools/perf/builtin-script.c              |  31 ++++++++++
 tools/perf/perf.h                        |   1 +
 tools/perf/util/event.c                  |  26 ++++++++
 tools/perf/util/event.h                  |  12 ++++
 tools/perf/util/evlist.h                 |   1 +
 tools/perf/util/evsel.c                  |   4 ++
 tools/perf/util/machine.c                |  10 +++
 tools/perf/util/machine.h                |   2 +
 tools/perf/util/record.c                 |  10 +++
 tools/perf/util/session.c                |  16 +++++
 tools/perf/util/tool.h                   |   1 +
 17 files changed, 249 insertions(+), 1 deletion(-)


Regards
Adrian

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-07-06 11:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-03 12:52 [RFC V2 PATCH 0/4] perf: Add PERF_RECORD_SWITCH to indicate context switches Adrian Hunter
2015-07-03 12:52 ` [RFC V2 PATCH 1/4] " Adrian Hunter
2015-07-06 11:17   ` Peter Zijlstra
2015-07-03 12:52 ` [RFC V2 PATCH 2/4] perf tools: Add new PERF_RECORD_SWITCH event Adrian Hunter
2015-07-03 12:52 ` [RFC V2 PATCH 3/4] perf record: Add option --switch-events to select PERF_RECORD_SWITCH events Adrian Hunter
2015-07-03 12:52 ` [RFC V2 PATCH 4/4] perf script: Add option --show-switch-events Adrian Hunter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®