mirror of
https://github.com/sched-ext/scx.git
synced 2024-11-28 13:40:28 +00:00
scx_layered: Add better debug output of iter algo
Signed-off-by: Daniel Hodges <hodges.daniel.scott@gmail.com>
This commit is contained in:
parent
e1241d6e52
commit
c56e60b86a
@ -1927,9 +1927,17 @@ void BPF_STRUCT_OPS(layered_dump, struct scx_dump_ctx *dctx)
|
||||
|
||||
static void print_iter_order() {
|
||||
int i;
|
||||
struct cpu_ctx *cctx;
|
||||
|
||||
if (!(cctx = lookup_cpu_ctx(-1))) {
|
||||
scx_bpf_error("failed to get cpu ctx");
|
||||
return;
|
||||
}
|
||||
|
||||
trace("ITER algo: %d", dsq_iter_algo);
|
||||
bpf_for(i, 0, nr_layers) {
|
||||
trace("ITER order i: %d %d\n", i, *MEMBER_VPTR(layer_iteration_order, [i]));
|
||||
trace("ITER order i: %d %d\n", i,
|
||||
iter_layer_dsq_ctx(i, cctx->layer_idx));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user