From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael Kerrisk (man-pages)" Subject: Re: [patch] perf_event_open.c : clarify issues with the disabled bit Date: Fri, 27 Dec 2013 07:36:58 +1300 Message-ID: <52BC774A.20203@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-man-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Vince Weaver , linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org List-Id: linux-man@vger.kernel.org On 12/20/13 11:04, Vince Weaver wrote: > > Clarify the perf_event_open behavior with respect to the disabled > bit and creating event groups. Thanks! Applied. (See comments to other patch.) Cheers, Michael > Reported-by: Sudhanshu Goswami > Signed-off-by: Vince Weaver > > diff --git a/man2/perf_event_open.2 b/man2/perf_event_open.2 > index 6d42c41..f5de495 100644 > --- a/man2/perf_event_open.2 > +++ b/man2/perf_event_open.2 > @@ -739,6 +739,17 @@ If disabled, the event can later be enabled by > .BR prctl (2), > or > .IR enable_on_exec . > + > +When creating an event group, typically the group leader is initialized > +with > +.I disabled > +set to 1 and any child events are initialized with > +.I disabled > +set to 0. > +Despite > +.I disabled > +being 0, the child events will not start until the group leader > +is enabled. > .TP > .IR "inherit" > The > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ -- 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