linux-mips
[Top] [All Lists]

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

To: wu zhangjin <wuzhangjin@gmail.com>, Ralf Baechle <ralf@linux-mips.org>, linux-mips@linux-mips.org
Subject: Re: [PATCH] ftrace porting of linux-2.6.29 for mips
From: wu zhangjin <wuzhangjin@gmail.com>
Date: Fri, 3 Apr 2009 22:53:25 +0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=uNoVLzsVd0DLqcQ+k/J9ByIlWLd9JheMbDotl8UglIo=; b=gq8IycvWYklaK1L4+X6iIdjQM83hVYVZd8O09B/ElzaEUQ+6FfGsbLV1I50cvDq3pN LbeMHVjDEZAeCvqOYBFoRYj5j1pE1ZeJwQwmCIPKC+FdTUsNCT/9rksifxbZxvKPAxUE nYmyF102yj+5uJZzDlsv9aB6dDwWff0tUcWtY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=kptcrwzDgSSPY4EBr97wNhNACXZL8ZM7WCAXGfQYm+ugRBm8njYQumR7Yjhr5/MJg/ 2+Ug5w4zLBuE4Ovxk4VjpwKAFP4i6JVBYoPmnagSpWQZz2/OAu2I3q3d1rtiCtxaVY0Y BjpKI5DWBJeOhzTwD0IimmHZXRkhY6jW8PsAI=
In-reply-to: <20090403141158.GA27751@adriano.hkcable.com.hk>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <b00321320904021847w5ab3acb6nd1cd554c251ef8f6@mail.gmail.com> <20090403113315.GC6629@adriano.hkcable.com.hk> <b00321320904030503w8fe0165t2aded6727f35e24c@mail.gmail.com> <b00321320904030551p774d295lce3581c23d9d8c26@mail.gmail.com> <20090403141158.GA27751@adriano.hkcable.com.hk>
Sender: linux-mips-bounce@linux-mips.org
On Fri, Apr 3, 2009 at 10:11 PM, Zhang Le <r0bertz@gentoo.org> wrote:
> On 20:51 Fri 03 Apr     , wu zhangjin wrote:
>> okay, please check the attachment, thx!
>>
>> including:
>>
>> 1. add the HAVE_FUNCTION_TRACE_MCOUNT_TEST line in arch/mips/Kconfig
>> 2. remove the useless registers save & restore operation in mcount.S
>> 3. and add a "notrace" flag to tick_do_update_jiffies64 to avoid the
>> nmi exception problem.
>
> Have you tested the latest patch? Any working .config file?
> I just tested it, seems can't boot.

yes, i have tested it on qemu/malta, the attachment include a
configuration & an init ram fs: initrd.gz

boot it:

$ qemu-system-mipsel -kernel vmlinux-qemu-malta-ftrace -initrd
qemu-malta-initrd.gz -append "root=/dev/ram0 init=/bin/sh
console=ttyS0 ramdisk_size=3000"  -nographic -M malta -hda /dev/zero

and also, i just test it on loongson2f(fuloong 6003) with the
configuration file: defconfig-fl-rt-ftrace, but configured only as
serial port debugging mode via a minicom, so, you need to add the
other kernel modules if not have a serial
port :-(

>
> I have pushed the patch, along with my fix, to my git tree, so that
> the patch could be further polished. It is in linux-2.6.29-stable-ftrace 
> branch.
>
> http://repo.or.cz/w/linux-2.6/linux-loongson.git
>
> BTW, it seems linux-mips@vger.kernel.org is not an alias of
> linux-mips@linux-mips.org, since I haven't seen our previous emails appear in
> linux-mips ML's archive. So I have added linux-mips@linux-mips.org to CC list.
>

ooh, it's my fault :-) linux-mips@linux-mips.org is the right one~~

> When this patch is more ready to be included, we'd better include LKML in CC
> list, too. Because there are more ftrace gurus which could give advices to 
> this
> patch.
>
> Zhang, Le
> http://zhangle.is-a-geek.org
>
>>

-- 
Studying engineer. Wu Zhangjin
Lanzhou University      http://www.lzu.edu.cn
Distributed & Embedded System Lab      http://dslab.lzu.edu.cn
School of Information Science and Engeneering         http://xxxy.lzu.edu.cn
wuzhangjin@gmail.com         http://falcon.oss.lzu.edu.cn
Address:Tianshui South Road 222,Lanzhou,P.R.China    Zip Code:730000
Tel:+86-931-8912025

Attachment: qemu_malta_defconfig_ftrace
Description: Binary data

Attachment: qemu-malta-initrd.gz
Description: GNU Zip compressed data

Attachment: defconfig-fl-rt-ftrace
Description: Binary data

Attachment: patch-2.6.29-ftrace4mips-fix1
Description: Binary data

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