Re: [RFC] set the thread name
From: Stefani Seibold
Date: Tue Jun 16 2009 - 15:55:24 EST
Am Dienstag, den 16.06.2009, 21:14 +0200 schrieb Bert Wesarg:
> On Tue, Jun 16, 2009 at 20:39, Stefani Seibold<stefani@xxxxxxxxxxx> wrote:
> > Currently it is not easy to identify a thread in linux, because there is
> > no thread name like in some other OS.
> > If there were are thread name then we could extend a kernel segv message
> > and the /proc/<pid>/task/<tid>/... entries by a TName value like this:
> prctl(PR_SET_NAME, ...) works perfectly here.
I checked it now a little bit more. It is true it works, but if i do a
segv access inside a thread a get the kernel message like:
task 09: segfault at 0 ip 08048612 sp b363c370 error 6 in
So the current implementation is not exactly what i expect. I would
prefer my solution to replace every access thread_struct->comm to
task_struct->group_leader->comm to have the right behavior.
The new system call is obsolete, it is still there.
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/