Re: [PATCH v2 1/3] perf: add cpu__max_present_cpu()

2017-02-14 Thread Jiri Olsa
On Mon, Feb 13, 2017 at 04:34:34PM +0100, Jan Stancek wrote: > Similar to cpu__max_cpu() (which returns max possible CPU), > returns max present CPU. > > Signed-off-by: Jan Stancek > --- > tools/perf/util/cpumap.c | 22 ++ > tools/perf/util/cpumap.h | 1 + > 2 files changed,

[PATCH v2 1/3] perf: add cpu__max_present_cpu()

2017-02-13 Thread Jan Stancek
Similar to cpu__max_cpu() (which returns max possible CPU), returns max present CPU. Signed-off-by: Jan Stancek --- tools/perf/util/cpumap.c | 22 ++ tools/perf/util/cpumap.h | 1 + 2 files changed, 23 insertions(+) diff --git a/tools/perf/util/cpumap.c b/tools/perf/util/cp