Masami Hiramatsu
ba3dfff8ad
perf test: Use strerror_r instead of strerror
...
Use strerror_r instead of strerror in error messages for thread-safety.
Signed-off-by: Masami Hiramatsu <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: Namhyung Kim <[email protected] >
Cc: Naohiro Aota <[email protected] >
Cc: Paul Mackerras <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2014-08-15 13:07:28 -03:00
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 <[email protected] >
Cc: Andi Kleen <[email protected] >
Cc: Arnaldo Carvalho de Melo <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: Jiri Olsa <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Jiri Olsa <[email protected] >
2014-07-18 09:09:34 +02:00
Borislav Petkov
d944c4eebc
tools: Consolidate types.h
...
Combine all definitions into a common tools/include/linux/types.h and
kill the wild growth elsewhere. Move DECLARE_BITMAP to its proper
bitmap.h header.
Signed-off-by: Borislav Petkov <[email protected] >
Acked-by: Rusty Russell <[email protected] >
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Jiri Olsa <[email protected] >
2014-05-01 21:22:39 +02:00
Peter Zijlstra
a94d342b9c
tools/perf: Add required memory barriers
...
To match patch bf378d341e ("perf: Fix perf ring buffer memory
ordering") change userspace to also adhere to the ordering outlined.
Signed-off-by: Peter Zijlstra <[email protected] >
Cc: Michael Neuling <[email protected] >
Cc: "Paul E. McKenney" <[email protected] >
Cc: [email protected]
Cc: Vince Weaver <[email protected] >
Cc: Victor Kaplansky <[email protected] >
Cc: Oleg Nesterov <[email protected] >
Cc: Anton Blanchard <[email protected] >
Cc: Benjamin Herrenschmidt <[email protected] >
Cc: Frederic Weisbecker <[email protected] >
Cc: Mathieu Desnoyers <[email protected] >
Cc: Michael Ellerman <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2013-11-06 12:34:26 +01:00
Jiri Olsa
bacf7e5d40
perf tests: Move test__rdpmc into separate object
...
Separating test__rdpmc test from the builtin-test
into rdpmc object.
Signed-off-by: Jiri Olsa <[email protected] >
Cc: Corey Ashford <[email protected] >
Cc: Frederic Weisbecker <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: Paul Mackerras <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2012-11-14 16:49:50 -03:00