refperf: Dynamically allocate thread-summary output buffer
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 26 May 2020 00:45:03 +0000 (17:45 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 29 Jun 2020 19:00:44 +0000 (12:00 -0700)
commit2e90de76f226f11fe26c871aa321be28152f565a
treef6c28440faa82b028a41e31db9681c6c81219a2e
parentf518f154ecef347777db33b7c9b0581f245159f0
refperf: Dynamically allocate thread-summary output buffer

Currently, the buffer used to accumulate the thread-summary output is
fixed size, which will cause problems if someone decides to run on a large
number of PCUs.  This commit therefore dynamically allocates this buffer.

[ paulmck: Fix memory allocation as suggested by KASAN. ]
Cc: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/refperf.c