Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1365430

[PATCH][manpages 1/2] perf_event_open.2: Document PERF_EVENT_IOC_PAUSE_OUTPUT

From Wang Nan <wangnan0@huawei.com>
Newsgroups linux.kernel
Subject [PATCH][manpages 1/2] perf_event_open.2: Document PERF_EVENT_IOC_PAUSE_OUTPUT
Date 2016-03-28 12:20 +0200
Message-ID <rhCr7-5yX-1@gated-at.bofh.it> (permalink)
References <rhz9U-39T-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Signed-off-by: Wang Nan <wangnan0@huawei.com>
---
 man2/perf_event_open.2 | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/man2/perf_event_open.2 b/man2/perf_event_open.2
index c90fc51..b232cba 100644
--- a/man2/perf_event_open.2
+++ b/man2/perf_event_open.2
@@ -2719,6 +2719,17 @@ The argument is a BPF program file descriptor that was created by
 a previous
 .BR bpf (2)
 system call.
+.TP
+.BR PERF_EVENT_IOC_PAUSE_OUTPUT " (since Linux 4.6)"
+.\" commit ? (http://lkml.kernel.org/g/1459147292-239310-2-git-send-email-wangnan0@huawei.com)
+This allows pausing and resuming the event's ring-buffer. A
+paused ring-buffer does not prevent samples generation, but simply
+discards them. The discarded samples are considered lost, causes
+.BR PERF_RECORD_LOST
+to be generated when possible.
+
+The argument is an integer. Nonzero value pauses the ring-buffer,
+zero value resumes the ring-buffer.
 .SS Using prctl
 A process can enable or disable all the event groups that are
 attached to it using the
-- 
1.8.3.4

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/4] perf core: Support reading from overwritable ring buffer Wang Nan <wangnan0@huawei.com> - 2016-03-28 08:50 +0200
  [PATCH 1/4] perf core: Introduce new ioctl options to pause and resume ring buffer Wang Nan <wangnan0@huawei.com> - 2016-03-28 08:50 +0200
    [PATCH][manpages 1/2] perf_event_open.2: Document PERF_EVENT_IOC_PAUSE_OUTPUT Wang Nan <wangnan0@huawei.com> - 2016-03-28 12:20 +0200
    Re: [PATCH 1/4] perf core: Introduce new ioctl options to pause and  resume ring buffer Alexei Starovoitov <alexei.starovoitov@gmail.com> - 2016-03-29 02:30 +0200
      Re: [PATCH 1/4] perf core: Introduce new ioctl options to pause and  resume ring buffer "Wangnan (F)" <wangnan0@huawei.com> - 2016-03-29 03:20 +0200
      [PATCH 1/4 fix] perf core: Introduce new ioctl options to pause and resume ring buffer Wang Nan <wangnan0@huawei.com> - 2016-03-29 04:10 +0200
        Re: [PATCH 1/4 fix] perf core: Introduce new ioctl options to pause  and resume ring buffer Alexei Starovoitov <alexei.starovoitov@gmail.com> - 2016-03-29 06:50 +0200
    Re: [PATCH 1/4] perf core: Introduce new ioctl options to pause and  resume ring buffer Peter Zijlstra <peterz@infradead.org> - 2016-03-29 15:00 +0200
      Re: [PATCH 1/4] perf core: Introduce new ioctl options to pause and  resume ring buffer Peter Zijlstra <peterz@infradead.org> - 2016-03-29 15:00 +0200
      Re: [PATCH 1/4] perf core: Introduce new ioctl options to pause and  resume ring buffer "Wangnan (F)" <wangnan0@huawei.com> - 2016-03-30 04:00 +0200
        Re: [PATCH 1/4] perf core: Introduce new ioctl options to pause and  resume ring buffer Peter Zijlstra <peterz@infradead.org> - 2016-03-30 08:50 +0200
    [tip:perf/core] perf/ring_buffer: Introduce new ioctl options to  pause and resume the ring-buffer tip-bot for Wang Nan <tipbot@zytor.com> - 2016-03-31 11:30 +0200
  [PATCH 2/4] perf core: Set event's default overflow_handler Wang Nan <wangnan0@huawei.com> - 2016-03-28 08:50 +0200
    [tip:perf/core] perf/core: Set event's default ::overflow_handler() tip-bot for Wang Nan <tipbot@zytor.com> - 2016-03-31 11:30 +0200

csiph-web