Commit 344576f
committed
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>1 parent 991ef53 commit 344576f
1 file changed
Lines changed: 12 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4013 | 4013 | | |
4014 | 4014 | | |
4015 | 4015 | | |
4016 | | - | |
| 4016 | + | |
4017 | 4017 | | |
4018 | | - | |
| 4018 | + | |
4019 | 4019 | | |
4020 | | - | |
| 4020 | + | |
4021 | 4021 | | |
4022 | 4022 | | |
4023 | 4023 | | |
| |||
4135 | 4135 | | |
4136 | 4136 | | |
4137 | 4137 | | |
4138 | | - | |
| 4138 | + | |
| 4139 | + | |
4139 | 4140 | | |
4140 | | - | |
4141 | | - | |
4142 | | - | |
4143 | | - | |
| 4141 | + | |
| 4142 | + | |
4144 | 4143 | | |
4145 | 4144 | | |
| 4145 | + | |
| 4146 | + | |
| 4147 | + | |
4146 | 4148 | | |
4147 | 4149 | | |
4148 | 4150 | | |
| |||
4817 | 4819 | | |
4818 | 4820 | | |
4819 | 4821 | | |
| 4822 | + | |
| 4823 | + | |
4820 | 4824 | | |
4821 | 4825 | | |
4822 | 4826 | | |
| |||
0 commit comments