Browse Source

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>
Paul E. McKenney 9 years ago
parent
commit
ac2bb275e8
2 changed files with 2 additions and 0 deletions
  1. 1 0
      kernel/rcu/rcuperf.c
  2. 1 0
      tools/testing/selftests/rcutorture/configs/rcuperf/TREE

+ 1 - 0
kernel/rcu/rcuperf.c

@@ -404,6 +404,7 @@ rcu_perf_writer(void *arg)
 				 perf_type, me, MIN_MEAS);
 				 perf_type, me, MIN_MEAS);
 			if (atomic_inc_return(&n_rcu_perf_writer_finished) >=
 			if (atomic_inc_return(&n_rcu_perf_writer_finished) >=
 			    nrealwriters) {
 			    nrealwriters) {
+				rcu_ftrace_dump(DUMP_ALL);
 				PERFOUT_STRING("Test complete");
 				PERFOUT_STRING("Test complete");
 				t_rcu_perf_writer_finished = t;
 				t_rcu_perf_writer_finished = t;
 				if (gp_exp) {
 				if (gp_exp) {

+ 1 - 0
tools/testing/selftests/rcutorture/configs/rcuperf/TREE

@@ -17,3 +17,4 @@ CONFIG_PROVE_LOCKING=n
 CONFIG_RCU_BOOST=n
 CONFIG_RCU_BOOST=n
 CONFIG_DEBUG_OBJECTS_RCU_HEAD=n
 CONFIG_DEBUG_OBJECTS_RCU_HEAD=n
 CONFIG_RCU_EXPERT=y
 CONFIG_RCU_EXPERT=y
+CONFIG_RCU_TRACE=y