Re: libc/1427: gprof does not profile threads <synopsis of the problem

Alan Cox (alan@lxorguk.ukuu.org.uk)
Thu, 14 Mar 2002 01:28:40 +0000 (GMT)


> Here are a few alternate ideas off the top of my head:
>
> * Rip out Linuxthreads, replace it with NGPT, and
> start fixing from there? (Or does NGPT already fix this?)
>
> * Rewrite Linux's setitimer(ITIMER_PROF,...) to set up an
> interval timer for all threads of the thread group.
>
> * Implement the profil() system call from Solaris
> ( http://ua1vm.ua.edu/cgi-bin/man-cgi?profil+2 )
>
> What's your favorite idea for getting profiling of
> multithreaded programs working on Linux?

Kernel support is not needed for this, do it in user space. Or prove it
has to be in kernel space
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/