This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / kernel / vserver / sched_proc.h
1 #ifndef _VX_SCHED_PROC_H
2 #define _VX_SCHED_PROC_H
3
4
5 static inline int vx_info_proc_sched(struct _vx_sched *sched, char *buffer)
6 {
7         int length = 0;
8         int i;
9
10         length += sprintf(buffer,
11                 "Token:\t\t%8d\n"
12                 "FillRate:\t%8d\n"
13                 "Interval:\t%8d\n"
14                 "TokensMin:\t%8d\n"
15                 "TokensMax:\t%8d\n"
16                 "PrioBias:\t%8d\n"
17                 ,atomic_read(&sched->tokens)
18                 ,sched->fill_rate
19                 ,sched->interval
20                 ,sched->tokens_min
21                 ,sched->tokens_max
22                 ,sched->priority_bias
23                 );
24
25         for_each_online_cpu(i) {
26                 length += sprintf(buffer + length,
27                         "cpu %d: %lld %lld %lld\n"
28                         ,i
29                         ,(long long)sched->cpu[i].user_ticks
30                         ,(long long)sched->cpu[i].sys_ticks
31                         ,(long long)sched->cpu[i].hold_ticks
32                         );
33         }
34
35         return length;
36 }
37
38 #endif  /* _VX_SCHED_PROC_H */