Merge pull request #922 from hodgesds/layered-cost-dump-fixes

scx_layered: Fix dump format
This commit is contained in:
Daniel Hodges 2024-11-12 18:28:31 +00:00 committed by GitHub
commit 72f21dba06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2286,12 +2286,12 @@ int dump_cost(void)
// Per CPU costs
bpf_for(i, 0, nr_possible_cpus) {
if (!(costc = lookup_cpu_cost(j))) {
if (!(costc = lookup_cpu_cost(i))) {
scx_bpf_error("unabled to lookup layer %d", i);
continue;
}
bpf_for(j, 0, nr_layers) {
layer = lookup_layer(i);
layer = lookup_layer(j);
if (!layer) {
scx_bpf_error("unabled to lookup layer %d", i);
continue;