aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/include/linux/compiler.h8
-rw-r--r--tools/perf/MANIFEST1
2 files changed, 9 insertions, 0 deletions
diff --git a/tools/include/linux/compiler.h b/tools/include/linux/compiler.h
index 0135ccf2a00c..fbc6665c6d53 100644
--- a/tools/include/linux/compiler.h
+++ b/tools/include/linux/compiler.h
@@ -27,4 +27,12 @@
27# define __weak __attribute__((weak)) 27# define __weak __attribute__((weak))
28#endif 28#endif
29 29
30#ifndef likely
31# define likely(x) __builtin_expect(!!(x), 1)
32#endif
33
34#ifndef unlikely
35# define unlikely(x) __builtin_expect(!!(x), 0)
36#endif
37
30#endif /* _TOOLS_LINUX_COMPILER_H */ 38#endif /* _TOOLS_LINUX_COMPILER_H */
diff --git a/tools/perf/MANIFEST b/tools/perf/MANIFEST
index 3170a7ff5782..285f28f7f821 100644
--- a/tools/perf/MANIFEST
+++ b/tools/perf/MANIFEST
@@ -4,6 +4,7 @@ tools/lib/traceevent
4tools/lib/lk 4tools/lib/lk
5tools/lib/symbol/kallsyms.c 5tools/lib/symbol/kallsyms.c
6tools/lib/symbol/kallsyms.h 6tools/lib/symbol/kallsyms.h
7tools/include/linux/compiler.h
7include/linux/const.h 8include/linux/const.h
8include/linux/perf_event.h 9include/linux/perf_event.h
9include/linux/rbtree.h 10include/linux/rbtree.h