diff options
author | Jason Baron <[email protected]> | 2009-08-24 17:40:14 -0400 |
---|---|---|
committer | Frederic Weisbecker <[email protected]> | 2009-08-26 21:29:55 +0200 |
commit | dd86dda24cc1dc70031a7d9250dc3c0c430a50e2 (patch) | |
tree | 3f890df69add4161b72378f0625cef9376486eb3 | |
parent | cc3b13c11c567c69a6356be98d0c03ff11541d5c (diff) |
tracing: Define NR_syscalls for x86 (32)
Add a NR_syscalls #define for x86. This is used in the syscall events
tracing code. Todo: make it dynamic like x86_64.
NR_syscalls is the usual name used to determine the number of syscalls
supported by the current arch. We want to unify the use of this number
across archs that support the syscall tracing. This also prepare to move
some of the arch code to core code in the syscall tracing area.
Signed-off-by: Jason Baron <[email protected]>
Cc: Paul Mundt <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Lai Jiangshan <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Cc: Jiaying Zhang <[email protected]>
Cc: Martin Bligh <[email protected]>
Cc: Li Zefan <[email protected]>
Cc: Josh Stone <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: H. Peter Anwin <[email protected]>
Cc: Hendrik Brueckner <[email protected]>
Cc: Heiko Carstens <[email protected]>
LKML-Reference: <0f33c0f96d198fccc3ddd9ff7f5334ff5cb42706.1251146513.git.jbaron@redhat.com>
Signed-off-by: Frederic Weisbecker <[email protected]>
-rw-r--r-- | arch/x86/include/asm/unistd_32.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/unistd_32.h b/arch/x86/include/asm/unistd_32.h index 732a30706153..8deaada61bc8 100644 --- a/arch/x86/include/asm/unistd_32.h +++ b/arch/x86/include/asm/unistd_32.h @@ -345,6 +345,8 @@ #ifdef __KERNEL__ +#define NR_syscalls 337 + #define __ARCH_WANT_IPC_PARSE_VERSION #define __ARCH_WANT_OLD_READDIR #define __ARCH_WANT_OLD_STAT |