diff options
author | 2016-11-09 17:57:13 +0900 | |
---|---|---|
committer | 2017-01-23 11:32:22 -0800 | |
commit | c4402b27f1778fad0dbc27b2d88bb06ca22a06f0 (patch) | |
tree | 5dbdefa7e7b390a9971246f0541673a563467d2a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Fix: Disable sys_membarrier when nohz_full is enabled (diff) | |
download | linux-dev-c4402b27f1778fad0dbc27b2d88bb06ca22a06f0.tar.xz linux-dev-c4402b27f1778fad0dbc27b2d88bb06ca22a06f0.zip |
rcu: Only dump stalled-tasks stacks if there was a real stall
The print_other_cpu_stall() function currently unconditionally invokes
rcu_print_detail_task_stall(). This is OK because if there was a stall
sufficient to cause print_other_cpu_stall() to be invoked, that stall
is very likely to persist through the entire print_other_cpu_stall()
execution. However, if the stall did not persist, the variable ndetected
will be zero, and that variable is already tested in an "if" statement.
Therefore, this commit moves the call to rcu_print_detail_task_stall()
under that pre-existing "if" to improve readability, with a very rare
reduction in overhead.
Signed-off-by: Byungchul Park <byungchul.park@lge.com>
[ paulmck: Reworked commit log. ]
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions