Re: [patch] perf_event_open.2: PERF_RECORD_SWITCH support

2016-10-19 Thread Michael Kerrisk (man-pages)
On 10/19/2016 05:14 PM, Vince Weaver wrote: > On Wed, 19 Oct 2016, Michael Kerrisk (man-pages) wrote: > >>> diff --git a/man2/perf_event_open.2 b/man2/perf_event_open.2 >>> index 68b99bb..04a0cf5 100644 >>> +.B PERF_RECORD_SWITCH_CPU_WIDE >>> +records when sampling in cpu-wide mode. >>> +This

Re: [patch] perf_event_open.2: PERF_RECORD_SWITCH support

2016-10-19 Thread Michael Kerrisk (man-pages)
On 10/19/2016 05:14 PM, Vince Weaver wrote: > On Wed, 19 Oct 2016, Michael Kerrisk (man-pages) wrote: > >>> diff --git a/man2/perf_event_open.2 b/man2/perf_event_open.2 >>> index 68b99bb..04a0cf5 100644 >>> +.B PERF_RECORD_SWITCH_CPU_WIDE >>> +records when sampling in cpu-wide mode. >>> +This

Re: [patch] perf_event_open.2: PERF_RECORD_SWITCH support

2016-10-19 Thread Vince Weaver
On Wed, 19 Oct 2016, Michael Kerrisk (man-pages) wrote: > > diff --git a/man2/perf_event_open.2 b/man2/perf_event_open.2 > > index 68b99bb..04a0cf5 100644 > > +.B PERF_RECORD_SWITCH_CPU_WIDE > > +records when sampling in cpu-wide mode. > > +This functionality is in addition to existing tracepoint

Re: [patch] perf_event_open.2: PERF_RECORD_SWITCH support

2016-10-19 Thread Vince Weaver
On Wed, 19 Oct 2016, Michael Kerrisk (man-pages) wrote: > > diff --git a/man2/perf_event_open.2 b/man2/perf_event_open.2 > > index 68b99bb..04a0cf5 100644 > > +.B PERF_RECORD_SWITCH_CPU_WIDE > > +records when sampling in cpu-wide mode. > > +This functionality is in addition to existing tracepoint

Re: [patch] perf_event_open.2: PERF_RECORD_SWITCH support

2016-10-19 Thread Michael Kerrisk (man-pages)
Hi Vince, On 10/18/2016 07:22 PM, Vince Weaver wrote: > > Linux 4.3 introduced two new record types for recording context > switches: PERF_RECORD_SWITCH and PERF_RECORD_SWITCH_CPU_WIDE. > > The advantage over the existing tracepoint and software context > switch events is primarily that full

Re: [patch] perf_event_open.2: PERF_RECORD_SWITCH support

2016-10-19 Thread Michael Kerrisk (man-pages)
Hi Vince, On 10/18/2016 07:22 PM, Vince Weaver wrote: > > Linux 4.3 introduced two new record types for recording context > switches: PERF_RECORD_SWITCH and PERF_RECORD_SWITCH_CPU_WIDE. > > The advantage over the existing tracepoint and software context > switch events is primarily that full

[patch] perf_event_open.2: PERF_RECORD_SWITCH support

2016-10-18 Thread Vince Weaver
Linux 4.3 introduced two new record types for recording context switches: PERF_RECORD_SWITCH and PERF_RECORD_SWITCH_CPU_WIDE. The advantage over the existing tracepoint and software context switch events is primarily that full switch in/out data can be gathered even in the face of restrictive

[patch] perf_event_open.2: PERF_RECORD_SWITCH support

2016-10-18 Thread Vince Weaver
Linux 4.3 introduced two new record types for recording context switches: PERF_RECORD_SWITCH and PERF_RECORD_SWITCH_CPU_WIDE. The advantage over the existing tracepoint and software context switch events is primarily that full switch in/out data can be gathered even in the face of restrictive