Messages in this thread | | | Date | Sun, 13 Jul 2014 01:28:21 +0200 | From | Jiri Olsa <> | Subject | Re: [PATCHv6] perf tools: enable close-on-exec flag on perf file descriptor |
| |
On Mon, Jun 30, 2014 at 10:28:47PM +0200, Yann Droneaud wrote: > In commit a21b0b354d4a ('perf: Introduce a flag to enable > close-on-exec in perf_event_open()'), flag PERF_FLAG_FD_CLOEXEC > was added to perf_event_open(2) syscall to allows userspace > to atomically enable close-on-exec behavor when creating > the file descriptor. > > This patch makes perf tools use the new flag if supported > by the kernel, so that the event file descriptors got > automatically closed if perf tool exec a sub-command. > > Cc: Peter Zijlstra <peterz@infradead.org> > Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net> > Cc: Jiri Olsa <jolsa@redhat.com> > Cc: Andi Kleen <ak@linux.intel.com> > Cc: Ingo Molnar <mingo@kernel.org> > Signed-off-by: Yann Droneaud <ydroneaud@opteya.com> > --- > > Hi, > > I've addressed the issues reported by Jiri Olsa, > please have a look at the update patch.
hi, I'll queue this one
thanks, jirka
| |