From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Mon, 26 Oct 2009 16:14:09 +0100 (CET) Received: from qw-out-1920.google.com ([74.125.92.145]:7256 "EHLO qw-out-1920.google.com" rhost-flags-OK-OK-OK-OK) by ftp.linux-mips.org with ESMTP id S1493114AbZJZPNq (ORCPT ); Mon, 26 Oct 2009 16:13:46 +0100 Received: by qw-out-1920.google.com with SMTP id 5so1740905qwc.54 for ; Mon, 26 Oct 2009 08:13:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=pE7AA1KmQGrQsHqcbelzRxcBLPXJMTHIBkR/UerL6QM=; b=LrDWRg98OA7N+muab2cUIsONbpjoXyRXETriXjDE/kgkj6Yrx9YODa2vWiWL0ragC2 XCRepnsJIeDfgiNZnoGssP89qWcD0/rVpHAdLNWyltQHGD8w2FNzpMWWVmEfPixY5Dk6 esYJOK+dJ4oA3STxRATgPIBq6QGFL88V079v4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=reejxIt+RCntPOEb72K0WFSD+fUViaSCWI0Dfjb1WUWBR4B4lF4Z0LL6ukhtkuGN4z AAJnFxKD6SCzYVhFqG2Quj90wYPG0ULgSZLV+KsE0SwkhNVD63HBlwaVRBTLpyLHmzEC K4YEH/AoPW6qBcFJMCkbGb8I48D2BZh+o3F58= Received: by 10.224.61.148 with SMTP id t20mr7295225qah.253.1256570025371; Mon, 26 Oct 2009 08:13:45 -0700 (PDT) Received: from localhost.localdomain ([222.92.8.142]) by mx.google.com with ESMTPS id 21sm3876989qyk.0.2009.10.26.08.13.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 26 Oct 2009 08:13:44 -0700 (PDT) From: Wu Zhangjin To: linux-mips@linux-mips.org, linux-kernel@vger.kernel.org Cc: Wu Zhangjin , Frederic Weisbecker , rostedt@goodmis.org, Thomas Gleixner , Ralf Baechle , Richard Sandiford , Nicholas Mc Guire , David Daney , Adam Nemet , Patrik Kluba Subject: [PATCH -v6 00/13] ftrace for MIPS Date: Mon, 26 Oct 2009 23:13:17 +0800 Message-Id: X-Mailer: git-send-email 1.6.2.1 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: 24508 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 This -v6 revision incorporates the feedbacks of -v5 revision from Frederic Weisbecker, the most important changes include: 1. tracing: add IRQENTRY_EXIT section for MIPS Tag the mips irq entry functions with "__irq_entry". 2. "notrace" relative patches To avoid hanging on mips_timecounter_read() when using function graph tracer, we need not to trace the subroutines called by mips_timecounter_read(). for the mips specific subroutines, we use __notrac_funcgraph to tag them. For the common timecounter_read_* functions, we add a new __arch_notrace flag/macro to include/linux/ftrace.h for the arch specific requirement, and use it to tag them. and then we define the macro in arch/mips/include/asm/ftrace.h to make it take effect for MIPS. All of the latest update have been pushed into: git://dev.lemote.com/rt4ls.git linux-mips/dev/ftrace-upstream Thanks & Regards, Wu Zhangjin Wu Zhangjin (13): tracing: convert trace_clock_local() as weak function tracing: add mips_timecounter_read() for MIPS tracing: add MIPS specific trace_clock_local() tracing: add static function tracer support for MIPS tracing: enable HAVE_FUNCTION_TRACE_MCOUNT_TEST for MIPS tracing: add an endian argument to scripts/recordmcount.pl tracing: add dynamic function tracer support for MIPS tracing: add IRQENTRY_EXIT section for MIPS tracing: Add __arch_notrace for arch specific requirement tracing: not trace the timecounter_read* in kernel/time/clocksource.c tracing: not trace mips_timecounter_read() for MIPS tracing: add function graph tracer support for MIPS tracing: add dynamic function graph tracer for MIPS arch/mips/Kconfig | 5 + arch/mips/Makefile | 4 + arch/mips/include/asm/ftrace.h | 42 +++++++++- arch/mips/include/asm/irq.h | 29 +------ arch/mips/include/asm/time.h | 19 ++++ arch/mips/kernel/Makefile | 9 ++ arch/mips/kernel/csrc-r4k.c | 42 +++++++++ arch/mips/kernel/ftrace.c | 190 ++++++++++++++++++++++++++++++++++++++++ arch/mips/kernel/irq.c | 34 +++++++ arch/mips/kernel/mcount.S | 177 +++++++++++++++++++++++++++++++++++++ arch/mips/kernel/mips_ksyms.c | 5 + arch/mips/kernel/smp.c | 3 +- arch/mips/kernel/smtc.c | 21 +++-- arch/mips/kernel/time.c | 2 + arch/mips/kernel/trace_clock.c | 33 +++++++ arch/mips/kernel/vmlinux.lds.S | 1 + arch/mips/sgi-ip22/ip22-int.c | 3 +- arch/mips/sgi-ip22/ip22-time.c | 3 +- include/linux/ftrace.h | 19 ++++ kernel/time/clocksource.c | 5 +- kernel/trace/trace_clock.c | 2 +- scripts/Makefile.build | 1 + scripts/recordmcount.pl | 44 +++++++++- 23 files changed, 649 insertions(+), 44 deletions(-) create mode 100644 arch/mips/kernel/ftrace.c create mode 100644 arch/mips/kernel/mcount.S create mode 100644 arch/mips/kernel/trace_clock.c