[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <233dfaa6fadd5aa2fa7ac8511ed9ab98a5f2619c.1251146513.git.jbaron@redhat.com>
Date: Mon, 24 Aug 2009 17:40:18 -0400
From: Jason Baron <jbaron@...hat.com>
To: linux-kernel@...r.kernel.org, x86@...nel.org
Cc: lethal@...ux-sh.org, fweisbec@...il.com, mingo@...e.hu,
laijs@...fujitsu.com, rostedt@...dmis.org, peterz@...radead.org,
mathieu.desnoyers@...ymtl.ca, jiayingz@...gle.com,
mbligh@...gle.com, lizf@...fujitsu.com, jistone@...hat.com,
tglx@...utronix.de, hpa@...or.com
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@...hat.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists