lkml.org 
[lkml]   [2011]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] sched: share task comm length value to userspace
On Mon,  5 Sep 2011 21:38:01 +0300
Vladimir Zapolskiy <vz@mleia.com> wrote:

> This change allows to get a defined length of task comm in
> userspace. For a moment this value is implied at least in two cases:
> * max length of comm value got from /proc/$pid/stat
> * max string length argument of prctl(PR_[SG]ET_NAME, ...)
>
> For these reasons it becomes desirable to impart task comm max length
> value to userspace.

I'm sorry but I don't like doing this.

The moment we do this, we never can increase it anymore since userspace
might be using it for its own uses and we'd break it if we changed
this value.

If we need to export this, we should export it in /proc or /sys
somewhere as a dynamic value.....



--
Arjan van de Ven Intel Open Source Technology Centre
For development, discussion and tips for power savings,
visit http://www.lesswatts.org


\
 
 \ /
  Last update: 2011-09-05 21:47    [W:0.689 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site