diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2016-01-29 17:58:17 -0500 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2016-03-31 16:38:53 -0400 |
commit | ac2bb275e8e5abddb0815ff2b7aa383ed6d007a4 (patch) | |
tree | c9f879e07657c12b69995baf2850574872567326 | |
parent | e588f35492227cc4ab2cbfe95fd5f993a5086f9f (diff) |
rcutorture: Make rcuperf collect expedited event-trace data
This commit enables ftrace in the rcuperf TREE kernel build and adds
an ftrace_dump() at the end of rcuperf processing. This data will be
used to measure the actual durations of the expedited grace periods
without the added delays inherent in the kernel-module measurements.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
-rw-r--r-- | kernel/rcu/rcuperf.c | 1 | ||||
-rw-r--r-- | tools/testing/selftests/rcutorture/configs/rcuperf/TREE | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/kernel/rcu/rcuperf.c b/kernel/rcu/rcuperf.c index e18d016a9888..12561f96f0a2 100644 --- a/kernel/rcu/rcuperf.c +++ b/kernel/rcu/rcuperf.c | |||
@@ -404,6 +404,7 @@ rcu_perf_writer(void *arg) | |||
404 | perf_type, me, MIN_MEAS); | 404 | perf_type, me, MIN_MEAS); |
405 | if (atomic_inc_return(&n_rcu_perf_writer_finished) >= | 405 | if (atomic_inc_return(&n_rcu_perf_writer_finished) >= |
406 | nrealwriters) { | 406 | nrealwriters) { |
407 | rcu_ftrace_dump(DUMP_ALL); | ||
407 | PERFOUT_STRING("Test complete"); | 408 | PERFOUT_STRING("Test complete"); |
408 | t_rcu_perf_writer_finished = t; | 409 | t_rcu_perf_writer_finished = t; |
409 | if (gp_exp) { | 410 | if (gp_exp) { |
diff --git a/tools/testing/selftests/rcutorture/configs/rcuperf/TREE b/tools/testing/selftests/rcutorture/configs/rcuperf/TREE index 614e107f6db5..a312f671a29a 100644 --- a/tools/testing/selftests/rcutorture/configs/rcuperf/TREE +++ b/tools/testing/selftests/rcutorture/configs/rcuperf/TREE | |||
@@ -17,3 +17,4 @@ CONFIG_PROVE_LOCKING=n | |||
17 | CONFIG_RCU_BOOST=n | 17 | CONFIG_RCU_BOOST=n |
18 | CONFIG_DEBUG_OBJECTS_RCU_HEAD=n | 18 | CONFIG_DEBUG_OBJECTS_RCU_HEAD=n |
19 | CONFIG_RCU_EXPERT=y | 19 | CONFIG_RCU_EXPERT=y |
20 | CONFIG_RCU_TRACE=y | ||