static void show_task(struct task_struct *t) { printk("cell=%3d uid=%5d pid=%5d utime=%3d stime=%3d etime=%3d name=%s\n", mpp_cid(), t->uid, (int)t->pid, (int)t->utime, (int)t->stime, (jiffies - (int)t->start_time) / 100, t->comm); }
struct linux_romvec *ap_prom_init(void) { memset(&ap_romvec,0,sizeof(ap_romvec)); ap_romvec.pv_romvers = 42; ap_romvec.pv_nodeops = &ap_nodeops; ap_romvec.pv_reboot = ap_reboot; ap_romvec.pv_synchook = &synch_hook; ap_idprom.id_format = 1; ap_idprom.id_sernum = mpp_cid(); ap_idprom.id_machtype = SM_SUN4M_OBP; ap_idprom.id_cksum = calc_idprom_cksum(&ap_idprom); return &ap_romvec; }
static void show_utasks(void) { extern struct task_struct *task[]; struct task_struct *p; int i; int count=0; read_lock(&tasklist_lock); for_each_task(p) { if(p->uid > 1) { show_task(task[i]); count++; } } read_unlock(&tasklist_lock); if (count == 0) printk("no user tasks on cell %d\n",mpp_cid()); }
static void show_ptasks(void) { extern struct task_struct *task[]; struct task_struct *p; int i; int count=0; read_lock(&tasklist_lock); for_each_task(p) { struct task_struct **tp = p->tarray_ptr; if(tp >= &task[MPP_TASK_BASE]) { show_task(p); count++; } } read_unlock(&tasklist_lock); if (count == 0) printk("no parallel tasks on cell %d\n",mpp_cid()); }
static void check_alive(void) { printk("Cell %d is alive\n",mpp_cid()); }
static void asyncd_info(void) { printk("CID(%d) faults: total=%d read=%d write=%d success=%d fail=%d err=%d\n", mpp_cid(),stats.faults, stats.read, stats.write, stats.success, stats.failure, stats.errors); }