Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 13 Mar 2002 20:14:11 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 13 Mar 2002 20:14:01 -0500 Received: from lightning.swansea.linux.org.uk ([194.168.151.1]:2314 "EHLO the-village.bc.nu") by vger.kernel.org with ESMTP id ; Wed, 13 Mar 2002 20:13:53 -0500 Subject: Re: libc/1427: gprof does not profile threads from "Dan Kegel" at Mar 13, 2002 04:19:02 PM X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: From: Alan Cox Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org > 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/