[tip: perf/core] perf timechart: Refactor svg_build_topology_map()

2019-09-02 Thread tip-bot2 for Kyle Meyer
The following commit has been merged into the perf/core branch of tip: Commit-ID: 0ac1dd5b4a70cfc8591dd9426f800b484765badb Gitweb: https://git.kernel.org/tip/0ac1dd5b4a70cfc8591dd9426f800b484765badb Author:Kyle Meyer AuthorDate:Tue, 27 Aug 2019 16:43:46 -05:00 Committer

[tip: perf/core] perf machine: Replace MAX_NR_CPUS with perf_env::nr_cpus_online

2019-09-02 Thread tip-bot2 for Kyle Meyer
The following commit has been merged into the perf/core branch of tip: Commit-ID: 8c7274691f0de5fb56f3b9fe9208ce7e515a2d2c Gitweb: https://git.kernel.org/tip/8c7274691f0de5fb56f3b9fe9208ce7e515a2d2c Author:Kyle Meyer AuthorDate:Tue, 27 Aug 2019 16:43:50 -05:00 Committer

[tip: perf/core] perf stat: Replace MAX_NR_CPUS with cpu__max_cpu()

2019-09-02 Thread tip-bot2 for Kyle Meyer
The following commit has been merged into the perf/core branch of tip: Commit-ID: 92b5a1545ad51e8225e691e9a29ba33cc9fe37bc Gitweb: https://git.kernel.org/tip/92b5a1545ad51e8225e691e9a29ba33cc9fe37bc Author:Kyle Meyer AuthorDate:Tue, 27 Aug 2019 16:43:48 -05:00 Committer

[tip: perf/core] perf header: Replace MAX_NR_CPUS with cpu__max_cpu()

2019-09-02 Thread tip-bot2 for Kyle Meyer
The following commit has been merged into the perf/core branch of tip: Commit-ID: dc84187f32a3e8eb86bd97f3b10494e1f1fe5e7f Gitweb: https://git.kernel.org/tip/dc84187f32a3e8eb86bd97f3b10494e1f1fe5e7f Author:Kyle Meyer AuthorDate:Tue, 27 Aug 2019 16:43:51 -05:00 Committer

[tip: perf/core] perf session: Replace MAX_NR_CPUS with perf_env::nr_cpus_online

2019-09-02 Thread tip-bot2 for Kyle Meyer
The following commit has been merged into the perf/core branch of tip: Commit-ID: 7df4e36a4785618f0c63f3dc2bacb164780ab0f6 Gitweb: https://git.kernel.org/tip/7df4e36a4785618f0c63f3dc2bacb164780ab0f6 Author:Kyle Meyer AuthorDate:Tue, 27 Aug 2019 16:43:49 -05:00 Committer

[tip: perf/core] libperf: Warn when exceeding MAX_NR_CPUS in cpumap

2019-09-02 Thread tip-bot2 for Kyle Meyer
The following commit has been merged into the perf/core branch of tip: Commit-ID: df552793493ff83b2b7289389d29d417b3ef6d6d Gitweb: https://git.kernel.org/tip/df552793493ff83b2b7289389d29d417b3ef6d6d Author:Kyle Meyer AuthorDate:Tue, 27 Aug 2019 16:43:52 -05:00 Committer

[tip: perf/core] perf svghelper: Replace MAX_NR_CPUS with perf_env::nr_cpus_online

2019-09-02 Thread tip-bot2 for Kyle Meyer
The following commit has been merged into the perf/core branch of tip: Commit-ID: f78f96676a256d7fa171a54b271a2ad2c6555c9c Gitweb: https://git.kernel.org/tip/f78f96676a256d7fa171a54b271a2ad2c6555c9c Author:Kyle Meyer AuthorDate:Tue, 27 Aug 2019 16:43:47 -05:00 Committer

[PATCH v4 5/7] perf/util/machine: Replace MAX_NR_CPUS with nr_cpus_online

2019-08-27 Thread Kyle Meyer
Olsa Cc: Namhyung Kim Cc: linux-kernel@vger.kernel.org Cc: Russ Anderson Signed-off-by: Kyle Meyer --- tools/perf/util/machine.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c index 5734460fc89e..194b9ec5f88b

[PATCH v4 1/7] perf: Refactor svg_build_topology_map

2019-08-27 Thread Kyle Meyer
Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-kernel@vger.kernel.org Cc: Russ Anderson Signed-off-by: Kyle Meyer --- tools/perf/builtin-timechart.c | 5 + tools/perf/util/svghelper.c| 19 +++ tools/perf/util/svghelper.h| 4 +++- 3 files changed, 15 insertions(+), 13

[PATCH v4 7/7] perf/lib/cpumap: Warn when exceeding MAX_NR_CPUS

2019-08-27 Thread Kyle Meyer
-off-by: Kyle Meyer --- tools/perf/lib/cpumap.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/tools/perf/lib/cpumap.c b/tools/perf/lib/cpumap.c index 2834753576b2..1f0e6f334237 100644 --- a/tools/perf/lib/cpumap.c +++ b/tools/perf/lib/cpumap.c @@ -100,6 +100,9 @@ struct perf_cpu_map

[PATCH v4 4/7] perf/util/session: Replace MAX_NR_CPUS with nr_cpus_online

2019-08-27 Thread Kyle Meyer
-kernel@vger.kernel.org Cc: Russ Anderson Signed-off-by: Kyle Meyer --- tools/perf/util/session.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index 82e0438a9160..2f0d84a71ded 100644 --- a/tools/perf/util/session.c

[PATCH v4 3/7] perf/util/stat: Replace MAX_NR_CPUS with cpu__max_cpu

2019-08-27 Thread Kyle Meyer
: linux-kernel@vger.kernel.org Cc: Russ Anderson Signed-off-by: Kyle Meyer --- tools/perf/util/stat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/perf/util/stat.c b/tools/perf/util/stat.c index 0cbfd1eca1dd..b754686b684d 100644 --- a/tools/perf/util/stat.c +++ b

[PATCH v4 2/7] perf/util/svghelper: Replace MAX_NR_CPUS with env->nr_cpus_online

2019-08-27 Thread Kyle Meyer
: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-kernel@vger.kernel.org Cc: Russ Anderson Signed-off-by: Kyle Meyer --- tools/perf/util/svghelper.c | 33 - 1 file changed, 16

[PATCH v4 6/7] perf/util/header: Replace MAX_NR_CPUS with cpu__max_cpu

2019-08-27 Thread Kyle Meyer
Shishkin Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-kernel@vger.kernel.org Cc: Russ Anderson Signed-off-by: Kyle Meyer --- tools/perf/util/header.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index 1f2965a07bef

[PATCH v3 2/6] perf/util/svghelper: Replace MAX_NR_CPUS with env->nr_cpus_online

2019-08-19 Thread Kyle Meyer
s well. Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-kernel@vger.kernel.org Cc: Russ Anderson Signed-off-by: Kyle Meyer --- tools/perf/util/svghelper.c | 29 + 1 file chang

[PATCH v3 6/6] perf/util/header: Replace MAX_NR_CPUS with cpu__max_cpu

2019-08-19 Thread Kyle Meyer
Shishkin Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-kernel@vger.kernel.org Cc: Russ Anderson Signed-off-by: Kyle Meyer --- tools/perf/util/header.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index b04c2b6b28b3

[PATCH v3 5/6] perf/util/machine: Replace MAX_NR_CPUS with nr_cpus_online

2019-08-19 Thread Kyle Meyer
: Namhyung Kim Cc: linux-kernel@vger.kernel.org Cc: Russ Anderson Signed-off-by: Kyle Meyer --- tools/perf/util/machine.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c index 5734460fc89e..d255634bac74 100644 --- a

[PATCH v3 4/6] perf/util/session: Replace MAX_NR_CPUS with nr_cpus_online

2019-08-19 Thread Kyle Meyer
@vger.kernel.org Cc: Russ Anderson Signed-off-by: Kyle Meyer --- tools/perf/util/session.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Index: tip/tools/perf/util/session.c === --- tip.orig/tools/perf/util/session.c +++ tip

[PATCH v3 3/6] perf/util/stat: Replace MAX_NR_CPUS with cpu__max_cpu

2019-08-19 Thread Kyle Meyer
: linux-kernel@vger.kernel.org Cc: Russ Anderson Signed-off-by: Kyle Meyer --- tools/perf/util/stat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/perf/util/stat.c b/tools/perf/util/stat.c index e4e4e3bf8b2b..199008ce936d 100644 --- a/tools/perf/util/stat.c +++ b

[PATCH v3 1/6] perf: Refactor svg_build_topology_map

2019-08-19 Thread Kyle Meyer
Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-kernel@vger.kernel.org Cc: Russ Anderson Signed-off-by: Kyle Meyer --- tools/perf/builtin-timechart.c | 5 + tools/perf/util/svghelper.c| 19 +++ tools/perf/util/svghelper.h| 4 +++- 3 files changed, 15 insertions(+), 13

[PATCH v3 0/6] perf: Replace MAX_NR_CPUS with dynamic alternatives

2019-08-19 Thread Kyle Meyer
eads with a local pointer and refreshed perf/util/svghelper. Kyle Meyer (6): perf: Refactor svg_build_topology_map perf/util/svghelper: Replace MAX_NR_CPUS with env->nr_cpus_online perf/util/stat: Replace MAX_NR_CPUS with cpu__max_cpu perf/util/session: Replace MAX_NR_CPUS with n

[PATCH v2 2/6] perf/util/svghelper: Replace MAX_NR_CPUS with env->nr_cpus_online

2019-08-14 Thread Kyle Meyer
s well. Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-kernel@vger.kernel.org Cc: Russ Anderson Signed-off-by: Kyle Meyer --- tools/perf/util/svghelper.c | 31 +++ 1 file chang

[PATCH v2 6/6] perf/util/header: Replace MAX_NR_CPUS with cpu__max_cpu

2019-08-14 Thread Kyle Meyer
Shishkin Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-kernel@vger.kernel.org Cc: Russ Anderson Signed-off-by: Kyle Meyer --- tools/perf/util/header.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index b04c2b6b28b3

[PATCH v2 0/6] perf: Replace MAX_NR_CPUS with dynamic alternatives

2019-08-14 Thread Kyle Meyer
uot; was used to read the perf.data out file. "perf report --header" was used to confirm that each perf.data file had information on the correct number of CPUs. Change since v1: Broke PATCH 2/2 into multiple patches. Kyle Meyer (6): perf: Refactor svg_build_topology_map perf/util/svgh

[PATCH v2 5/6] perf/util/machine: Replace MAX_NR_CPUS with nr_cpus_online

2019-08-14 Thread Kyle Meyer
: Namhyung Kim Cc: linux-kernel@vger.kernel.org Cc: Russ Anderson Signed-off-by: Kyle Meyer --- tools/perf/util/machine.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c index 5734460fc89e..d255634bac74 100644 --- a

[PATCH v2 3/6] perf/util/stat: Replace MAX_NR_CPUS with cpu__max_cpu

2019-08-14 Thread Kyle Meyer
: linux-kernel@vger.kernel.org Cc: Russ Anderson Signed-off-by: Kyle Meyer --- tools/perf/util/stat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/perf/util/stat.c b/tools/perf/util/stat.c index e4e4e3bf8b2b..199008ce936d 100644 --- a/tools/perf/util/stat.c +++ b

[PATCH v2 4/6] perf/util/session: Replace MAX_NR_CPUS with nr_cpus_online

2019-08-14 Thread Kyle Meyer
@vger.kernel.org Cc: Russ Anderson Signed-off-by: Kyle Meyer --- tools/perf/util/session.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index 11e6093c941b..a9d244a94e24 100644 --- a/tools/perf/util/session.c +++ b/tools

[PATCH v2 1/6] perf: Refactor svg_build_topology_map

2019-08-14 Thread Kyle Meyer
Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-kernel@vger.kernel.org Cc: Russ Anderson Signed-off-by: Kyle Meyer --- tools/perf/builtin-timechart.c | 5 + tools/perf/util/svghelper.c| 23 +++ tools/perf/util/svghelper.h| 4 +++- 3 files changed, 15 insertions(+), 17

[PATCH 2/2] perf: Replace MAX_NR_CPUS with dynamic alternatives

2019-08-13 Thread Kyle Meyer
i Olsa Cc: Namhyung Kim Cc: linux-kernel@vger.kernel.org Cc: Russ Anderson Signed-off-by: Kyle Meyer --- tools/perf/util/header.c| 6 +++--- tools/perf/util/machine.c | 11 ++- tools/perf/util/session.c | 6 +++--- tools/perf/util/stat.c | 4 ++-

[PATCH 1/2] perf: Refactor svg_build_topology_map

2019-08-13 Thread Kyle Meyer
Shishkin Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-kernel@vger.kernel.org Cc: Russ Anderson Signed-off-by: Kyle Meyer --- tools/perf/builtin-timechart.c | 5 + tools/perf/util/svghelper.c| 23 +++ tools/perf/util/svghelper.h| 4 +++- 3 files changed, 15 insertions

[PATCH 0/2] perf: Refactor perf and replace MAX_NR_CPUS

2019-08-13 Thread Kyle Meyer
Although the macro MAX_NR_CPUS has been increased to 2048 it would be nice to replace it with a dynamic value. The purpose of this patch series is to replace MAX_NR_CPUS throughout perf wherever possible. Kyle Meyer (2): Refactor svg_build_topology_map Replace MAX_NR_CPUS with dynamic

[PATCH] perf tools: Replace MAX_NR_CPUS with nr_cpus_onln

2019-08-02 Thread Kyle Meyer
each perf.data had information on 288 CPUs / 36 CPUs. Signed-off-by: Kyle Meyer Cc: Russ Anderson Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-kernel@vger.kernel.org --- tools/perf/perf.c | 10

[PATCH] perf tools: Replace MAX_NR_CPUS with nr_cpus_onln

2019-08-02 Thread Kyle Meyer
each perf.data had information on 288 CPUs / 36 CPUs. Signed-off-by: Kyle Meyer Cc: Russ Anderson Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-kernel@vger.kernel.org --- tools/perf/lib/cpumap.c

[PATCH] perf tools: Replace MAX_NR_CPUS with nr_cpus_onln

2019-07-26 Thread Kyle Meyer
each perf.data had information on 288 CPUs / 36 CPUs. This patch is meant to be built against perf tools: Increase MAX_NR_CPUS and MAX_CACHES (commit 9f94c7f947e919c343b30f080285af53d0fa9902). Signed-off-by: Kyle Meyer Cc: Russ Anderson Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho d

[tip:perf/core] perf tools: Increase MAX_NR_CPUS and MAX_CACHES

2019-07-03 Thread tip-bot for Kyle Meyer
Commit-ID: 9f94c7f947e919c343b30f080285af53d0fa9902 Gitweb: https://git.kernel.org/tip/9f94c7f947e919c343b30f080285af53d0fa9902 Author: Kyle Meyer AuthorDate: Thu, 20 Jun 2019 14:36:30 -0500 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 25 Jun 2019 08:47:10 -0300 perf tools

[PATCH] [PATCH v2] perf: Modify MAX_NR_CPUS and MAX_CACHES

2019-06-28 Thread Kyle Meyer
DECLARE_BITMAP() at compile time, nr_cpus_onln replaces it elsewhere throughout perf. Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-kernel@vger.kernel.org Cc: Russ Anderson Signed-off-by: Kyle Meyer --- tools

[PATCH v1] Increase MAX_NR_CPUS and MAX_CACHES

2019-06-20 Thread Kyle Meyer
From: Kyle Meyer Attempting to profile 1024 or more CPUs with perf causes two errors: perf record -a [ perf record: Woken up X times to write data ] way too many cpu caches.. [ perf record: Captured and wrote X MB perf.data (X samples) ] perf report -C 1024 Error: failed to set cpu bitmap

[PATCH] Increase MAX_NR_CPUS and MAX_CACHES

2019-06-20 Thread Kyle Meyer
From: Kyle Meyer Attempting to profile 1024 or more CPUs with perf causes two errors: perf record -a [ perf record: Woken up X times to write data ] way too many cpu caches.. [ perf record: Captured and wrote X MB perf.data (X samples) ] perf report -C 1024 Error: failed to set cpu bitmap