[Top] [All Lists]

Re: [PATCH] ftrace porting of linux-2.6.29 for mips

To: Chris Dearman <>
Subject: Re: [PATCH] ftrace porting of linux-2.6.29 for mips
From: Wu Zhangjin <>
Date: Thu, 16 Apr 2009 09:40:15 +0800
Cc: Ralf Baechle <>,
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; 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=Ots2vzT39BRfGlsn5D6sVUKoDSGtTd88gdsqJjAfsQw=; b=u8taylewXnpm3bWGBJFMMNPRO4R2R9NsODq5Wac9JpO4N/rzf93ESmH98n7kMlm30U uwjgczdS67PQalUhJUr8nQ5nPt0SqvVlhLKnVSzEvD9uS4PQerMMh4be5BXE3CqbfI+7 fHPmp2jnJxamDDZpNtQpvZSxDCMQT/z1eykrE=
Domainkey-signature: a=rsa-sha1; c=nofws;; 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=wpPCGNWSjG7k9zntIympnf/aSzsFtGTcsFY9WgL1igelwWfgGp1DaAmrirWT7v0Fu5 6dWqZR79/5iogAIDf6x/1mMe9Qt4bUk3NH3eC2ooYUz+hfR2ilNE1L0OIo0FcwIKUQ82 Ozcthm9YHjClcwkXU+7lFKkH/Ejzaiqv+O5w8=
In-reply-to: <>
Organization: DSLab, Lanzhou University, China
Original-recipient: rfc822;
References: <> <> <> <> <> <> <> <> <> <>
On Wed, 2009-04-15 at 10:34 -0700, Chris Dearman wrote:
> Zhang Le wrote:
> > I got ftrace working on fuloong 2f box, finally.
> > 
> > The patch could be get here:
> >;h=refs/heads/linux-2.6.29-stable-ftrace-from-wu
> > 
> > It is the second last patch in the above git repo.
> I pulled this patch into my local tree to try it out. The attached patch 
> removes spurious warnings about linking pic and non-pic object files.
> It might be better to pass KBUILD_CFLAGS into the script to get the same 
> build options as the rest of the kernel. Was there a reason not to do this?

This is a "history problem", for not modify the original source code of
scripts/ a lot, I just added a line to pass 
the "endian" argument in from scripts/

cmd_record_mcount = perl $(srctree)/scripts/ "$(ARCH)" \
+     "$(if $(CONFIG_CPU_BIG_ENDIAN),big,little)" \
     "$(if $(CONFIG_64BIT),64,32)" \
     "$(OBJDUMP)" "$(OBJCOPY)" "$(CC)" "$(LD)" "$(NM)" "$(RM)" "$(MV)"

but current method is not flexible, currently, the other compile/link
options are ignored or hard-coded there. so, a substitution of
implementation method should be considered. but pass KBUILD_CFLAGS seems
not enough for we need make up the options for cc, ld, objdump, objcopy
tools in scripts/ perhaps CFLAGS, LDFLAGS and something
else should be passed from scripts/ to
scripts/ respectively.  

Wu Zhangjin

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