Move to using tools/include/ instead. Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: acme@redhat.com Link: http://lkml.kernel.org/r/20170531003747.10557-2-alexander.levin@verizon.com Signed-off-by: Ingo Molnar <mingo@kernel.org>tirimbino
parent
4ea4b3c257
commit
e58e871bec
@ -0,0 +1,4 @@ |
||||
#ifndef __TOOLS_INCLUDE_LINUX_ASM_SECTIONS_H |
||||
#define __TOOLS_INCLUDE_LINUX_ASM_SECTIONS_H |
||||
|
||||
#endif /* __TOOLS_INCLUDE_LINUX_ASM_SECTIONS_H */ |
@ -0,0 +1,4 @@ |
||||
#ifndef _TOOLS_INCLUDE_LINUX_DELAY_H |
||||
#define _TOOLS_INCLUDE_LINUX_DELAY_H |
||||
|
||||
#endif /* _TOOLS_INCLUDE_LINUX_DELAY_H */ |
@ -0,0 +1,4 @@ |
||||
#ifndef _TOOLS_INCLUDE_LINUX_FTRACE_H |
||||
#define _TOOLS_INCLUDE_LINUX_FTRACE_H |
||||
|
||||
#endif /* _TOOLS_INCLUDE_LINUX_FTRACE_H */ |
@ -0,0 +1,4 @@ |
||||
#ifndef _TOOLS_INCLUDE_LINUX_GFP_H |
||||
#define _TOOLS_INCLUDE_LINUX_GFP_H |
||||
|
||||
#endif /* _TOOLS_INCLUDE_LINUX_GFP_H */ |
@ -0,0 +1,4 @@ |
||||
#ifndef _TOOLS_INCLUDE_LINUX_INTERRUPT_H |
||||
#define _TOOLS_INCLUDE_LINUX_INTERRUPT_H |
||||
|
||||
#endif /* _TOOLS_INCLUDE_LINUX_INTERRUPT_H */ |
@ -0,0 +1,4 @@ |
||||
#ifndef _TOOLS_INCLUDE_LINUX_LINKAGE_H |
||||
#define _TOOLS_INCLUDE_LINUX_LINKAGE_H |
||||
|
||||
#endif /* _TOOLS_INCLUDE_LINUX_LINKAGE_H */ |
@ -0,0 +1,4 @@ |
||||
#ifndef _TOOLS_INCLUDE_LINUX_MUTEX_H |
||||
#define _TOOLS_INCLUDE_LINUX_MUTEX_H |
||||
|
||||
#endif /* _TOOLS_INCLUDE_LINUX_MUTEX_H */ |
@ -0,0 +1,4 @@ |
||||
#ifndef _TOOLS_INCLUDE_LINUX_PROC_FS_H |
||||
#define _TOOLS_INCLUDE_LINUX_PROC_FS_H |
||||
|
||||
#endif /* _TOOLS_INCLUDE_LINUX_PROC_FS_H */ |
@ -0,0 +1,4 @@ |
||||
#ifndef _TOOLS_PERF_LINUX_SCHED_CLOCK_H |
||||
#define _TOOLS_PERF_LINUX_SCHED_CLOCK_H |
||||
|
||||
#endif /* _TOOLS_PERF_LINUX_SCHED_CLOCK_H */ |
@ -0,0 +1,4 @@ |
||||
#ifndef _TOOLS_PERF_LINUX_SCHED_TASK_H |
||||
#define _TOOLS_PERF_LINUX_SCHED_TASK_H |
||||
|
||||
#endif /* _TOOLS_PERF_LINUX_SCHED_TASK_H */ |
@ -0,0 +1,4 @@ |
||||
#ifndef _TOOLS_INCLUDE_LINUX_SEQ_FILE_H |
||||
#define _TOOLS_INCLUDE_LINUX_SEQ_FILE_H |
||||
|
||||
#endif /* _TOOLS_INCLUDE_LINUX_SEQ_FILE_H */ |
@ -1,5 +1,31 @@ |
||||
#ifndef __LINUX_SPINLOCK_H_ |
||||
#define __LINUX_SPINLOCK_H_ |
||||
|
||||
#include <pthread.h> |
||||
#include <stdbool.h> |
||||
|
||||
#define spinlock_t pthread_mutex_t |
||||
#define DEFINE_SPINLOCK(x) pthread_mutex_t x = PTHREAD_MUTEX_INITIALIZER; |
||||
|
||||
#define spin_lock_irqsave(x, f) (void)f, pthread_mutex_lock(x) |
||||
#define spin_unlock_irqrestore(x, f) (void)f, pthread_mutex_unlock(x) |
||||
|
||||
#define arch_spinlock_t pthread_mutex_t |
||||
#define __ARCH_SPIN_LOCK_UNLOCKED PTHREAD_MUTEX_INITIALIZER |
||||
|
||||
static inline void arch_spin_lock(arch_spinlock_t *mutex) |
||||
{ |
||||
pthread_mutex_lock(mutex); |
||||
} |
||||
|
||||
static inline void arch_spin_unlock(arch_spinlock_t *mutex) |
||||
{ |
||||
pthread_mutex_unlock(mutex); |
||||
} |
||||
|
||||
static inline bool arch_spin_is_locked(arch_spinlock_t *mutex) |
||||
{ |
||||
return true; |
||||
} |
||||
|
||||
#endif |
||||
|
@ -0,0 +1,4 @@ |
||||
#ifndef _TOOLS_INCLUDE_TRACE_EVENTS_LOCK_H |
||||
#define _TOOLS_INCLUDE_TRACE_EVENTS_LOCK_H |
||||
|
||||
#endif /* _TOOLS_INCLUDE_TRACE_EVENTS_LOCK_H */ |
@ -1 +1 @@ |
||||
#include "../../../lib/rbtree.c" |
||||
#include "../../lib/rbtree.c" |
||||
|
@ -1,6 +0,0 @@ |
||||
#ifndef __ASM_GENERIC_HASH_H |
||||
#define __ASM_GENERIC_HASH_H |
||||
|
||||
/* Stub */ |
||||
|
||||
#endif /* __ASM_GENERIC_HASH_H */ |
@ -1,3 +0,0 @@ |
||||
|
||||
/* empty file */ |
||||
|
@ -1,3 +0,0 @@ |
||||
|
||||
/* empty file */ |
||||
|
@ -1,12 +0,0 @@ |
||||
#ifndef _LIBLOCKDEP_LINUX_COMPILER_H_ |
||||
#define _LIBLOCKDEP_LINUX_COMPILER_H_ |
||||
|
||||
#define __used __attribute__((__unused__)) |
||||
#define unlikely |
||||
#define READ_ONCE(x) (x) |
||||
#define WRITE_ONCE(x, val) x=(val) |
||||
#define RCU_INIT_POINTER(p, v) p=(v) |
||||
|
||||
#define __packed __attribute__((packed)) |
||||
|
||||
#endif |
@ -1,3 +0,0 @@ |
||||
|
||||
/* empty file */ |
||||
|
@ -1,3 +0,0 @@ |
||||
|
||||
/* empty file */ |
||||
|
@ -1,3 +0,0 @@ |
||||
|
||||
/* empty file */ |
||||
|
@ -1 +0,0 @@ |
||||
#include "../../../include/linux/hash.h" |
@ -1,3 +0,0 @@ |
||||
|
||||
/* empty file */ |
||||
|
@ -1,61 +0,0 @@ |
||||
#ifndef _LIBLOCKDEP_LINUX_KERNEL_H_ |
||||
#define _LIBLOCKDEP_LINUX_KERNEL_H_ |
||||
|
||||
#include <linux/export.h> |
||||
#include <linux/types.h> |
||||
#include <linux/rcu.h> |
||||
#include <linux/hardirq.h> |
||||
#include <linux/kern_levels.h> |
||||
#include <linux/err.h> |
||||
|
||||
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) |
||||
|
||||
#ifndef container_of |
||||
#define container_of(ptr, type, member) ({ \ |
||||
const typeof(((type *)0)->member) * __mptr = (ptr); \
|
||||
(type *)((char *)__mptr - offsetof(type, member)); }) |
||||
#endif |
||||
|
||||
#define max(x, y) ({ \ |
||||
typeof(x) _max1 = (x); \
|
||||
typeof(y) _max2 = (y); \
|
||||
(void) (&_max1 == &_max2); \
|
||||
_max1 > _max2 ? _max1 : _max2; }) |
||||
|
||||
#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)])) |
||||
|
||||
static inline int lockdep_warn(int condition) |
||||
{ |
||||
return condition; |
||||
} |
||||
#define WARN_ON(x) lockdep_warn(x) |
||||
#define WARN_ON_ONCE(x) WARN_ON(x) |
||||
#define WARN(x, y...) WARN_ON(x) |
||||
|
||||
#define likely(x) (x) |
||||
#define uninitialized_var(x) x |
||||
#define __init |
||||
#define noinline |
||||
#define list_add_tail_rcu list_add_tail |
||||
#define list_for_each_entry_rcu list_for_each_entry |
||||
#define barrier() |
||||
#define synchronize_sched() |
||||
|
||||
#ifndef CALLER_ADDR0 |
||||
#define CALLER_ADDR0 ((unsigned long)__builtin_return_address(0)) |
||||
#endif |
||||
|
||||
#ifndef _RET_IP_ |
||||
#define _RET_IP_ CALLER_ADDR0 |
||||
#endif |
||||
|
||||
#ifndef _THIS_IP_ |
||||
#define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; }) |
||||
#endif |
||||
|
||||
#define pr_err(format, ...) fprintf (stderr, format, ## __VA_ARGS__) |
||||
#define pr_warn pr_err |
||||
|
||||
#define current_gfp_context(k) 0 |
||||
|
||||
#endif |
@ -1,3 +0,0 @@ |
||||
|
||||
/* empty file */ |
||||
|
@ -1 +0,0 @@ |
||||
#include "../../../include/linux/list.h" |
@ -1,3 +0,0 @@ |
||||
|
||||
/* empty file */ |
||||
|
@ -1 +0,0 @@ |
||||
#include "../../../include/linux/poison.h" |
@ -1,6 +0,0 @@ |
||||
#ifndef _LIBLOCKDEP_LINUX_PREFETCH_H_ |
||||
#define _LIBLOCKDEP_LINUX_PREFETCH_H |
||||
|
||||
static inline void prefetch(void *a __attribute__((unused))) { } |
||||
|
||||
#endif |
@ -1,3 +0,0 @@ |
||||
|
||||
/* empty file */ |
||||
|
@ -1,2 +0,0 @@ |
||||
#define __always_inline |
||||
#include "../../../include/linux/rbtree_augmented.h" |
@ -1,3 +0,0 @@ |
||||
|
||||
/* empty file */ |
||||
|
@ -1,25 +0,0 @@ |
||||
#ifndef _LIBLOCKDEP_SPINLOCK_H_ |
||||
#define _LIBLOCKDEP_SPINLOCK_H_ |
||||
|
||||
#include <pthread.h> |
||||
#include <stdbool.h> |
||||
|
||||
#define arch_spinlock_t pthread_mutex_t |
||||
#define __ARCH_SPIN_LOCK_UNLOCKED PTHREAD_MUTEX_INITIALIZER |
||||
|
||||
static inline void arch_spin_lock(arch_spinlock_t *mutex) |
||||
{ |
||||
pthread_mutex_lock(mutex); |
||||
} |
||||
|
||||
static inline void arch_spin_unlock(arch_spinlock_t *mutex) |
||||
{ |
||||
pthread_mutex_unlock(mutex); |
||||
} |
||||
|
||||
static inline bool arch_spin_is_locked(arch_spinlock_t *mutex) |
||||
{ |
||||
return true; |
||||
} |
||||
|
||||
#endif |
@ -1,7 +0,0 @@ |
||||
#ifndef _LIBLOCKDEP_LINUX_STRINGIFY_H_ |
||||
#define _LIBLOCKDEP_LINUX_STRINGIFY_H_ |
||||
|
||||
#define __stringify_1(x...) #x |
||||
#define __stringify(x...) __stringify_1(x) |
||||
|
||||
#endif |
@ -1,3 +0,0 @@ |
||||
|
||||
/* empty file */ |
||||
|
Loading…
Reference in new issue