diff options
author | Ingo Molnar <mingo@kernel.org> | 2015-06-26 04:37:15 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-06-26 04:37:15 -0400 |
commit | df0d0da426d03fb7e6567feb38a48b1e0dd1891e (patch) | |
tree | c50f1338c57a828204e8468242121cc503c95268 | |
parent | 27451700dfa01a05cdb4d9d74501536165158034 (diff) | |
parent | 2b42b09b88c831ba4da2d669581dde371c38c2af (diff) |
Merge tag 'perf-urgent-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent
Pull perf/urgent fix from Arnaldo Carvalho de Melo:
- Fix to show proper convergence stats in 'perf bench numa' (Srikar Dronamraju)
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | tools/perf/util/cloexec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/util/cloexec.c b/tools/perf/util/cloexec.c index 85b523885f9d..2babddaa2481 100644 --- a/tools/perf/util/cloexec.c +++ b/tools/perf/util/cloexec.c | |||
@@ -7,11 +7,15 @@ | |||
7 | 7 | ||
8 | static unsigned long flag = PERF_FLAG_FD_CLOEXEC; | 8 | static unsigned long flag = PERF_FLAG_FD_CLOEXEC; |
9 | 9 | ||
10 | #ifdef __GLIBC_PREREQ | ||
11 | #if !__GLIBC_PREREQ(2, 6) | ||
10 | int __weak sched_getcpu(void) | 12 | int __weak sched_getcpu(void) |
11 | { | 13 | { |
12 | errno = ENOSYS; | 14 | errno = ENOSYS; |
13 | return -1; | 15 | return -1; |
14 | } | 16 | } |
17 | #endif | ||
18 | #endif | ||
15 | 19 | ||
16 | static int perf_flag_probe(void) | 20 | static int perf_flag_probe(void) |
17 | { | 21 | { |