Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762692AbYHICWU (ORCPT ); Fri, 8 Aug 2008 22:22:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752968AbYHICWM (ORCPT ); Fri, 8 Aug 2008 22:22:12 -0400 Received: from one.firstfloor.org ([213.235.205.2]:59487 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750890AbYHICWM (ORCPT ); Fri, 8 Aug 2008 22:22:12 -0400 Date: Sat, 9 Aug 2008 04:23:02 +0200 From: Andi Kleen To: Steven Rostedt Cc: Andi Kleen , Mathieu Desnoyers , LKML , Ingo Molnar , Thomas Gleixner , Peter Zijlstra , Andrew Morton , Linus Torvalds , David Miller , Roland McGrath , Ulrich Drepper , Rusty Russell , Jeremy Fitzhardinge , Gregory Haskins , Arnaldo Carvalho de Melo , "Luis Claudio R. Goncalves" , Clark Williams Subject: Re: [PATCH 0/5] ftrace: to kill a daemon Message-ID: <20080809022302.GH9038@one.firstfloor.org> References: <20080808182104.GA11376@Krystal> <20080808190506.GD11376@Krystal> <87tzdv2g05.fsf@basil.nowhere.org> <20080809011955.GE9038@one.firstfloor.org> <20080809015539.GG9038@one.firstfloor.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1165 Lines: 28 On Fri, Aug 08, 2008 at 10:03:42PM -0400, Steven Rostedt wrote: > > On Sat, 9 Aug 2008, Andi Kleen wrote: > > > > Funny, CONFIG_FTRACE happens to select that. Now the question is, would > > > mcount work without it? > > > > Not without fixing gcc first. It would work if gcc always called > > mcount the first thing before setting up the stack frame. Not > > sure why it doesn't do that. > > I could take out the frame pointer option and pass in zero for the parent > in such that case. But the parent is quite useful. But if it helps > with performance, it may be worth doing this. Right now gcc errors out unfortunately. Would need to ask gcc developers to fix this first. But when they move mcount to be always first you can still get at the parent, it will always be at 4(%esp) or 8(%rsp). An alternative would be also run an assembler post processor that inserts mcount calls without compiler help. -Andi -- 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/