Removes debugging code
[akaros.git] / kern / drivers / dev / proc.c
index f18276f..99c08cd 100644 (file)
@@ -1447,7 +1447,9 @@ static void procctlreq(struct proc *p, char *va, int n)
                default:
                        error("nope\n");
                        break;
-
+               case CMtrace:
+                       systrace_trace_pid(p);
+                       break;
                case CMclose:
                        procctlclosefiles(p, 0, atoi(cb->f[1]));
                        break;
@@ -1472,30 +1474,6 @@ static void procctlreq(struct proc *p, char *va, int n)
                         * hyperthreaded core. */
                        spin_on(p->env_cr3);
                        break;
-#if 0
-                       core ownership.From NIX.case CMcore:core = atoi(cb->f[1]);
-                       if (core >= MACHMAX)
-                               error("wrong core number");
-                       else if (core == 0) {
-                               if (p->ac == NULL)
-                                       error("not running in an ac");
-                               p->procctl = struct proc_totc;
-                               if (p != up && p->state == Exotic) {
-                                       /* see the comment in postnote */
-                                       intrac(p);
-                               }
-                       } else {
-                               if (p->ac != NULL)
-                                       error("running in an ac");
-                               if (core < 0)
-                                       p->ac = getac(p, -1);
-                               else
-                                       p->ac = getac(p, core);
-                               p->procctl = struct proc_toac;
-                               p->prepagemem = 1;
-                       }
-                       break;
-#endif
        }
        poperror();
        kfree(cb);