diff options
| author | Robert Love <rml@tech9.net> | 2002-05-28 03:02:12 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-05-28 03:02:12 -0700 |
| commit | 79569bfe3f1bb52713b1123005d0ca479bb280d2 (patch) | |
| tree | ab8f7968b3c8ba8068cba361a150a60c4a9ea0d2 /fs/proc/array.c | |
| parent | 3e7e1382b080f625b23072c3191cd66fdb63308c (diff) | |
[PATCH] real-time info in /proc/<pid>/stats
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.
Diffstat (limited to 'fs/proc/array.c')
| -rw-r--r-- | fs/proc/array.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c index c727d1487a1e..6dda796f87b5 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c @@ -346,7 +346,7 @@ int proc_pid_stat(struct task_struct *task, char * buffer) 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, @@ -389,7 +389,9 @@ int proc_pid_stat(struct task_struct *task, char * buffer) 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; |
