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>
This commit is contained in:
Frederic Weisbecker
2009-10-17 17:12:33 +02:00
committed by Ingo Molnar
parent 11018201b8
commit 5a116dd279
14 changed files with 156 additions and 5 deletions

View File

@ -0,0 +1,6 @@
#include "../../../../include/asm-generic/bitops/__fls.h"
#include "../../../../include/asm-generic/bitops/fls.h"
#include "../../../../include/asm-generic/bitops/fls64.h"
#include "../../../../include/asm-generic/bitops/__ffs.h"
#include "../../../../include/asm-generic/bitops/ffz.h"
#include "../../../../include/asm-generic/bitops/hweight.h"

View File

@ -0,0 +1,2 @@
#include "../asm/types.h"
#include "../../../../include/linux/swab.h"

View File

@ -0,0 +1 @@
/* stub */

View File

@ -0,0 +1,17 @@
#ifndef PERF_ASM_TYPES_H_
#define PERF_ASM_TYPES_H_
#include <linux/compiler.h>
#include "../../types.h"
#include <sys/types.h>
/* CHECKME: Not sure both always match */
#define BITS_PER_LONG __WORDSIZE
typedef u64 __u64;
typedef u32 __u32;
typedef u16 __u16;
typedef u8 __u8;
typedef s64 __s64;
#endif /* PERF_ASM_TYPES_H_ */

View File

@ -0,0 +1,14 @@
#ifndef _PERF_ASM_UACCESS_H_
#define _PERF_ASM_UACCESS_H_
#define __get_user(src, dest) \
({ \
(src) = *dest; \
0; \
})
#define get_user __get_user
#define access_ok(type, addr, size) 1
#endif