Re: [PATCH] sched: share task comm length value to userspace

From: Arjan van de Ven
Date: Mon Sep 05 2011 - 15:44:16 EST


On Mon, 5 Sep 2011 21:38:01 +0300
Vladimir Zapolskiy <vz@xxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/