From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753283AbcJUI46 (ORCPT ); Fri, 21 Oct 2016 04:56:58 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:36012 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753151AbcJUI44 (ORCPT ); Fri, 21 Oct 2016 04:56:56 -0400 Subject: Re: [PATCH][manpages 1/2] perf_event_open.2: Document PERF_EVENT_IOC_PAUSE_OUTPUT To: Wang Nan , peterz@infradead.org, vince@deater.net References: <1459147292-239310-2-git-send-email-wangnan0@huawei.com> <1459160147-240738-1-git-send-email-wangnan0@huawei.com> Cc: mtk.manpages@gmail.com, linux-kernel@vger.kernel.org, linux-man@vger.kernel.org, pi3orama@163.com, lizefan@huawei.com, Vince Weaver From: "Michael Kerrisk (man-pages)" Message-ID: Date: Fri, 21 Oct 2016 10:56:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <1459160147-240738-1-git-send-email-wangnan0@huawei.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for this patch, Wangnan. Vince, do you have any comments? Cheers, Michael On 03/28/2016 12:15 PM, Wang Nan wrote: > Signed-off-by: Wang Nan > --- > 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 > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/ From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael Kerrisk (man-pages)" Subject: Re: [PATCH][manpages 1/2] perf_event_open.2: Document PERF_EVENT_IOC_PAUSE_OUTPUT Date: Fri, 21 Oct 2016 10:56:52 +0200 Message-ID: References: <1459147292-239310-2-git-send-email-wangnan0@huawei.com> <1459160147-240738-1-git-send-email-wangnan0@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1459160147-240738-1-git-send-email-wangnan0-hv44wF8Li93QT0dZR+AlfA@public.gmane.org> Sender: linux-man-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Wang Nan , peterz-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org, vince-yfjdyHUqu3OsTnJN9+BGXg@public.gmane.org Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, pi3orama-9Onoh4P/yGk@public.gmane.org, lizefan-hv44wF8Li93QT0dZR+AlfA@public.gmane.org, Vince Weaver List-Id: linux-man@vger.kernel.org Thanks for this patch, Wangnan. Vince, do you have any comments? Cheers, Michael On 03/28/2016 12:15 PM, Wang Nan wrote: > Signed-off-by: Wang Nan > --- > 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-hv44wF8Li93QT0dZR+AlfA@public.gmane.org) > +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 > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html