diff --git a/scheds/rust/scx_layered/src/bpf/main.bpf.c b/scheds/rust/scx_layered/src/bpf/main.bpf.c index 033993347..e1603d573 100644 --- a/scheds/rust/scx_layered/src/bpf/main.bpf.c +++ b/scheds/rust/scx_layered/src/bpf/main.bpf.c @@ -32,8 +32,6 @@ struct layer layers[MAX_LAYERS]; u32 fallback_cpu; static u32 preempt_cursor; -volatile u32 ___sched_error_line; - #define dbg(fmt, args...) do { if (debug) bpf_printk(fmt, ##args); } while (0) #define trace(fmt, args...) do { if (debug > 1) bpf_printk(fmt, ##args); } while (0) @@ -42,7 +40,6 @@ volatile u32 ___sched_error_line; #define __COMPAT_scx_bpf_error(fmt, args...) \ do { \ bpf_printk(fmt, ##args); \ - ___sched_error_line = __LINE__; \ } while (0) struct user_exit_info uei; diff --git a/scheds/rust/scx_rusty/src/bpf/main.bpf.c b/scheds/rust/scx_rusty/src/bpf/main.bpf.c index b59f38c63..7f51fb542 100644 --- a/scheds/rust/scx_rusty/src/bpf/main.bpf.c +++ b/scheds/rust/scx_rusty/src/bpf/main.bpf.c @@ -78,13 +78,9 @@ const volatile u32 debug; /* base slice duration */ static u64 slice_ns = SCX_SLICE_DFL; - -volatile u32 ___sched_error_line; - #define __COMPAT_scx_bpf_error(fmt, args...) \ do { \ bpf_printk(fmt, ##args); \ - ___sched_error_line = __LINE__; \ } while (0) struct user_exit_info uei;