mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
perf record: Allocate affinity masks
Allocate affinity option and masks for mmap data buffers and record thread as well as initialize allocated objects. 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/526fa2b0-07de-6dbd-a7e9-26ba875593c9@linux.intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
159b0da50a
commit
9d2ed64587
6 changed files with 28 additions and 6 deletions
|
@ -84,6 +84,14 @@ struct record_opts {
|
|||
clockid_t clockid;
|
||||
u64 clockid_res_ns;
|
||||
int nr_cblocks;
|
||||
int affinity;
|
||||
};
|
||||
|
||||
enum perf_affinity {
|
||||
PERF_AFFINITY_SYS = 0,
|
||||
PERF_AFFINITY_NODE,
|
||||
PERF_AFFINITY_CPU,
|
||||
PERF_AFFINITY_MAX
|
||||
};
|
||||
|
||||
struct option;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue