Commit cc9877f
committed
sched_ext: Improve error reporting during loading
When the BPF scheduler fails, ops.exit() allows rich error reporting through
scx_exit_info. Use scx.exit() path consistently for all failures which can
be caused by the BPF scheduler:
- scx_ops_error() is called after ops.init() and ops.cgroup_init() failure
to record error information.
- ops.init_task() failure now uses scx_ops_error() instead of pr_err().
- The err_disable path updated to automatically trigger scx_ops_error() to
cover cases that the error message hasn't already been generated and
always return 0 indicating init success so that the error is reported
through ops.exit().
Signed-off-by: Tejun Heo <[email protected]>
Cc: David Vernet <[email protected]>
Cc: Daniel Hodges <[email protected]>
Cc: Changwoo Min <[email protected]>
Cc: Andrea Righi <[email protected]>
Cc: Dan Schatzberg <[email protected]>1 parent fcbc423 commit cc9877f
1 file changed
+19
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
625 | 625 | | |
626 | 626 | | |
627 | 627 | | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
628 | 632 | | |
629 | 633 | | |
630 | 634 | | |
| |||
4117 | 4121 | | |
4118 | 4122 | | |
4119 | 4123 | | |
| 4124 | + | |
4120 | 4125 | | |
4121 | 4126 | | |
4122 | 4127 | | |
| |||
5041 | 5046 | | |
5042 | 5047 | | |
5043 | 5048 | | |
| 5049 | + | |
5044 | 5050 | | |
5045 | 5051 | | |
5046 | 5052 | | |
| |||
5150 | 5156 | | |
5151 | 5157 | | |
5152 | 5158 | | |
5153 | | - | |
5154 | | - | |
| 5159 | + | |
| 5160 | + | |
5155 | 5161 | | |
5156 | 5162 | | |
5157 | 5163 | | |
| |||
5199 | 5205 | | |
5200 | 5206 | | |
5201 | 5207 | | |
5202 | | - | |
5203 | | - | |
5204 | | - | |
5205 | | - | |
5206 | | - | |
5207 | 5208 | | |
5208 | 5209 | | |
5209 | | - | |
5210 | 5210 | | |
5211 | 5211 | | |
5212 | 5212 | | |
| |||
5241 | 5241 | | |
5242 | 5242 | | |
5243 | 5243 | | |
5244 | | - | |
5245 | | - | |
| 5244 | + | |
| 5245 | + | |
| 5246 | + | |
| 5247 | + | |
| 5248 | + | |
| 5249 | + | |
| 5250 | + | |
| 5251 | + | |
| 5252 | + | |
| 5253 | + | |
5246 | 5254 | | |
5247 | | - | |
| 5255 | + | |
5248 | 5256 | | |
5249 | 5257 | | |
5250 | 5258 | | |
| |||
0 commit comments