| To: | kdb@xxxxxxxxxxx |
|---|---|
| Subject: | O(1) and kdb |
| From: | anton wilson <anton.wilson@xxxxxxxxxxxx> |
| Date: | Fri, 19 Jul 2002 18:46:15 -0400 |
| Sender: | owner-kdb@xxxxxxxxxxx |
Not sure if anyone's interested, but to change KDB to use the O(1) scheduler
just replace
+ task_has_cpu(p), p->processor,
with
+ (p->array != NULL), p->cpu,
in the common patch at:
+int
+kdb_ps(int argc, const char **argv, const char **envp, struct pt_regs *regs)
+{
+ struct task_struct *p;
+
+ kdb_printf("%-*s Pid Parent [*] cpu State %-*s Command\n",
+ (int)(2*sizeof(void *))+2, "Task Addr",
+ (int)(2*sizeof(void *))+2, "Thread");
+ for_each_task(p) {
+ kdb_printf("0x%p %08d %08d %1.1d %3.3d %s 0x%p%c%s\n",
+ (void *)p, p->pid, p->p_pptr->pid,
+ task_has_cpu(p), p->processor,
+ (p->state == 0)?"run ":(p->state>0)?"stop":"unrn",
+ (void *)(&p->thread),
+ (p == current) ? '*': ' ',
+ p->comm);
+ }
+
+ return 0;
+}
Anton
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: vmware 2, Keith Owens |
|---|---|
| Next by Date: | Debian 3.0 stable with XFS and KDB, Keith Owens |
| Previous by Thread: | vmware 2, Evan Sarmiento |
| Next by Thread: | Debian 3.0 stable with XFS and KDB, Keith Owens |
| Indexes: | [Date] [Thread] [Top] [All Lists] |