From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Mon, 26 Oct 2009 18:35:58 +0100 (CET) Received: from ey-out-1920.google.com ([74.125.78.145]:14548 "EHLO ey-out-1920.google.com" rhost-flags-OK-OK-OK-OK) by ftp.linux-mips.org with ESMTP id S1493257AbZJZRfv (ORCPT ); Mon, 26 Oct 2009 18:35:51 +0100 Received: by ey-out-1920.google.com with SMTP id 26so713611eyw.52 for ; Mon, 26 Oct 2009 10:35:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:reply-to:to:cc :in-reply-to:references:content-type:organization:date:message-id :mime-version:x-mailer:content-transfer-encoding; bh=r/4VZj+WUR45B6+ps4g6i9wf9PQJ5nBKxgTVgR3SPjw=; b=nDa71eMJAMQGNcVdZNutUoMjePRBWXrETmfKW/MVXXCA/feLVYkBmyVFm+ErK342vw 3r6K5N40NkiczyN2xyd9QZjOnSVNGVOCi47YOb3VpBS+UWuBB1pC4JFJCnPuxeLUnIYq G5m7gA21y8P61zQhQw1/On1/cGg+hDYqSBSSc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:reply-to:to:cc:in-reply-to:references:content-type :organization:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=XfiFLDWD5k/6PeKeJZBGq649GcUthkDvCdB3UUTz4fM3NNwsgyesL+S6f3vM3vIZRH 2tD36jQcAGvXBcC9YeGpJnFDff5CI1k9ZcWSJY/4Hg/stdk72fRiU9kGvt6tVFYA5KMS s3C4EM/u9u1/JrR1S/o1nwk2k7Qt8OQYgO2sI= Received: by 10.216.85.144 with SMTP id u16mr69836wee.3.1256578551507; Mon, 26 Oct 2009 10:35:51 -0700 (PDT) Received: from ?172.16.2.101? ([222.92.8.142]) by mx.google.com with ESMTPS id i6sm72313gve.2.2009.10.26.10.35.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 26 Oct 2009 10:35:50 -0700 (PDT) Subject: Re: [PATCH -v6 07/13] tracing: add dynamic function tracer support for MIPS From: Wu Zhangjin Reply-To: wuzhangjin@gmail.com To: rostedt@goodmis.org Cc: linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, Frederic Weisbecker , Thomas Gleixner , Ralf Baechle , Richard Sandiford , Nicholas Mc Guire , David Daney , Adam Nemet , Patrik Kluba In-Reply-To: <1256575500.26028.323.camel@gandalf.stny.rr.com> References: <747deea2f18d5ccffe842df95a9dd1c86251a958.1256569489.git.wuzhangjin@gmail.com> <3f47087b70a965fd679b17a59521671296457df1.1256569489.git.wuzhangjin@gmail.com> <07dc907ec62353b1aca99b2850d3b2e4b734189a.1256569489.git.wuzhangjin@gmail.com> <374da7039d2e1b97083edd8bcd7811356884d427.1256569489.git.wuzhangjin@gmail.com> <3c82af564d70be05b92687949ed134ce034bf8db.1256569489.git.wuzhangjin@gmail.com> <1256573175.26028.310.camel@gandalf.stny.rr.com> <1256574910.5642.228.camel@falcon> <1256575500.26028.323.camel@gandalf.stny.rr.com> Content-Type: text/plain Organization: DSLab, Lanzhou University, China Date: Tue, 27 Oct 2009 01:35:40 +0800 Message-Id: <1256578540.5642.283.camel@falcon> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 24532 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: wuzhangjin@gmail.com Precedence: bulk X-list: linux-mips On Mon, 2009-10-26 at 12:45 -0400, Steven Rostedt wrote: > On Tue, 2009-10-27 at 00:35 +0800, Wu Zhangjin wrote: > > > If remove the long jump, we at least to change the $mcount_regex in > > scripts/recordmcount.pl, the addr + 12 in arch/mips/include/asm/ftrace.h > > and the _mcount & ftrace_caller in mcount.S and the ftrace_make_nop & > > ftrace_make_call in arch/mips/kernel/ftrace.c back to the -v4 version. > > > > I think this method of supporting module is not that BAD, no obvious > > overhead added except the "lui...addiu..." and two more "nop" > > instructions. and it's very understandable, so, just use this version? > > You don't nop the lui and addiu do you? If you do you will crash the > machine. Not test it yet, Seems what you have mentioned in another thread: b 1f .... 1: is a good idea, it will only left one "lui" and one "b 1f" instruction there. (I'm sleepy now, the time is Tue Oct 27 01:34:51 CST 2009 in China, See you~~) Regards, Wu Zhangjin