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:
committed by
Ingo Molnar
parent
11018201b8
commit
5a116dd279
6
tools/perf/util/include/asm/bitops.h
Normal file
6
tools/perf/util/include/asm/bitops.h
Normal 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"
|
2
tools/perf/util/include/asm/byteorder.h
Normal file
2
tools/perf/util/include/asm/byteorder.h
Normal file
@ -0,0 +1,2 @@
|
||||
#include "../asm/types.h"
|
||||
#include "../../../../include/linux/swab.h"
|
1
tools/perf/util/include/asm/swab.h
Normal file
1
tools/perf/util/include/asm/swab.h
Normal file
@ -0,0 +1 @@
|
||||
/* stub */
|
17
tools/perf/util/include/asm/types.h
Normal file
17
tools/perf/util/include/asm/types.h
Normal 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_ */
|
14
tools/perf/util/include/asm/uaccess.h
Normal file
14
tools/perf/util/include/asm/uaccess.h
Normal 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
|
Reference in New Issue
Block a user