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 11:23:32AM -0800, Kees Cook wrote:
> >
> > I perhaps miss some history here, you mean just print 0
> > instead of 1, right?
>
> The history is that when "0" is seen for start_code, tools like "ps"
> assumed the process was a kernel thread, so "1" was used as a hack to
> not break userspace reporting. So yeah, since this is a new field,
> it's fine to just do:
>
> + (mm && permitted) ? mm->start_data : 0,
> + (mm && permitted) ? mm->end_data : 0,
> + (mm && permitted) ? mm->start_brk : 0,
>

Yup, thanks a lot Kees, I'll update.

Cyrill


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