aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/unistd_64.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-12-03 10:39:53 +0100
committerIngo Molnar <mingo@elte.hu>2008-12-08 15:47:15 +0100
commit241771ef016b5c0c83cd7a4372a74321c973c1e6 (patch)
tree5893d72f1721af34daee82f27449bd35c9f65363 /arch/x86/include/asm/unistd_64.h
parentperformance counters: documentation (diff)
downloadlinux-dev-241771ef016b5c0c83cd7a4372a74321c973c1e6.tar.xz
linux-dev-241771ef016b5c0c83cd7a4372a74321c973c1e6.zip
performance counters: x86 support
Implement performance counters for x86 Intel CPUs. It's simplified right now: the PERFMON CPU feature is assumed, which is available in Core2 and later Intel CPUs. The design is flexible to be extended to more CPU types as well. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include/asm/unistd_64.h')
-rw-r--r--arch/x86/include/asm/unistd_64.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/include/asm/unistd_64.h b/arch/x86/include/asm/unistd_64.h
index d2e415e6666f..53025feaf88d 100644
--- a/arch/x86/include/asm/unistd_64.h
+++ b/arch/x86/include/asm/unistd_64.h
@@ -653,7 +653,8 @@ __SYSCALL(__NR_dup3, sys_dup3)
__SYSCALL(__NR_pipe2, sys_pipe2)
#define __NR_inotify_init1 294
__SYSCALL(__NR_inotify_init1, sys_inotify_init1)
-
+#define __NR_perf_counter_open 295
+__SYSCALL(__NR_perf_counter_open, sys_perf_counter_open)
#ifndef __NO_STUBS
#define __ARCH_WANT_OLD_READDIR