[PATCH 14/18] perf: Add PERF_RECORD_SWITCH to indicate context switches

2015-07-23 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter There are already two events for context switches, namely the tracepoint sched:sched_switch and the software event context_switches. Unfortunately neither are suitable for use by non-privileged users for the purpose of synchronizing hardware trace data (e.g. Intel PT) to the

[PATCH 14/18] perf: Add PERF_RECORD_SWITCH to indicate context switches

2015-07-23 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter adrian.hun...@intel.com There are already two events for context switches, namely the tracepoint sched:sched_switch and the software event context_switches. Unfortunately neither are suitable for use by non-privileged users for the purpose of synchronizing hardware trace data