kernel_optimize_test/tools/perf
Yann Droneaud 57480d2cd9 perf tools: Enable close-on-exec flag on perf file descriptor
In commit a21b0b354d ('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.

Signed-off-by: Yann Droneaud <ydroneaud@opteya.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/n/1404160127-7475-1-git-send-email-ydroneaud@opteya.com
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
2014-07-18 09:09:34 +02:00
..
arch perf tools: Allow TSC conversion on any arch 2014-07-17 12:59:00 -03:00
bench perf tools: Enable close-on-exec flag on perf file descriptor 2014-07-18 09:09:34 +02:00
config perf tools: Add feature test for __sync_val_compare_and_swap 2014-07-16 17:57:36 -03:00
Documentation perf tools: Add --debug optionto set debug variable 2014-07-17 12:58:59 -03:00
python
scripts perf script: Add callchain to generic and tracepoint events 2014-07-16 17:57:33 -03:00
tests perf tools: Enable close-on-exec flag on perf file descriptor 2014-07-18 09:09:34 +02:00
ui perf tools: Remove verbose from functions prototypes 2014-07-17 11:04:42 -03:00
util perf tools: Enable close-on-exec flag on perf file descriptor 2014-07-18 09:09:34 +02:00
.gitignore
builtin-annotate.c
builtin-bench.c perf bench: Add --repeat option 2014-06-19 16:13:15 -03:00
builtin-buildid-cache.c perf buildid-cache: Apply force option to copying kcore 2014-07-16 17:57:35 -03:00
builtin-buildid-list.c
builtin-diff.c
builtin-evlist.c perf tools: Move pr_* debug macros into debug object 2014-07-17 12:58:39 -03:00
builtin-help.c perf tools: Move pr_* debug macros into debug object 2014-07-17 12:58:39 -03:00
builtin-inject.c perf inject: Fix build id injection 2014-07-16 17:57:34 -03:00
builtin-kmem.c
builtin-kvm.c perf kvm: Add stat support on s390 2014-07-16 17:57:33 -03:00
builtin-list.c
builtin-lock.c
builtin-mem.c
builtin-probe.c perf probe: Show error code and description in verbose mode 2014-06-09 14:34:09 -03:00
builtin-record.c
builtin-report.c
builtin-sched.c perf tools: Enable close-on-exec flag on perf file descriptor 2014-07-18 09:09:34 +02:00
builtin-script.c
builtin-stat.c perf tools: Fix wrong condition for allocation failure 2014-06-27 11:14:54 +02:00
builtin-timechart.c perf tools: Move pr_* debug macros into debug object 2014-07-17 12:58:39 -03:00
builtin-top.c
builtin-trace.c perf trace: Fix build on 32-bit systems 2014-07-08 15:39:21 -03:00
builtin.h
command-list.txt
CREDITS
design.txt
Makefile
Makefile.perf perf tools: Enable close-on-exec flag on perf file descriptor 2014-07-18 09:09:34 +02:00
MANIFEST perf kvm: Add stat support on s390 2014-07-16 17:57:33 -03:00
perf-archive.sh
perf-completion.sh
perf-sys.h perf tools: Allow to use cpuinfo on s390 2014-07-07 16:55:24 -03:00
perf.c perf tools: Add --debug optionto set debug variable 2014-07-17 12:58:59 -03:00
perf.h