All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V4 0/5] perf: Add PERF_RECORD_SWITCH to indicate context switches
@ 2015-07-21  9:44 Adrian Hunter
  2015-07-21  9:44 ` [PATCH V4 1/5] " Adrian Hunter
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Adrian Hunter @ 2015-07-21  9:44 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 V4 of PERF_RECORD_SWITCH.

Changes in V4:

    perf: Add PERF_RECORD_SWITCH to indicate context switches
        Use a separate record format PERF_RECORD_SWITCH_CPU_WIDE
        for the CPU-wide case that includes the next/previous pid/tid

    perf tools: Add new PERF_RECORD_SWITCH event
        Amended to handle PERF_RECORD_SWITCH_CPU_WIDE

    perf record: Add option --switch-events to select PERF_RECORD_SWITCH events
        Add PERF_RECORD_SWITCH_CPU_WIDE to documentation

    perf script: Don't assume evsel position of tracking events
        New patch

    perf script: Add option --show-switch-events
        Add PERF_RECORD_SWITCH_CPU_WIDE to documentation

Changes in V3:

Rename 'perf_event_switch()' parameter 'out' to be 'sched_in'
and invert meaning.

Changes in V2 (RFC):

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 (5):
      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: Don't assume evsel position of tracking events
      perf script: Add option --show-switch-events

 include/uapi/linux/perf_event.h          |  31 +++++++++-
 kernel/events/core.c                     | 103 +++++++++++++++++++++++++++++++
 tools/perf/Documentation/perf-record.txt |   4 ++
 tools/perf/Documentation/perf-script.txt |   4 ++
 tools/perf/builtin-inject.c              |   1 +
 tools/perf/builtin-record.c              |   7 +++
 tools/perf/builtin-script.c              |  41 ++++++++++--
 tools/perf/perf.h                        |   1 +
 tools/perf/util/event.c                  |  28 +++++++++
 tools/perf/util/event.h                  |  12 ++++
 tools/perf/util/evlist.h                 |   1 +
 tools/perf/util/evsel.c                  |   4 ++
 tools/perf/util/machine.c                |  11 ++++
 tools/perf/util/machine.h                |   2 +
 tools/perf/util/record.c                 |  10 +++
 tools/perf/util/session.c                |  20 ++++++
 tools/perf/util/tool.h                   |   1 +
 17 files changed, 275 insertions(+), 6 deletions(-)


Regards
Adrian

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

end of thread, other threads:[~2015-07-29  8:16 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-21  9:44 [PATCH V4 0/5] perf: Add PERF_RECORD_SWITCH to indicate context switches Adrian Hunter
2015-07-21  9:44 ` [PATCH V4 1/5] " Adrian Hunter
2015-07-21 10:29   ` Peter Zijlstra
2015-07-21 17:54     ` Arnaldo Carvalho de Melo
2015-07-21 18:15       ` Arnaldo Carvalho de Melo
2015-07-22  9:53         ` Jiri Olsa
2015-07-29  8:14   ` [tip:perf/core] " tip-bot for Adrian Hunter
2015-07-21  9:44 ` [PATCH V4 2/5] perf tools: Add new PERF_RECORD_SWITCH event Adrian Hunter
2015-07-29  8:14   ` [tip:perf/core] " tip-bot for Adrian Hunter
2015-07-21  9:44 ` [PATCH V4 3/5] perf record: Add option --switch-events to select PERF_RECORD_SWITCH events Adrian Hunter
2015-07-29  8:15   ` [tip:perf/core] " tip-bot for Adrian Hunter
2015-07-21  9:44 ` [PATCH V4 4/5] perf script: Don't assume evsel position of tracking events Adrian Hunter
2015-07-29  8:15   ` [tip:perf/core] perf script: Don' t " tip-bot for Adrian Hunter
2015-07-21  9:44 ` [PATCH V4 5/5] perf script: Add option --show-switch-events Adrian Hunter
2015-07-29  8:15   ` [tip:perf/core] " tip-bot for Adrian Hunter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.