• Tejun Heo's avatar
    sched_ext: Improve logging around enable/disable · 344576fa
    Tejun Heo authored
    sched_ext currently doesn't generate messages when the BPF scheduler is
    enabled and disabled unless there are errors. It is useful to have paper
    trail. Improve logging around enable/disable:
    
    - Generate info messages on enable and non-error disable.
    
    - Update error exit message formatting so that it's consistent with
      non-error message. Also, prefix ei->msg with the BPF scheduler's name to
      make it clear where the message is coming from.
    
    - Shorten scx_exit_reason() strings for SCX_EXIT_UNREG* for brevity and
      consistency.
    
    v2: Use pr_*() instead of KERN_* consistently. (David)
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Suggested-by: default avatarPhil Auld <pauld@redhat.com>
    Reviewed-by: default avatarPhil Auld <pauld@redhat.com>
    Acked-by: default avatarDavid Vernet <void@manifault.com>
    344576fa
ext.c 184 KB