Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757036Ab0KJQo0 (ORCPT ); Wed, 10 Nov 2010 11:44:26 -0500 Received: from mail-gx0-f174.google.com ([209.85.161.174]:40345 "EHLO mail-gx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757024Ab0KJQoY (ORCPT ); Wed, 10 Nov 2010 11:44:24 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=RsoZdigxuJBBJ3FEyQ+zM1nuhotjB/i/VQV0omXOnQx0iuwNNtg3wEfSaO32wQ7Afc 2Qfofz4Le3gaHGen12t/BSFrlmVg2QjpPLCOK9W/ZoXlVCi4EmE4sFeDAaAp6TkPD94Z jSZm6y8ivrv7RYyKFg9MHLGiOkNRQ5moGyKCQ= Date: Wed, 10 Nov 2010 17:44:16 +0100 From: Frederic Weisbecker To: Jiri Olsa Cc: Ingo Molnar , Christoph Hellwig , rostedt@goodmis.org, andi@firstfloor.org, lwoodman@redhat.com, linux-kernel@vger.kernel.org, Peter Zijlstra Subject: Re: [PATCH 1/2] tracing,mm - add kernel pagefault tracepoint for x86 & x86_64 Message-ID: <20101110164413.GA5360@nowhere> References: <1289390172-9730-1-git-send-email-jolsa@redhat.com> <1289390172-9730-2-git-send-email-jolsa@redhat.com> <20101110132954.GA2101@infradead.org> <20101110134436.GD1949@jolsa.brq.redhat.com> <20101110135244.GA31638@elte.hu> <20101110150021.GA5750@nowhere> <20101110151750.GA11541@jolsa.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101110151750.GA11541@jolsa.brq.redhat.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1905 Lines: 50 On Wed, Nov 10, 2010 at 04:17:50PM +0100, Jiri Olsa wrote: > On Wed, Nov 10, 2010 at 04:00:25PM +0100, Frederic Weisbecker wrote: > > On Wed, Nov 10, 2010 at 02:52:44PM +0100, Ingo Molnar wrote: > > > > > > * Jiri Olsa wrote: > > > > > > > On Wed, Nov 10, 2010 at 08:29:54AM -0500, Christoph Hellwig wrote: > > > > > On Wed, Nov 10, 2010 at 12:56:11PM +0100, Jiri Olsa wrote: > > > > > > + TP_printk("task=%lx, address=%lx, regs=%lx", > > > > > > + (unsigned long)__entry->task, (unsigned long)__entry->address, > > > > > > + __entry->regs) > > > > > > > > > > How exactly do you use the information in this trace point? Especially > > > > > the undecoded pt_regs doesn't seem very useful to me at all. > > > > > > > > agreed, the registers pointer are not very useful in the trace file output, > > > > and could be taken away.. just wanted to be complete I guess > > > > > > > > but I believe they are useful when you register the mm_kernel_pagefault > > > > tracepoint and process the information by yourself > > > > > > That would be expressed in a better and more generic fashion via adding > > > PERF_SAMPLE_REGS to perf_event_sample_format, and add a ptregs dump in > > > kernel/perf_event.c, perf_output_sample(). That way any tracepoint can request a > > > (user-space)ptregs state snapshot, not just the pagefault ones. > > > > > > Thanks, > > > > > > Ingo > > > > > > We are going to have that with the dwarf based callchain patchset. I'm cooking > > this. > > > > Thanks. > > > > I guess I can take the regs out then.. would that patch be acceptable > afterwards..? Please take out the regs yeah. Thanks. -- 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/