Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752954AbZJZPPn (ORCPT ); Mon, 26 Oct 2009 11:15:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752858AbZJZPPk (ORCPT ); Mon, 26 Oct 2009 11:15:40 -0400 Received: from qw-out-2122.google.com ([74.125.92.24]:4631 "EHLO qw-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752935AbZJZPPi (ORCPT ); Mon, 26 Oct 2009 11:15:38 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=FrXWXDGh/g1N+F0/7fxZ0+KajJ+ExinBA+ryBwPi2Wzb0xzKyIpI9vjT6IUPozpVnY blkKFRpNpTYlqIPYiBVpUOcf73caIkbULQo4gXRE3aEGJVN0cxtzaL1EMAt5Akl4mMfl UaesJpSpWJ8L+sQXaiBchBK+oxzE0BGqXalrg= 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 10/13] tracing: not trace the timecounter_read* in kernel/time/clocksource.c Date: Mon, 26 Oct 2009 23:13:27 +0800 Message-Id: <4e022c090601c3585a8d69a54deade2a53f93e8c.1256569489.git.wuzhangjin@gmail.com> X-Mailer: git-send-email 1.6.2.1 In-Reply-To: <07e35715c3af78e3c4b537940277240ed031365a.1256569489.git.wuzhangjin@gmail.com> References: <747deea2f18d5ccffe842df95a9dd1c86251a958.1256569489.git.wuzhangjin@gmail.com> <3f47087b70a965fd679b17a59521671296457df1.1256569489.git.wuzhangjin@gmail.com> <07dc907ec62353b1aca99b2850d3b2e4b734189a.1256569489.git.wuzhangjin@gmail.com> <374da7039d2e1b97083edd8bcd7811356884d427.1256569489.git.wuzhangjin@gmail.com> <3c82af564d70be05b92687949ed134ce034bf8db.1256569489.git.wuzhangjin@gmail.com> <07e35715c3af78e3c4b537940277240ed031365a.1256569489.git.wuzhangjin@gmail.com> In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1945 Lines: 58 Some platforms(i.e. MIPS) need these two functions to get the precise timestamp, we use __arch_notrace(added in the last patch) to annotate it. By default, __arch_notrace is empty, so, this patch have no influence to the original functions, but if you really not need to trace them, just add the following line into the arch specific ftrace.h: #define __arch_notrace If only want to enable it for function graph tracer, add these lines instead. #ifdef CONFIG_FUNCTION_GRAPH_TRACER #define __arch_notrace #endif Signed-off-by: Wu Zhangjin --- kernel/time/clocksource.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c index 5e18c6a..91acdf7 100644 --- a/kernel/time/clocksource.c +++ b/kernel/time/clocksource.c @@ -30,6 +30,7 @@ #include /* for spin_unlock_irq() using preempt_count() m68k */ #include #include +#include void timecounter_init(struct timecounter *tc, const struct cyclecounter *cc, @@ -52,7 +53,7 @@ EXPORT_SYMBOL(timecounter_init); * The first call to this function for a new time counter initializes * the time tracking and returns an undefined result. */ -static u64 timecounter_read_delta(struct timecounter *tc) +static u64 __arch_notrace timecounter_read_delta(struct timecounter *tc) { cycle_t cycle_now, cycle_delta; u64 ns_offset; @@ -72,7 +73,7 @@ static u64 timecounter_read_delta(struct timecounter *tc) return ns_offset; } -u64 timecounter_read(struct timecounter *tc) +u64 __arch_notrace timecounter_read(struct timecounter *tc) { u64 nsec; -- 1.6.2.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/