tools: Copy rbtree_augmented.h from the kernel
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: 307bc971959aaa2df44032e7f6b0bda1f7e26890 Gitweb: http://git.kernel.org/tip/307bc971959aaa2df44032e7f6b0bda1f7e26890 Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Sun, 5 Jul 2015 22:59:05 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Sun, 5 Jul 2015 22:59:05 -0300
tools: Copy rbtree_augmented.h from the kernel
To complete the transitioning to not to share the same files with the kernel, also moving it from tools/perf/include/linux/ to tools/include/linux to make the whoke rbtree kit to other tools/ living codebases.
Cc Adrian Hunter <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc David Ahern <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Stephane Eranian <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
---
{include => tools/include}/linux/rbtree_augmented.h | 9 ++++++---
tools/perf/MANIFEST | 2 +-
tools/perf/util/include/linux/rbtree_augmented.h | 2 --
3 files changed, 7 insertions(+), 6 deletions(-)tools/include/linux/rbtree_augmented.h renamed from include/linux/rbtree_augmented.h +6 -3
@@ -18,11 +18,14 @@along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +tools/linux/include/linux/rbtree_augmented.h + +Copied from: linux/include/linux/rbtree_augmented.h */ -#ifndef _LINUX_RBTREE_AUGMENTED_H -#define _LINUX_RBTREE_AUGMENTED_H +#ifndef _TOOLS_LINUX_RBTREE_AUGMENTED_H +#define _TOOLS_LINUX_RBTREE_AUGMENTED_H#include <linux/compiler.h> #include <linux/rbtree.h>
@@ -239,4 +242,4 @@ rb_erase_augmented(struct rb_node *node, struct rb_root *root, __rb_erase_color(rebalance, root, augment->rotate); } -#endif /* _LINUX_RBTREE_AUGMENTED_H */ +#endif /* _TOOLS_LINUX_RBTREE_AUGMENTED_H */
tools/perf/MANIFEST +1 -1
@@ -46,6 +46,7 @@ tools/include/linux/list.h tools/include/linux/log2.h tools/include/linux/poison.h tools/include/linux/rbtree.h +tools/include/linux/rbtree_augmented.h tools/include/linux/types.h include/asm-generic/bitops/arch_hweight.h include/asm-generic/bitops/const_hweight.h
@@ -65,7 +66,6 @@ arch/*/lib/memcpy*.S arch/*/lib/memset*.S include/linux/poison.h include/linux/hw_breakpoint.h -include/linux/rbtree_augmented.h include/uapi/linux/perf_event.h include/uapi/linux/const.h include/uapi/linux/swab.h
tools/perf/util/include/linux/rbtree_augmented.h deleted +0 -2
@@ -1,2 +0,0 @@ -#include <stdbool.h> -#include "../../../../include/linux/rbtree_augmented.h"