aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2011-04-27 19:18:39 +0200
committerOleg Nesterov <[email protected]>2011-04-28 13:01:35 +0200
commitf646e227b88a164a841d6b6dd969d8a45272dd83 (patch)
treebd11235d720e384efc20e01f116bbf904ca58b4f /tools/perf/scripts/python/net_dropmonitor.py
parent0edceb7bcd82802f721f3c94eed9b3e2869d3740 (diff)
signal: retarget_shared_pending: consider shared/unblocked signals only
exit_signals() checks signal_pending() before retarget_shared_pending() but this is suboptimal. We can avoid the while_each_thread() loop in case when there are no shared signals visible to us. Add the "shared_pending.signal & ~blocked" check. We don't use tsk->blocked directly but pass ~blocked as an argument, this is needed for the next patch. Note: we can optimize this more. while_each_thread(t) can check t->blocked into account and stop after every pending signal has the new target, see the next patch. Signed-off-by: Oleg Nesterov <[email protected]> Reviewed-by: Matt Fleming <[email protected]> Acked-by: Tejun Heo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions