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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

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@xxxxxxxxxxxxxxx is not an alias of
linux-mips@xxxxxxxxxxxxxx, since I haven't seen our previous emails appear in
linux-mips ML's archive. So I have added linux-mips@xxxxxxxxxxxxxx to CC list.

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

> 
> $ diffstat patch-2.6.29-ftrace4mips-fix1
>  arch/mips/Kconfig              |    5
>  arch/mips/Makefile             |    2
>  arch/mips/include/asm/ftrace.h |   68 +++++++
>  arch/mips/kernel/Makefile      |   12 +
>  arch/mips/kernel/csrc-r4k.c    |    2
>  arch/mips/kernel/ftrace.c      |  382 +++++++++++++++++++++++++++++++++++++++++
>  arch/mips/kernel/mcount.S      |  224 ++++++++++++++++++++++++
>  arch/mips/kernel/mips_ksyms.c  |    5
>  arch/mips/kernel/vmlinux.lds   |  218 +++++++++++++++++++++++
>  arch/mips/kernel/vmlinux.lds.S |    1
>  include/linux/clocksource.h    |    4
>  kernel/sched_clock.c           |    2
>  kernel/time/tick-sched.c       |    2
>  kernel/trace/ring_buffer.c     |   22 ++
>  scripts/Makefile.build         |    1
>  scripts/recordmcount.pl        |   27 ++
>  16 files changed, 968 insertions(+), 9 deletions(-)
> 
> 
> -- 
> 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@xxxxxxxxx         http://falcon.oss.lzu.edu.cn
> Address:Tianshui South Road 222,Lanzhou,P.R.China    Zip Code:730000
> Tel:+86-931-8912025



> 
> $ diffstat patch-2.6.29-ftrace4mips-fix1
>  arch/mips/Kconfig              |    5
>  arch/mips/Makefile             |    2
>  arch/mips/include/asm/ftrace.h |   68 +++++++
>  arch/mips/kernel/Makefile      |   12 +
>  arch/mips/kernel/csrc-r4k.c    |    2
>  arch/mips/kernel/ftrace.c      |  382 +++++++++++++++++++++++++++++++++++++++++
>  arch/mips/kernel/mcount.S      |  224 ++++++++++++++++++++++++
>  arch/mips/kernel/mips_ksyms.c  |    5
>  arch/mips/kernel/vmlinux.lds   |  218 +++++++++++++++++++++++
>  arch/mips/kernel/vmlinux.lds.S |    1
>  include/linux/clocksource.h    |    4
>  kernel/sched_clock.c           |    2
>  kernel/time/tick-sched.c       |    2
>  kernel/trace/ring_buffer.c     |   22 ++
>  scripts/Makefile.build         |    1
>  scripts/recordmcount.pl        |   27 ++
>  16 files changed, 968 insertions(+), 9 deletions(-)
> 
> 
> -- 
> 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@xxxxxxxxx         http://falcon.oss.lzu.edu.cn
> Address:Tianshui South Road 222,Lanzhou,P.R.China    Zip Code:730000
> Tel:+86-931-8912025




[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux