lkml.org 
[lkml]   [2009]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 2/4] Add NR_syscalls for x86_64
Add a dynamic definition of NR_syscalls for x86_64. This is used in the 
syscall events tracing code.

Signed-off-by: Jason Baron <jbaron@redhat.com>

---
include/linux/ftrace.h | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
index dc3b132..3bd94ee 100644
--- a/include/linux/ftrace.h
+++ b/include/linux/ftrace.h
@@ -14,6 +14,11 @@

#include <asm/ftrace.h>

+#ifdef CONFIG_X86_64
+#include <asm/asm-offsets.h>
+#define NR_syscalls (__NR_syscall_max + 1)
+#endif
+
#ifdef CONFIG_FUNCTION_TRACER

extern int ftrace_enabled;
--
1.6.2.5


\
 
 \ /
  Last update: 2009-08-24 23:49    [W:0.333 / U:0.260 seconds]
©2003-2014 Jasper Spaans. Advertise on this site