Skip to content

Commit 4fc62a8

Browse files
WangNan0acmel
authored andcommitted
tools: Move tools/perf/util/include/linux/{list.h,poison.h} to tools/include
This patch moves list.h from tools/perf/util/include/linux/list.h to tools/include/linux/list.h to enable other libraries use macros in it, like libbpf which will be introduced by further patches. Since list.h depend on poison.h, poison.h is also moved. Both file use relative path, so one '..' is removed for each header to make them suit for new directory. MANIFEST is also updated for 'make perf-*-src-pkg'. Signed-off-by: Wang Nan <wangnan0@huawei.com> Cc: Alexei Starovoitov <alexei.starovoitov@gmail.com> Cc: Brendan Gregg <brendan.d.gregg@gmail.com> Cc: Daniel Borkmann <daniel@iogearbox.net> Cc: David Ahern <dsahern@gmail.com> Cc: He Kuang <hekuang@huawei.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Kaixu Xia <xiakaixu@huawei.com> Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Zefan Li <lizefan@huawei.com> Cc: pi3orama@163.com Link: http://lkml.kernel.org/r/1433144296-74992-3-git-send-email-wangnan0@huawei.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 37fbe0a commit 4fc62a8

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#include <linux/kernel.h>
22
#include <linux/types.h>
33

4-
#include "../../../../include/linux/list.h"
4+
#include "../../../include/linux/list.h"
55

6-
#ifndef PERF_LIST_H
7-
#define PERF_LIST_H
6+
#ifndef TOOLS_LIST_H
7+
#define TOOLS_LIST_H
88
/**
99
* list_del_range - deletes range of entries from list.
1010
* @begin: first element in the range to delete from the list.

‎tools/include/linux/poison.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "../../../include/linux/poison.h"

‎tools/perf/MANIFEST‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ tools/include/linux/compiler.h
4141
tools/include/linux/export.h
4242
tools/include/linux/hash.h
4343
tools/include/linux/kernel.h
44+
tools/include/linux/list.h
4445
tools/include/linux/log2.h
46+
tools/include/linux/poison.h
4547
tools/include/linux/types.h
4648
include/asm-generic/bitops/arch_hweight.h
4749
include/asm-generic/bitops/const_hweight.h

‎tools/perf/util/include/linux/poison.h‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)