rcutorture: Make rcuperf collect expedited event-trace data
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 29 Jan 2016 22:58:17 +0000 (14:58 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 31 Mar 2016 20:38:53 +0000 (13:38 -0700)
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>
kernel/rcu/rcuperf.c
tools/testing/selftests/rcutorture/configs/rcuperf/TREE

index e18d016a98886f3c4eb170b5495ad0ba08bc3f66..12561f96f0a2991ab01d555032a4893af801e746 100644 (file)
@@ -404,6 +404,7 @@ rcu_perf_writer(void *arg)
                                 perf_type, me, MIN_MEAS);
                        if (atomic_inc_return(&n_rcu_perf_writer_finished) >=
                            nrealwriters) {
+                               rcu_ftrace_dump(DUMP_ALL);
                                PERFOUT_STRING("Test complete");
                                t_rcu_perf_writer_finished = t;
                                if (gp_exp) {
index 614e107f6db5c4bdd8118fb962e4cde76abf537f..a312f671a29a4cdfe76e0a7291118bebbea3be22 100644 (file)
@@ -17,3 +17,4 @@ CONFIG_PROVE_LOCKING=n
 CONFIG_RCU_BOOST=n
 CONFIG_DEBUG_OBJECTS_RCU_HEAD=n
 CONFIG_RCU_EXPERT=y
+CONFIG_RCU_TRACE=y