From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Fri, 29 May 2009 17:06:40 +0100 (BST) Received: from mail-pz0-f202.google.com ([209.85.222.202]:58882 "EHLO mail-pz0-f202.google.com" rhost-flags-OK-OK-OK-OK) by ftp.linux-mips.org with ESMTP id S20024710AbZE2QG2 (ORCPT ); Fri, 29 May 2009 17:06:28 +0100 Received: by pzk40 with SMTP id 40so5471249pzk.22 for ; Fri, 29 May 2009 09:06:21 -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=evjW5GMn719iil/rxOfV9/VzDElPyRvUzNaa1oEhX9c=; b=fvR/QdL4zney0t/8XLlFq87BgUwac5SaGQChvJadvR4r1fHvG16DYX3m4bvsm92uu5 xK9LE10uyT7Dv+p2qrq92YD4hVxV3nA6zJjnYfgxjouHFDr1WVwVq4EMo3gccpsGr+s6 9rv9LiXMsKUbDhyjNbSVsDdz/2WGNwz3xQnWw= 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=OwbyrvpEb0L9JpQpW5ttPB+szLt1eINn9NCCcu5lweDhYmQtNXIg2qzkAusGMh99T3 r6J+AG4AwTJFotqLNbxGGxbwOyEG9v65MWmP9KcBH1ApQ5RBZWFndK9JjI4E1ToRgtQu 12ADafKeZF3HqWoHiF4QR0ym+nEKAkDV3Alcw= Received: by 10.114.80.18 with SMTP id d18mr4188259wab.147.1243613180797; Fri, 29 May 2009 09:06:20 -0700 (PDT) Received: from ?192.168.1.100? ([219.246.59.144]) by mx.google.com with ESMTPS id k35sm2333318waf.22.2009.05.29.09.06.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 29 May 2009 09:06:18 -0700 (PDT) Subject: Re: [PATCH v2 2/6] mips dynamic function tracer support From: Wu Zhangjin Reply-To: wuzhangjin@gmail.com To: Steven Rostedt Cc: linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, Ralf Baechle , Ingo Molnar , Andrew Morton , Frederic Weisbecker , Thomas Gleixner , Nicholas Mc Guire In-Reply-To: References: Content-Type: text/plain Organization: DSLab, Lanzhou University, China Date: Sat, 30 May 2009 00:06:06 +0800 Message-Id: <1243613166.18071.1.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: 23063 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 Fri, 2009-05-29 at 11:24 -0400, Steven Rostedt wrote: > On Fri, 29 May 2009, wuzhangjin@gmail.com wrote: > > diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl > > index 409596e..a5d2ace 100755 > > --- a/scripts/recordmcount.pl > > +++ b/scripts/recordmcount.pl > > @@ -213,6 +213,17 @@ if ($arch eq "x86_64") { > > if ($is_module eq "0") { > > $cc .= " -mconstant-gp"; > > } > > + > > +} elsif ($arch eq "mips") { > > + $mcount_regex = "^\\s*([0-9a-fA-F]+):.*\\s_mcount\$"; > > + $ld .= " -melf".$bits."btsmip"; > > + > > + $cc .= " -mno-abicalls -fno-pic "; > > + > > + if ($bits == 64) { > > + $type = ".dword"; > > + } > > + > > } else { > > die "Arch $arch is not supported with CONFIG_FTRACE_MCOUNT_RECORD"; > > } > > @@ -441,12 +452,12 @@ if ($#converts >= 0) { > > # > > # Step 5: set up each local function as a global > > # > > - `$objcopy $globallist $inputfile $globalobj`; > > + `$objcopy $globallist $inputfile $globalobj 2>&1 >/dev/null`; > > > > # > > # Step 6: Link the global version to our list. > > # > > - `$ld -r $globalobj $mcount_o -o $globalmix`; > > + `$ld -r $globalobj $mcount_o -o $globalmix 2>&1 >/dev/null`; > > We still need to find out why these are giving errors. I don't like the > idea of hiding errors that might be useful. The better way is to change > the code to avoid having any warnings or errors. get it :-) I'm tuning it currently. thanks! Wu Zhangjin > > -- Steve > > > > > > # > > # Step 7: Convert the local functions back into local symbols > > @@ -454,7 +465,7 @@ if ($#converts >= 0) { > > `$objcopy $locallist $globalmix $inputfile`; > > > > # Remove the temp files > > - `$rm $globalobj $globalmix`; > > + `$rm $globalobj $globalmix 2>&1 >/dev/null`; > > > > } else { > > > > -- > > 1.6.0.4 > > > >