23 Aug, 2016

1 commit

  • A few rcuperf dmesg output messages have no space between the flag and
    the start of the message. In contrast, every other messages consistently
    supplies a single space. This difference makes rcuperf dmesg output
    hard to read and to mechanically parse. This commit therefore fixes
    this problem by modifying a pr_alert() call and PERFOUT_STRING() macro
    function to provide that single space.

    Signed-off-by: SeongJae Park
    Signed-off-by: Paul E. McKenney

    SeongJae Park
     

15 Jun, 2016

3 commits

  • Fix to return a negative error code -ENOMEM from kcalloc() error
    handling case instead of 0, as done elsewhere in this function.

    Signed-off-by: Wei Yongjun
    Signed-off-by: Paul E. McKenney

    Wei Yongjun
     
  • 0day found a boot warning triggered in rcu_perf_writer() on !SMP kernel:

    WARN_ON(rcu_gp_is_normal() && gp_exp);

    , the root cause of which is trying to measure expedited grace
    periods(by setting gp_exp to true by default) when all the grace periods
    are normal(TINY RCU only has normal grace periods).

    However, such a mis-setting would only result in failing to measure the
    performance for a specific kind of grace periods, therefore using a
    WARN_ON to check this is a little overkilling. We could handle this
    inside rcuperf module via some error messages to tell users about the
    mis-settings.

    Therefore this patch removes the WARN_ON in rcu_perf_writer() and
    handles those checkings in rcu_perf_init() with plain if() code.

    Moreover, this patch changes the default value of gp_exp to 1) align
    with rcutorture tests and 2) make the default setting work for all RCU
    implementations by default.

    Suggested-by: Paul E. McKenney
    Signed-off-by: Boqun Feng
    Fixes: http://lkml.kernel.org/r/57411b10.mFvG0+AgcrMXGtcj%fengguang.wu@intel.com
    Signed-off-by: Paul E. McKenney

    Boqun Feng
     
  • This commit applies the infamous IS_ENABLED() macro to eliminate a #ifdef.
    It also eliminates the RCU_PERF_TEST_RUNNABLE Kconfig option in favor
    of the already-existing rcuperf.perf_runnable kernel boot parameter.

    Signed-off-by: Paul E. McKenney

    Paul E. McKenney
     

01 Apr, 2016

7 commits