[PATCH 05/20 -v5] add notrace annotations to vsyscall.

Previous thread: [PATCH 07/20 -v5] handle accurate time keeping over long delays by Steven Rostedt on Wednesday, January 23, 2008 - 12:02 pm. (1 message)

Next thread: [PATCH 01/20 -v5] printk - dont wakeup klogd with interrupts disabled by Steven Rostedt on Wednesday, January 23, 2008 - 12:02 pm. (19 messages)
To: LKML <linux-kernel@...>
Cc: Ingo Molnar <mingo@...>, Linus Torvalds <torvalds@...>, Andrew Morton <akpm@...>, Peter Zijlstra <a.p.zijlstra@...>, Christoph Hellwig <hch@...>, Mathieu Desnoyers <mathieu.desnoyers@...>, Gregory Haskins <ghaskins@...>, Arnaldo Carvalho de Melo <acme@...>, Thomas Gleixner <tglx@...>, Tim Bird <tim.bird@...>, Sam Ravnborg <sam@...>, Frank Ch. Eigler <fche@...>, Jan Kiszka <jan.kiszka@...>, John Stultz <johnstul@...>, Arjan van de Ven <arjan@...>, Steven Rostedt <srostedt@...>
Date: Wednesday, January 23, 2008 - 12:02 pm

Add the notrace annotations to some of the vsyscall functions.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
---
arch/x86/kernel/vsyscall_64.c | 3 ++-
arch/x86/vdso/vclock_gettime.c | 15 ++++++++-------
arch/x86/vdso/vgetcpu.c | 3 ++-
include/asm-x86/vsyscall.h | 3 ++-
4 files changed, 14 insertions(+), 10 deletions(-)

Index: linux-mcount.git/arch/x86/kernel/vsyscall_64.c
===================================================================
--- linux-mcount.git.orig/arch/x86/kernel/vsyscall_64.c 2008-01-23 10:26:31.000000000 -0500
+++ linux-mcount.git/arch/x86/kernel/vsyscall_64.c 2008-01-23 10:26:49.000000000 -0500
@@ -42,7 +42,8 @@
#include <asm/topology.h>
#include <asm/vgtod.h>

-#define __vsyscall(nr) __attribute__ ((unused,__section__(".vsyscall_" #nr)))
+#define __vsyscall(nr) \
+ __attribute__ ((unused, __section__(".vsyscall_" #nr))) notrace
#define __syscall_clobber "r11","rcx","memory"
#define __pa_vsymbol(x) \
({unsigned long v; \
Index: linux-mcount.git/arch/x86/vdso/vclock_gettime.c
===================================================================
--- linux-mcount.git.orig/arch/x86/vdso/vclock_gettime.c 2008-01-23 10:26:31.000000000 -0500
+++ linux-mcount.git/arch/x86/vdso/vclock_gettime.c 2008-01-23 10:26:49.000000000 -0500
@@ -24,7 +24,7 @@

#define gtod vdso_vsyscall_gtod_data

-static long vdso_fallback_gettime(long clock, struct timespec *ts)
+notrace static long vdso_fallback_gettime(long clock, struct timespec *ts)
{
long ret;
asm("syscall" : "=a" (ret) :
@@ -32,7 +32,7 @@ static long vdso_fallback_gettime(long c
return ret;
}

-static inline long vgetns(void)
+notrace static inline long vgetns(void)
{
long v;
cycles_t (*vread)(void);
@@ -41,7 +41,7 @@ static inline long vgetns(void)
return (v * gtod->clock.mult) >> gtod->clock.shift;
}

-static noinline int do_realtime(struct timespec *ts)
+notrace static noinline int do_realtime(struct timesp...

Previous thread: [PATCH 07/20 -v5] handle accurate time keeping over long delays by Steven Rostedt on Wednesday, January 23, 2008 - 12:02 pm. (1 message)

Next thread: [PATCH 01/20 -v5] printk - dont wakeup klogd with interrupts disabled by Steven Rostedt on Wednesday, January 23, 2008 - 12:02 pm. (19 messages)