]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
libperf: Move to tools/lib/perf
authorJiri Olsa <jolsa@kernel.org>
Fri, 6 Dec 2019 21:06:11 +0000 (22:06 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 6 Jan 2020 14:46:09 +0000 (11:46 -0300)
Move libperf from its current location under tools/perf to a separate
directory under tools/lib/.

Also change various paths (mainly includes) to reflect the libperf move
to a separate directory and add a new directory under MANIFEST.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/20191206210612.8676-2-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
39 files changed:
tools/lib/perf/Build [moved from tools/perf/lib/Build with 100% similarity]
tools/lib/perf/Documentation/Makefile [moved from tools/perf/lib/Documentation/Makefile with 100% similarity]
tools/lib/perf/Documentation/man/libperf.rst [moved from tools/perf/lib/Documentation/man/libperf.rst with 100% similarity]
tools/lib/perf/Documentation/tutorial/tutorial.rst [moved from tools/perf/lib/Documentation/tutorial/tutorial.rst with 100% similarity]
tools/lib/perf/Makefile [moved from tools/perf/lib/Makefile with 99% similarity]
tools/lib/perf/core.c [moved from tools/perf/lib/core.c with 100% similarity]
tools/lib/perf/cpumap.c [moved from tools/perf/lib/cpumap.c with 100% similarity]
tools/lib/perf/evlist.c [moved from tools/perf/lib/evlist.c with 100% similarity]
tools/lib/perf/evsel.c [moved from tools/perf/lib/evsel.c with 100% similarity]
tools/lib/perf/include/internal/cpumap.h [moved from tools/perf/lib/include/internal/cpumap.h with 100% similarity]
tools/lib/perf/include/internal/evlist.h [moved from tools/perf/lib/include/internal/evlist.h with 100% similarity]
tools/lib/perf/include/internal/evsel.h [moved from tools/perf/lib/include/internal/evsel.h with 100% similarity]
tools/lib/perf/include/internal/lib.h [moved from tools/perf/lib/include/internal/lib.h with 100% similarity]
tools/lib/perf/include/internal/mmap.h [moved from tools/perf/lib/include/internal/mmap.h with 100% similarity]
tools/lib/perf/include/internal/tests.h [moved from tools/perf/lib/include/internal/tests.h with 100% similarity]
tools/lib/perf/include/internal/threadmap.h [moved from tools/perf/lib/include/internal/threadmap.h with 100% similarity]
tools/lib/perf/include/internal/xyarray.h [moved from tools/perf/lib/include/internal/xyarray.h with 100% similarity]
tools/lib/perf/include/perf/core.h [moved from tools/perf/lib/include/perf/core.h with 100% similarity]
tools/lib/perf/include/perf/cpumap.h [moved from tools/perf/lib/include/perf/cpumap.h with 100% similarity]
tools/lib/perf/include/perf/event.h [moved from tools/perf/lib/include/perf/event.h with 100% similarity]
tools/lib/perf/include/perf/evlist.h [moved from tools/perf/lib/include/perf/evlist.h with 100% similarity]
tools/lib/perf/include/perf/evsel.h [moved from tools/perf/lib/include/perf/evsel.h with 100% similarity]
tools/lib/perf/include/perf/mmap.h [moved from tools/perf/lib/include/perf/mmap.h with 100% similarity]
tools/lib/perf/include/perf/threadmap.h [moved from tools/perf/lib/include/perf/threadmap.h with 100% similarity]
tools/lib/perf/internal.h [moved from tools/perf/lib/internal.h with 100% similarity]
tools/lib/perf/lib.c [moved from tools/perf/lib/lib.c with 100% similarity]
tools/lib/perf/libperf.map [moved from tools/perf/lib/libperf.map with 100% similarity]
tools/lib/perf/libperf.pc.template [moved from tools/perf/lib/libperf.pc.template with 100% similarity]
tools/lib/perf/mmap.c [moved from tools/perf/lib/mmap.c with 100% similarity]
tools/lib/perf/tests/Makefile [moved from tools/perf/lib/tests/Makefile with 93% similarity]
tools/lib/perf/tests/test-cpumap.c [moved from tools/perf/lib/tests/test-cpumap.c with 100% similarity]
tools/lib/perf/tests/test-evlist.c [moved from tools/perf/lib/tests/test-evlist.c with 100% similarity]
tools/lib/perf/tests/test-evsel.c [moved from tools/perf/lib/tests/test-evsel.c with 100% similarity]
tools/lib/perf/tests/test-threadmap.c [moved from tools/perf/lib/tests/test-threadmap.c with 100% similarity]
tools/lib/perf/threadmap.c [moved from tools/perf/lib/threadmap.c with 100% similarity]
tools/lib/perf/xyarray.c [moved from tools/perf/lib/xyarray.c with 100% similarity]
tools/perf/MANIFEST
tools/perf/Makefile.config
tools/perf/Makefile.perf

similarity index 100%
rename from tools/perf/lib/Build
rename to tools/lib/perf/Build
similarity index 99%
rename from tools/perf/lib/Makefile
rename to tools/lib/perf/Makefile
index 0f233638ef1fb44de2617b21c428e74ee6141c96..768dd423730b184ca9a49c9d042e1ca90770b58a 100644 (file)
@@ -60,7 +60,7 @@ else
 endif
 
 INCLUDES = \
--I$(srctree)/tools/perf/lib/include \
+-I$(srctree)/tools/lib/perf/include \
 -I$(srctree)/tools/lib/ \
 -I$(srctree)/tools/include \
 -I$(srctree)/tools/arch/$(SRCARCH)/include/ \
similarity index 100%
rename from tools/perf/lib/core.c
rename to tools/lib/perf/core.c
similarity index 100%
rename from tools/perf/lib/lib.c
rename to tools/lib/perf/lib.c
similarity index 100%
rename from tools/perf/lib/mmap.c
rename to tools/lib/perf/mmap.c
similarity index 93%
rename from tools/perf/lib/tests/Makefile
rename to tools/lib/perf/tests/Makefile
index a43cd08c5c037a99edc6a798bef994f8356536fb..96841775feaf2b6d697963e96c955e37fcfceea0 100644 (file)
@@ -16,7 +16,7 @@ all:
 
 include $(srctree)/tools/scripts/Makefile.include
 
-INCLUDE = -I$(srctree)/tools/perf/lib/include -I$(srctree)/tools/include -I$(srctree)/tools/lib
+INCLUDE = -I$(srctree)/tools/lib/perf/include -I$(srctree)/tools/include -I$(srctree)/tools/lib
 
 $(TESTS_A): FORCE
        $(QUIET_LINK)$(CC) $(INCLUDE) $(CFLAGS) -o $@ $(subst -a,.c,$@) ../libperf.a $(LIBAPI)
index 4934edb5adfd141cbc058736254685b941e4f710..5d7b947320fbed5595f6d4314b3d1a9a95b435e8 100644 (file)
@@ -7,6 +7,7 @@ tools/lib/traceevent
 tools/lib/api
 tools/lib/bpf
 tools/lib/subcmd
+tools/lib/perf
 tools/lib/argv_split.c
 tools/lib/ctype.c
 tools/lib/hweight.c
index c90f4146e5a2753e86a1b502be1f7db081055a4e..80e55e796be9cbf3d9e9cac86ee3d0b7770e51c7 100644 (file)
@@ -286,7 +286,7 @@ ifeq ($(DEBUG),0)
   endif
 endif
 
-INC_FLAGS += -I$(src-perf)/lib/include
+INC_FLAGS += -I$(srctree)/tools/lib/perf/include
 INC_FLAGS += -I$(src-perf)/util/include
 INC_FLAGS += -I$(src-perf)/arch/$(SRCARCH)/include
 INC_FLAGS += -I$(srctree)/tools/include/
index eae5d5e95952765c186de6b2488c40542c31508b..3eda9d4b88e7da2a12a0171e706426034185d47d 100644 (file)
@@ -230,7 +230,7 @@ LIB_DIR         = $(srctree)/tools/lib/api/
 TRACE_EVENT_DIR = $(srctree)/tools/lib/traceevent/
 BPF_DIR         = $(srctree)/tools/lib/bpf/
 SUBCMD_DIR      = $(srctree)/tools/lib/subcmd/
-LIBPERF_DIR     = $(srctree)/tools/perf/lib/
+LIBPERF_DIR     = $(srctree)/tools/lib/perf/
 
 # Set FEATURE_TESTS to 'all' so all possible feature checkers are executed.
 # Without this setting the output feature dump file misses some features, for