eclair: report PID for all threads
This commit is contained in:
@@ -849,6 +849,7 @@ static void command(char *cmd, char *res) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
q = buf;
|
q = buf;
|
||||||
|
q += sprintf(q, "PID %d, ", ti->pid);
|
||||||
if (ti->status & PS_RUNNING) {
|
if (ti->status & PS_RUNNING) {
|
||||||
q += sprintf(q, "%srunning on cpu %d",
|
q += sprintf(q, "%srunning on cpu %d",
|
||||||
ti->idle ? "idle " : "", ti->lcpu);
|
ti->idle ? "idle " : "", ti->lcpu);
|
||||||
@@ -877,9 +878,6 @@ static void command(char *cmd, char *res) {
|
|||||||
else {
|
else {
|
||||||
q += sprintf(q, "status=%#x", ti->status);
|
q += sprintf(q, "status=%#x", ti->status);
|
||||||
}
|
}
|
||||||
if (ti->tid != ti->pid) {
|
|
||||||
q += sprintf(q, ",pid=%d", ti->pid);
|
|
||||||
}
|
|
||||||
rbp += print_hex(rbp, buf);
|
rbp += print_hex(rbp, buf);
|
||||||
}
|
}
|
||||||
} while (0);
|
} while (0);
|
||||||
|
|||||||
Reference in New Issue
Block a user