lkml.org 
[lkml]   [2011]   [Dec]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [rfc 1/3] fs, proc: Add start_data, end_data, start_brk members to /proc/$pid/stat
On Fri, Dec 02, 2011 at 03:24:06AM +0300, Alexey Dobriyan wrote:
> > > + cputime_to_clock_t(cgtime),
> > > + mm ? (permitted ? mm->start_data : 1) : 0,
> > > + mm ? (permitted ? mm->end_data : 1) : 0,
> > > + mm ? (permitted ? mm->start_brk : 1) : 0);
> > > if (mm)
> > > mmput(mm);
> > > return 0;
> >
> > Thanks for using "permitted" here. :)
>
> And these are new fields, so "1" hack is unnecessary.
>

I perhaps miss some history here, you mean just print 0
instead of 1, right?

Cyrill


\
 
 \ /
  Last update: 2011-12-02 08:31    [W:0.087 / U:24.452 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site