Attached patch adds output of rt_priority and policy to
/proc/<pid>/stats.
This will not break compatibility with existing applications and will
allow ps(1) and friends to display pertinent scheduling information.
read_unlock(&tasklist_lock);
res = sprintf(buffer,"%d (%s) %c %d %d %d %d %d %lu %lu \
%lu %lu %lu %lu %lu %ld %ld %ld %ld %ld %ld %lu %lu %ld %lu %lu %lu %lu %lu \
-%lu %lu %lu %lu %lu %lu %lu %lu %d %d\n",
+%lu %lu %lu %lu %lu %lu %lu %lu %d %d %lu %lu\n",
task->pid,
task->comm,
state,
task->nswap,
task->cnswap,
task->exit_signal,
- task->thread_info->cpu);
+ task->thread_info->cpu,
+ task->rt_priority,
+ task->policy);
if(mm)
mmput(mm);
return res;