diff options
author | Jiri Olsa <jolsa@redhat.com> | 2012-10-30 18:01:43 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-10-31 14:19:19 -0400 |
commit | 945aea220bb8f4bb37950549cc0b93bbec24c460 (patch) | |
tree | 3eff78bd0339f33db881feed0a58287ad1e96e93 | |
parent | c77d8d7030128e61e206658815b96a6befed9d06 (diff) |
perf tests: Move test objects into 'tests' directory
Separating test objects into 'tests' directory.
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1351634526-1516-3-git-send-email-jolsa@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/Makefile | 9 | ||||
-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 3e807d7ab8e..2d3427f65b5 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 | ||
172 | BASIC_CFLAGS = -Iutil/include -Iarch/$(ARCH)/include -I$(OUTPUT)util -I$(TRACE_EVENT_DIR) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE | 172 | BASIC_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 |
173 | BASIC_LDFLAGS = | 173 | BASIC_LDFLAGS = |
174 | 174 | ||
175 | ifeq ($(call try-cc,$(SOURCE_BIONIC),$(CFLAGS),bionic),y) | 175 | ifeq ($(call try-cc,$(SOURCE_BIONIC),$(CFLAGS),bionic),y) |
@@ -371,7 +371,6 @@ LIB_OBJS += $(OUTPUT)util/help.o | |||
371 | LIB_OBJS += $(OUTPUT)util/levenshtein.o | 371 | LIB_OBJS += $(OUTPUT)util/levenshtein.o |
372 | LIB_OBJS += $(OUTPUT)util/parse-options.o | 372 | LIB_OBJS += $(OUTPUT)util/parse-options.o |
373 | LIB_OBJS += $(OUTPUT)util/parse-events.o | 373 | LIB_OBJS += $(OUTPUT)util/parse-events.o |
374 | LIB_OBJS += $(OUTPUT)util/parse-events-test.o | ||
375 | LIB_OBJS += $(OUTPUT)util/path.o | 374 | LIB_OBJS += $(OUTPUT)util/path.o |
376 | LIB_OBJS += $(OUTPUT)util/rbtree.o | 375 | LIB_OBJS += $(OUTPUT)util/rbtree.o |
377 | LIB_OBJS += $(OUTPUT)util/bitmap.o | 376 | LIB_OBJS += $(OUTPUT)util/bitmap.o |
@@ -389,7 +388,6 @@ LIB_OBJS += $(OUTPUT)util/sigchain.o | |||
389 | LIB_OBJS += $(OUTPUT)util/dso.o | 388 | LIB_OBJS += $(OUTPUT)util/dso.o |
390 | LIB_OBJS += $(OUTPUT)util/symbol.o | 389 | LIB_OBJS += $(OUTPUT)util/symbol.o |
391 | LIB_OBJS += $(OUTPUT)util/symbol-elf.o | 390 | LIB_OBJS += $(OUTPUT)util/symbol-elf.o |
392 | LIB_OBJS += $(OUTPUT)util/dso-test-data.o | ||
393 | LIB_OBJS += $(OUTPUT)util/color.o | 391 | LIB_OBJS += $(OUTPUT)util/color.o |
394 | LIB_OBJS += $(OUTPUT)util/pager.o | 392 | LIB_OBJS += $(OUTPUT)util/pager.o |
395 | LIB_OBJS += $(OUTPUT)util/header.o | 393 | LIB_OBJS += $(OUTPUT)util/header.o |
@@ -430,6 +428,9 @@ LIB_OBJS += $(OUTPUT)ui/stdio/hist.o | |||
430 | 428 | ||
431 | LIB_OBJS += $(OUTPUT)arch/common.o | 429 | LIB_OBJS += $(OUTPUT)arch/common.o |
432 | 430 | ||
431 | LIB_OBJS += $(OUTPUT)tests/parse-events.o | ||
432 | LIB_OBJS += $(OUTPUT)tests/dso-data.o | ||
433 | |||
433 | BUILTIN_OBJS += $(OUTPUT)builtin-annotate.o | 434 | BUILTIN_OBJS += $(OUTPUT)builtin-annotate.o |
434 | BUILTIN_OBJS += $(OUTPUT)builtin-bench.o | 435 | BUILTIN_OBJS += $(OUTPUT)builtin-bench.o |
435 | # Benchmark modules | 436 | # Benchmark modules |
@@ -459,8 +460,8 @@ BUILTIN_OBJS += $(OUTPUT)builtin-probe.o | |||
459 | BUILTIN_OBJS += $(OUTPUT)builtin-kmem.o | 460 | BUILTIN_OBJS += $(OUTPUT)builtin-kmem.o |
460 | BUILTIN_OBJS += $(OUTPUT)builtin-lock.o | 461 | BUILTIN_OBJS += $(OUTPUT)builtin-lock.o |
461 | BUILTIN_OBJS += $(OUTPUT)builtin-kvm.o | 462 | BUILTIN_OBJS += $(OUTPUT)builtin-kvm.o |
462 | BUILTIN_OBJS += $(OUTPUT)builtin-test.o | ||
463 | BUILTIN_OBJS += $(OUTPUT)builtin-inject.o | 463 | BUILTIN_OBJS += $(OUTPUT)builtin-inject.o |
464 | BUILTIN_OBJS += $(OUTPUT)tests/builtin-test.o | ||
464 | 465 | ||
465 | PERFLIBS = $(LIB_FILE) $(LIBTRACEEVENT) | 466 | PERFLIBS = $(LIB_FILE) $(LIBTRACEEVENT) |
466 | 467 | ||
diff --git a/tools/perf/builtin-test.c b/tools/perf/tests/builtin-test.c index a04276e81f4..f6c642415c4 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; |
323 | out_close_fd: | 323 | out_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 c6caedeb1d6..c6caedeb1d6 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 b49c2eebff3..b49c2eebff3 100644 --- a/tools/perf/util/parse-events-test.c +++ b/tools/perf/tests/parse-events.c | |||