History

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'.

Wang Nan committed 11 years ago

Commit 4fc62a81 parent 37fbe0a4 files · +6 −4Browse files

Unified · Split

4 files
  1. tools/include/linux/list.h +3 −3
  2. tools/include/linux/poison.h +1 −0
  3. tools/perf/MANIFEST +2 −0
  4. tools/perf/util/include/linux/poison.h +0 −1
tools/include/linux/list.hrenamed from tools/perf/util/include/linux/list.h+3−3
@@ -1,10 +1,10 @@
1#include <linux/kernel.h>1#include <linux/kernel.h>
2#include <linux/types.h>2#include <linux/types.h>
3 3
4#include "../../../../include/linux/list.h"4#include "../../../include/linux/list.h"
5 5
6#ifndef PERF_LIST_H6#ifndef TOOLS_LIST_H
7#define PERF_LIST_H7#define TOOLS_LIST_H
8/**8/**
9 * list_del_range - deletes range of entries from list.9 * list_del_range - deletes range of entries from list.
10 * @begin: first element in the range to delete from the list.10 * @begin: first element in the range to delete from the list.
tools/include/linux/poison.h+1−0
@@ -0,0 +1 @@
1#include "../../../include/linux/poison.h"
tools/perf/MANIFEST+2−0
@@ -41,7 +41,9 @@ tools/include/linux/compiler.h · 40 unmodified lines
41tools/include/linux/export.h41tools/include/linux/export.h
42tools/include/linux/hash.h42tools/include/linux/hash.h
43tools/include/linux/kernel.h43tools/include/linux/kernel.h
44tools/include/linux/list.h
44tools/include/linux/log2.h45tools/include/linux/log2.h
46tools/include/linux/poison.h
45tools/include/linux/types.h47tools/include/linux/types.h
46include/asm-generic/bitops/arch_hweight.h48include/asm-generic/bitops/arch_hweight.h
47include/asm-generic/bitops/const_hweight.h49include/asm-generic/bitops/const_hweight.h
tools/perf/util/include/linux/poison.h+0−1
@@ -1 +0,0 @@
1#include "../../../../include/linux/poison.h"