From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754960Ab0IFVMs (ORCPT ); Mon, 6 Sep 2010 17:12:48 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:60271 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751706Ab0IFVMm (ORCPT ); Mon, 6 Sep 2010 17:12:42 -0400 Date: Mon, 6 Sep 2010 17:12:17 -0400 From: Christoph Hellwig To: Peter Zijlstra Cc: Christoph Hellwig , Srikar Dronamraju , Ingo Molnar , Steven Rostedt , Arnaldo Carvalho de Melo , Linus Torvalds , Masami Hiramatsu , Oleg Nesterov , Mark Wielaard , Mathieu Desnoyers , Andrew Morton , Naren A Devaiah , Jim Keniston , Frederic Weisbecker , "Frank Ch. Eigler" , Ananth N Mavinakayanahalli , LKML , "Paul E. McKenney" , Srivatsa Vaddagiri Subject: Re: [PATCHv11 2.6.36-rc2-tip 5/15] 5: uprobes: Uprobes (un)registration and exception handling. Message-ID: <20100906211217.GA3962@infradead.org> References: <20100825134117.5447.55209.sendpatchset@localhost6.localdomain6> <20100825134224.5447.89998.sendpatchset@localhost6.localdomain6> <1283377414.2059.1729.camel@laptop> <20100903164219.GB1904@linux.vnet.ibm.com> <1283534349.2050.297.camel@laptop> <20100906174642.GG14891@linux.vnet.ibm.com> <20100906204042.GA19815@infradead.org> <1283807168.1930.919.camel@laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1283807168.1930.919.camel@laptop> User-Agent: Mutt/1.5.20 (2009-08-17) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 06, 2010 at 11:06:08PM +0200, Peter Zijlstra wrote: > > The other things is that perf currently only supports per-kernel pid > > recording, while we'd really need per Posix process, which may contain > > multiple threads for useful tracing of complex userspace applications. > > I also suspect that this will fit the uprobes model much better given > > that the probes will be in any given address space. > > perf does report both: > > * { u32 pid, tid; } && PERF_SAMPLE_TID > > the pid is the process id (thread group leader like) and tid is the > task/thread id. It records both, but I haven't found a way to only record samples or trace things in a Posix Process. E.g. perf record -p seems to be only per-thread, not per-process. If that has changes recently everything is fine of course.