]> git.baikalelectronics.ru Git - kernel.git/commit
perf record: Apply affinity masks when reading mmap buffers
authorAlexey Budankov <alexey.budankov@linux.intel.com>
Tue, 22 Jan 2019 17:50:57 +0000 (20:50 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 6 Feb 2019 13:00:39 +0000 (10:00 -0300)
commita1fc1fe8c3010c9d19acc0115fb407594f1d0480
treeee9ea1ac4234ad029adc23589715293d4656b89a
parentbe0d963996fbd80047dbad1f3c025d3d4a520483
perf record: Apply affinity masks when reading mmap buffers

Build node cpu masks for mmap data buffers. Apply node cpu masks to tool
thread every time it references data buffers cross node or cross cpu.

Signed-off-by: Alexey Budankov <alexey.budankov@linux.intel.com>
Reviewed-by: Jiri Olsa <jolsa@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/b25e4ebc-078d-2c7b-216c-f0bed108d073@linux.intel.com
[ Use cpu-set-sched.h to get the CPU_{EQUAL,OR}() fallbacks for older systems ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-record.c
tools/perf/util/cpumap.c
tools/perf/util/cpumap.h
tools/perf/util/mmap.c