linux-mips
[Top] [All Lists]

Re: [PATCH v7 04/17] tracing: add static function tracer support for MIP

To: linux-mips@linux-mips.org
Subject: Re: [PATCH v7 04/17] tracing: add static function tracer support for MIPS
From: Wu Zhangjin <wuzhangjin@gmail.com>
Date: Thu, 12 Nov 2009 19:06:05 +0800
Cc: linux-kernel@vger.kernel.org, zhangfx@lemote.com, zhouqg@gmail.com, Ralf Baechle <ralf@linux-mips.org>, rostedt@goodmis.org, Frederic Weisbecker <fweisbec@gmail.com>, Ingo Molnar <mingo@elte.hu>, Nicholas Mc Guire <der.herr@hofr.at>, David Daney <ddaney@caviumnetworks.com>, Richard Sandiford <rdsandiford@googlemail.com>, Patrik Kluba <kpajko79@gmail.com>, Thomas Gleixner <tglx@linutronix.de>, Michal Simek <monstr@monstr.eu>
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=sJLZBxUAEEKTRK7KlOedWuGY6rArQHaIocpxsg1DMY4=; b=goSJ31a3s2+OZLfdtkb1N9/vj3fpadPiWPWDWWVviAZHortpNXjNRDm2OWK5g5oFXK YQVHM1kiism9emGBdalg953TTMcyk0ptykkk61h7tFiFvSsY9ehkg9QBxW3iCuq4zMHf WVIPqpD9nWyXhUwNy8egnfB9/AsTNwdksobFU=
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=iAcn9J5I7Iyx4FEZtfKu6hJoyzmTuku5ZKoFWZZ1IzvFzusiWJHBCdBHkU55nAuE/N VAtfBhCmAXm9LBqkBCIjqm2U8xx2pQME0LELfrjrRAG/s/beaJDablRMjBnGdTqrTqHU mn3gzo8G8r5b8CZT4d3gCXRlQXdgz2YxIPnS0=
In-reply-to: <cefe074f5eb3cfbc2e0bb41b0c1f61fcd0190d90.1257779502.git.wuzhangjin@gmail.com>
Organization: DSLab, Lanzhou University, China
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <9dc81a7a9e5a292cccdf465c533a2b08d19d6021.1257779502.git.wuzhangjin@gmail.com> <b99c08397d9ff92ac5a72bda9131df41b702fc71.1257779502.git.wuzhangjin@gmail.com> <8f579e2cece16cd22358a4ec143ef6a8c462639b.1257779502.git.wuzhangjin@gmail.com> <cefe074f5eb3cfbc2e0bb41b0c1f61fcd0190d90.1257779502.git.wuzhangjin@gmail.com>
Reply-to: wuzhangjin@gmail.com
Sender: linux-mips-bounce@linux-mips.org
Hi, All

On Mon, 2009-11-09 at 23:31 +0800, Wu Zhangjin wrote:
[...]
> 
> And to support module tracing, we need to enable -mlong-calls for the
> long call from modules space to kernel space. -mlong-calls load the
> address of _mcount to a register and then jump to it, so, the address is
> allowed to be 32bit long, but without -mlong-calls, for the instruction
> "jal _mcount" only left 26bit for the address of _mcount, which is not
> enough for jumping from the module space to kernel space.
[...]
> diff --git a/arch/mips/Makefile b/arch/mips/Makefile
[...]
> +else
> +cflags-y := -mlong-calls
> +endif

Just made dynamic ftracer work without the above patch.

Will send it out as v8 later.

any more feedbacks to this v7 patchset?

Thanks & Regards,
        Wu Zhangjin


<Prev in Thread] Current Thread [Next in Thread>