sched_ext: Improve logging around enable/disable
authorTejun Heo <tj@kernel.org>
Thu, 8 Aug 2024 00:52:50 +0000 (14:52 -1000)
committerTejun Heo <tj@kernel.org>
Thu, 8 Aug 2024 23:42:37 +0000 (13:42 -1000)
commit344576fa6a69ce1292ef669c8d50c2088c36dc1e
tree5dffcd338f0e464dcd7e41445c44dfbcde488bd7
parent991ef53a4832941c8130008ef35c66ec88c7fa0f
sched_ext: Improve logging around enable/disable

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: Tejun Heo <tj@kernel.org>
Suggested-by: Phil Auld <pauld@redhat.com>
Reviewed-by: Phil Auld <pauld@redhat.com>
Acked-by: David Vernet <void@manifault.com>
kernel/sched/ext.c