aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/include/asm/uaccess.h
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2009-10-17 11:12:33 -0400
committerIngo Molnar <mingo@elte.hu>2009-10-19 03:26:34 -0400
commit5a116dd2797677cad48fee2f42267e3cb69f5502 (patch)
tree94bc08d8c234e26c8b8caa156815964e0a56f159 /tools/perf/util/include/asm/uaccess.h
parent11018201b831e19304c0d639f105ad6c27e120b1 (diff)
perf tools: Use kernel bitmap library
Use the kernel bitmap library for internal perf tools uses. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Steven Rostedt <rostedt@goodmis.org> LKML-Reference: <1255792354-11304-1-git-send-email-fweisbec@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/include/asm/uaccess.h')
-rw-r--r--tools/perf/util/include/asm/uaccess.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/perf/util/include/asm/uaccess.h b/tools/perf/util/include/asm/uaccess.h
new file mode 100644
index 000000000000..d0f72b8fcc35
--- /dev/null
+++ b/tools/perf/util/include/asm/uaccess.h
@@ -0,0 +1,14 @@
1#ifndef _PERF_ASM_UACCESS_H_
2#define _PERF_ASM_UACCESS_H_
3
4#define __get_user(src, dest) \
5({ \
6 (src) = *dest; \
7 0; \
8})
9
10#define get_user __get_user
11
12#define access_ok(type, addr, size) 1
13
14#endif