• Paul E. McKenney's avatar
    rcu: add callback-queue information to rcudata output · 0ac3d136
    Paul E. McKenney authored
    This commit adds an indication of the state of the callback queue using
    a string of four characters following the "ql=" integer queue length.
    The first character is "N" if there are callbacks that have been
    queued that are not yet ready to be handled by the next grace period, or
    "." otherwise.  The second character is "R" if there are callbacks queued
    that are ready to be handled by the next grace period, or "." otherwise.
    The third character is "W" if there are callbacks waiting for the current
    grace period, or "." otherwise.  Finally, the fourth character is "D"
    if there are callbacks that have been handled by a prior grace period
    and are waiting to be invoked, or ".".
    
    Note that callbacks that are in the process of being invoked are
    not shown.  These callbacks would have been removed from the rcu_data
    structure's list by rcu_do_batch() prior to being executed.  (These
    callbacks are also not reflected in the "ql=" total, FWIW.)
    
    Also, document the new callback-queue trace information.
    Signed-off-by: default avatarPaul E. McKenney <paul.mckenney@linaro.org>
    Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
    Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
    0ac3d136
rcutree_trace.c 11.9 KB