diff options
author | Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | 2019-03-05 14:47:55 -0500 |
---|---|---|
committer | Shuah Khan <shuah@kernel.org> | 2019-04-08 16:44:21 -0600 |
commit | 0a7dc82ef2ed7f4c244fe55b59ea05909a408108 (patch) | |
tree | e22ca8c95601eb8355c99c9e05117bd54c8d9e02 /tools/perf/scripts/python/stackcollapse.py | |
parent | 0b0600c8c97abe070724140802f3b8c8aee93170 (diff) | |
download | linux-0a7dc82ef2ed7f4c244fe55b59ea05909a408108.tar.gz linux-0a7dc82ef2ed7f4c244fe55b59ea05909a408108.tar.bz2 linux-0a7dc82ef2ed7f4c244fe55b59ea05909a408108.zip |
rseq/selftests: Adapt number of threads to the number of detected cpus
On smaller systems, running a test with 200 threads can take a long
time on machines with smaller number of CPUs.
Detect the number of online cpus at test runtime, and multiply that
by 6 to have 6 rseq threads per cpu preempting each other.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Joel Fernandes <joelaf@google.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Dave Watson <davejwatson@fb.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: linux-kselftest@vger.kernel.org
Cc: "H . Peter Anvin" <hpa@zytor.com>
Cc: Chris Lameter <cl@linux.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Michael Kerrisk <mtk.manpages@gmail.com>
Cc: "Paul E . McKenney" <paulmck@linux.vnet.ibm.com>
Cc: Paul Turner <pjt@google.com>
Cc: Boqun Feng <boqun.feng@gmail.com>
Cc: Josh Triplett <josh@joshtriplett.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Ben Maurer <bmaurer@fb.com>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Shuah Khan <shuah@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions