Messages in this thread | | | Date | Mon, 5 Sep 2011 12:47:26 -0700 | From | Arjan van de Ven <> | Subject | Re: [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
| |