diff options
author | Srikar Dronamraju <[email protected]> | 2015-06-24 16:40:04 +0530 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2015-06-25 12:28:35 -0300 |
commit | 2b42b09b88c831ba4da2d669581dde371c38c2af (patch) | |
tree | b08359e8f41722b226bd0fe7a681af30c30cf951 /lib/memory-notifier-error-inject.c | |
parent | 0f02adaa49af23ab9fa05375f4a237da6014401b (diff) |
perf bench numa: Fix to show proper convergence stats
With commit: e1e455f4f4d3 (perf tools: Work around lack of sched_getcpu
in glibc < 2.6), perf_bench numa mem with -c or -m option is not able to
correctly calculate convergence.
With the above commit, sched_getcpu always seems to return -1. The
intention of commit e1e455f was to add a sched_getcpu in glibc < 2.6.
Hence keep the sched_getcpu definition under an ifdef.
This regression happened occurred between v4.0 and v4.1
Signed-off-by: Srikar Dronamraju <[email protected]>
Acked-by: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Vinson Lee <[email protected]>
Fixes: e1e455f4f4d3 ("perf tools: Work around lack of sched_getcpu in glibc < 2.6")
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions