diff options
| author | Tejun Heo <[email protected]> | 2024-10-02 20:33:37 +0000 |
|---|---|---|
| committer | Tejun Heo <[email protected]> | 2024-10-04 20:11:43 +0000 |
| commit | cc9877fb76771b7cbce6c9ec239f13a1d7759876 (patch) | |
| tree | b1354d02dc9414e978387d08b00c77a02d088355 /rust/helpers/mutex.c | |
| parent | sched_ext: Add __weak markers to BPF helper function decalarations (diff) | |
| download | kernel-cc9877fb76771b7cbce6c9ec239f13a1d7759876.tar.gz kernel-cc9877fb76771b7cbce6c9ec239f13a1d7759876.zip | |
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]>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions
