Re: [PATCH 2/3] perf tools: Open perf.data with O_CLOEXEC flag

2017-09-08 Thread Arnaldo Carvalho de Melo
Em Fri, Sep 08, 2017 at 10:46:20AM +0200, Jiri Olsa escreveu: > Do not carry the perf.data file descriptor into > the workload process and close it when perf > executes the workload. Fails in some systems with: util/data.c: In function 'open_file_write': util/data.c:99: error: 'O_CLOEXEC'

Re: [PATCH 2/3] perf tools: Open perf.data with O_CLOEXEC flag

2017-09-08 Thread Arnaldo Carvalho de Melo
Em Fri, Sep 08, 2017 at 10:46:20AM +0200, Jiri Olsa escreveu: > Do not carry the perf.data file descriptor into > the workload process and close it when perf > executes the workload. Fails in some systems with: util/data.c: In function 'open_file_write': util/data.c:99: error: 'O_CLOEXEC'

[PATCH 2/3] perf tools: Open perf.data with O_CLOEXEC flag

2017-09-08 Thread Jiri Olsa
Do not carry the perf.data file descriptor into the workload process and close it when perf executes the workload. Link: http://lkml.kernel.org/n/tip-j7qdp4ucreain1cqvy485...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/data.c | 3 ++- 1 file changed, 2

[PATCH 2/3] perf tools: Open perf.data with O_CLOEXEC flag

2017-09-08 Thread Jiri Olsa
Do not carry the perf.data file descriptor into the workload process and close it when perf executes the workload. Link: http://lkml.kernel.org/n/tip-j7qdp4ucreain1cqvy485...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/data.c | 3 ++- 1 file changed, 2 insertions(+), 1