aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/perf/Makefile9
-rw-r--r--tools/perf/tests/builtin-test.c (renamed from tools/perf/builtin-test.c)8
-rw-r--r--tools/perf/tests/dso-data.c (renamed from tools/perf/util/dso-test-data.c)0
-rw-r--r--tools/perf/tests/parse-events.c (renamed from tools/perf/util/parse-events-test.c)0
4 files changed, 9 insertions, 8 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index 3e807d7ab8e7..2d3427f65b53 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -169,7 +169,7 @@ endif
169 169
170### --- END CONFIGURATION SECTION --- 170### --- END CONFIGURATION SECTION ---
171 171
172BASIC_CFLAGS = -Iutil/include -Iarch/$(ARCH)/include -I$(OUTPUT)util -I$(TRACE_EVENT_DIR) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE 172BASIC_CFLAGS = -Iutil/include -Iarch/$(ARCH)/include -I$(OUTPUT)util -Iutil -I. -I$(TRACE_EVENT_DIR) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
173BASIC_LDFLAGS = 173BASIC_LDFLAGS =
174 174
175ifeq ($(call try-cc,$(SOURCE_BIONIC),$(CFLAGS),bionic),y) 175ifeq ($(call try-cc,$(SOURCE_BIONIC),$(CFLAGS),bionic),y)
@@ -371,7 +371,6 @@ LIB_OBJS += $(OUTPUT)util/help.o
371LIB_OBJS += $(OUTPUT)util/levenshtein.o 371LIB_OBJS += $(OUTPUT)util/levenshtein.o
372LIB_OBJS += $(OUTPUT)util/parse-options.o 372LIB_OBJS += $(OUTPUT)util/parse-options.o
373LIB_OBJS += $(OUTPUT)util/parse-events.o 373LIB_OBJS += $(OUTPUT)util/parse-events.o
374LIB_OBJS += $(OUTPUT)util/parse-events-test.o
375LIB_OBJS += $(OUTPUT)util/path.o 374LIB_OBJS += $(OUTPUT)util/path.o
376LIB_OBJS += $(OUTPUT)util/rbtree.o 375LIB_OBJS += $(OUTPUT)util/rbtree.o
377LIB_OBJS += $(OUTPUT)util/bitmap.o 376LIB_OBJS += $(OUTPUT)util/bitmap.o
@@ -389,7 +388,6 @@ LIB_OBJS += $(OUTPUT)util/sigchain.o
389LIB_OBJS += $(OUTPUT)util/dso.o 388LIB_OBJS += $(OUTPUT)util/dso.o
390LIB_OBJS += $(OUTPUT)util/symbol.o 389LIB_OBJS += $(OUTPUT)util/symbol.o
391LIB_OBJS += $(OUTPUT)util/symbol-elf.o 390LIB_OBJS += $(OUTPUT)util/symbol-elf.o
392LIB_OBJS += $(OUTPUT)util/dso-test-data.o
393LIB_OBJS += $(OUTPUT)util/color.o 391LIB_OBJS += $(OUTPUT)util/color.o
394LIB_OBJS += $(OUTPUT)util/pager.o 392LIB_OBJS += $(OUTPUT)util/pager.o
395LIB_OBJS += $(OUTPUT)util/header.o 393LIB_OBJS += $(OUTPUT)util/header.o
@@ -430,6 +428,9 @@ LIB_OBJS += $(OUTPUT)ui/stdio/hist.o
430 428
431LIB_OBJS += $(OUTPUT)arch/common.o 429LIB_OBJS += $(OUTPUT)arch/common.o
432 430
431LIB_OBJS += $(OUTPUT)tests/parse-events.o
432LIB_OBJS += $(OUTPUT)tests/dso-data.o
433
433BUILTIN_OBJS += $(OUTPUT)builtin-annotate.o 434BUILTIN_OBJS += $(OUTPUT)builtin-annotate.o
434BUILTIN_OBJS += $(OUTPUT)builtin-bench.o 435BUILTIN_OBJS += $(OUTPUT)builtin-bench.o
435# Benchmark modules 436# Benchmark modules
@@ -459,8 +460,8 @@ BUILTIN_OBJS += $(OUTPUT)builtin-probe.o
459BUILTIN_OBJS += $(OUTPUT)builtin-kmem.o 460BUILTIN_OBJS += $(OUTPUT)builtin-kmem.o
460BUILTIN_OBJS += $(OUTPUT)builtin-lock.o 461BUILTIN_OBJS += $(OUTPUT)builtin-lock.o
461BUILTIN_OBJS += $(OUTPUT)builtin-kvm.o 462BUILTIN_OBJS += $(OUTPUT)builtin-kvm.o
462BUILTIN_OBJS += $(OUTPUT)builtin-test.o
463BUILTIN_OBJS += $(OUTPUT)builtin-inject.o 463BUILTIN_OBJS += $(OUTPUT)builtin-inject.o
464BUILTIN_OBJS += $(OUTPUT)tests/builtin-test.o
464 465
465PERFLIBS = $(LIB_FILE) $(LIBTRACEEVENT) 466PERFLIBS = $(LIB_FILE) $(LIBTRACEEVENT)
466 467
diff --git a/tools/perf/builtin-test.c b/tools/perf/tests/builtin-test.c
index a04276e81f40..f6c642415c44 100644
--- a/tools/perf/builtin-test.c
+++ b/tools/perf/tests/builtin-test.c
@@ -318,7 +318,7 @@ static int test__open_syscall_event(void)
318 nr_open_calls, evsel->counts->cpu[0].val); 318 nr_open_calls, evsel->counts->cpu[0].val);
319 goto out_close_fd; 319 goto out_close_fd;
320 } 320 }
321 321
322 err = 0; 322 err = 0;
323out_close_fd: 323out_close_fd:
324 perf_evsel__close_fd(evsel, 1, threads->nr); 324 perf_evsel__close_fd(evsel, 1, threads->nr);
@@ -1344,8 +1344,8 @@ static int test__syscall_open_tp_fields(void)
1344 perf_evlist__enable(evlist); 1344 perf_evlist__enable(evlist);
1345 1345
1346 /* 1346 /*
1347 * Generate the event: 1347 * Generate the event:
1348 */ 1348 */
1349 open(filename, flags); 1349 open(filename, flags);
1350 1350
1351 while (1) { 1351 while (1) {
@@ -1495,7 +1495,7 @@ static int __cmd_test(int argc, const char *argv[])
1495 width = len; 1495 width = len;
1496 ++i; 1496 ++i;
1497 } 1497 }
1498 1498
1499 i = 0; 1499 i = 0;
1500 while (tests[i].func) { 1500 while (tests[i].func) {
1501 int curr = i++, err; 1501 int curr = i++, err;
diff --git a/tools/perf/util/dso-test-data.c b/tools/perf/tests/dso-data.c
index c6caedeb1d6b..c6caedeb1d6b 100644
--- a/tools/perf/util/dso-test-data.c
+++ b/tools/perf/tests/dso-data.c
diff --git a/tools/perf/util/parse-events-test.c b/tools/perf/tests/parse-events.c
index b49c2eebff33..b49c2eebff33 100644
--- a/tools/perf/util/parse-events-test.c
+++ b/tools/perf/tests/parse-events.c