--- ksrc/nucleus/module.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) Index: xenomai/ksrc/nucleus/module.c =================================================================== --- xenomai.orig/ksrc/nucleus/module.c +++ xenomai/ksrc/nucleus/module.c @@ -103,6 +103,7 @@ struct sched_seq_iterator { xnticks_t period; xnticks_t timeout; xnflags_t status; + xnarch_cpumask_t affinity; } sched_info[1]; }; @@ -145,8 +146,9 @@ static int sched_seq_show(struct seq_fil char sbuf[64], pbuf[16]; if (v == SEQ_START_TOKEN) - seq_printf(seq, "%-3s %-6s %-8s %-8s %-10s %-10s %s\n", - "CPU", "PID", "PRI", "PERIOD", "TIMEOUT", "STAT", "NAME"); + seq_printf(seq, "%-3s %-8s %-6s %-8s %-8s %-10s %-10s %s\n", + "CPU", "AFFINITY", "PID", "PRI", "PERIOD", "TIMEOUT", + "STAT", "NAME"); else { struct sched_seq_info *p = (struct sched_seq_info *)v; @@ -156,8 +158,9 @@ static int sched_seq_show(struct seq_fil else snprintf(pbuf, sizeof(pbuf), "%3d", p->cprio); - seq_printf(seq, "%3u %-6d %-8s %-8Lu %-10Lu %-10s %s\n", + seq_printf(seq, "%3u %08x %-6d %-8s %-8Lu %-10Lu %-10s %s\n", p->cpu, + p->affinity, p->pid, pbuf, p->period, @@ -237,6 +240,7 @@ static int sched_seq_open(struct inode * iter->sched_info[n].period = xnthread_get_period(thread); iter->sched_info[n].timeout = xnthread_get_timeout(thread, iter->start_time); iter->sched_info[n].status = thread->status; + iter->sched_info[n].affinity = thread->affinity; holder = nextq(&nkpod->threadq, holder);