diff options
author | Damien Zammit <damien@zamaudio.com> | 2024-02-11 12:00:57 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-02-11 15:03:43 +0100 |
commit | 0232f733a60af52ff901d9af1bb4006fa1765182 (patch) | |
tree | feffc0d995ed8844e23f440af15c443ca80b9a6a /ddb | |
parent | e97bef5c788fa9cf15aab28d469e5f72cb0360c7 (diff) | |
download | gnumach-0232f733a60af52ff901d9af1bb4006fa1765182.tar.gz gnumach-0232f733a60af52ff901d9af1bb4006fa1765182.tar.bz2 gnumach-0232f733a60af52ff901d9af1bb4006fa1765182.zip |
ddb: Make show all runqs iterate over psets.
Diffstat (limited to 'ddb')
-rw-r--r-- | ddb/db_print.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ddb/db_print.c b/ddb/db_print.c index 028cb887..c8d85d26 100644 --- a/ddb/db_print.c +++ b/ddb/db_print.c @@ -345,10 +345,14 @@ db_show_all_runqs( db_expr_t count, const char * modif) { - int i; + int i = 0; + processor_set_t pset; - db_printf("Processor set runq:\t"); - showrq(&default_pset.runq); + queue_iterate(&all_psets, pset, processor_set_t, all_psets) { + db_printf("Processor set #%d runq:\t", i); + showrq(&pset->runq); + i++; + } for (i = 0; i < smp_get_numcpus(); i++) { db_printf("Processor #%d runq:\t", i); showrq(&cpu_to_processor(i)->runq); |