diff options
| author | Jiri Olsa <jolsa@kernel.org> | 2014-12-29 09:13:44 -0500 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-02-12 09:42:09 -0500 |
| commit | 285ab8bfc6637780052f663d90e3aa9a653042c9 (patch) | |
| tree | 3e63e33670bb57ec3d2062bb6b22f3ae48fd9eb9 | |
| parent | f39e042a133485e4b1aa73d3bc2249d01421f765 (diff) | |
perf build: Add builtin objects building
Move the rest of builtin objects (bench and test are already in)
building under build framework.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Tested-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Tested-by: Will Deacon <will.deacon@arm.com>
Cc: Alexis Berlemont <alexis.berlemont@gmail.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-mrh2d4kfyi4g1el4kmdcghl8@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
| -rw-r--r-- | tools/perf/Build | 29 | ||||
| -rw-r--r-- | tools/perf/Makefile.perf | 37 | ||||
| -rw-r--r-- | tools/perf/config/Makefile | 4 |
3 files changed, 34 insertions, 36 deletions
diff --git a/tools/perf/Build b/tools/perf/Build index b4b6a7ca760b..80a944b929da 100644 --- a/tools/perf/Build +++ b/tools/perf/Build | |||
| @@ -1,3 +1,32 @@ | |||
| 1 | perf-y += builtin-bench.o | 1 | perf-y += builtin-bench.o |
| 2 | perf-y += builtin-annotate.o | ||
| 3 | perf-y += builtin-diff.o | ||
| 4 | perf-y += builtin-evlist.o | ||
| 5 | perf-y += builtin-help.o | ||
| 6 | perf-y += builtin-sched.o | ||
| 7 | perf-y += builtin-buildid-list.o | ||
| 8 | perf-y += builtin-buildid-cache.o | ||
| 9 | perf-y += builtin-list.o | ||
| 10 | perf-y += builtin-record.o | ||
| 11 | perf-y += builtin-report.o | ||
| 12 | perf-y += builtin-stat.o | ||
| 13 | perf-y += builtin-timechart.o | ||
| 14 | perf-y += builtin-top.o | ||
| 15 | perf-y += builtin-script.o | ||
| 16 | perf-y += builtin-kmem.o | ||
| 17 | perf-y += builtin-lock.o | ||
| 18 | perf-y += builtin-kvm.o | ||
| 19 | perf-y += builtin-inject.o | ||
| 20 | perf-y += builtin-mem.o | ||
| 21 | |||
| 22 | perf-$(CONFIG_AUDIT) += builtin-trace.o | ||
| 23 | |||
| 2 | perf-y += bench/ | 24 | perf-y += bench/ |
| 3 | perf-y += tests/ | 25 | perf-y += tests/ |
| 26 | |||
| 27 | paths += -DPERF_HTML_PATH="BUILD_STR($(htmldir_SQ))" | ||
| 28 | paths += -DPERF_INFO_PATH="BUILD_STR($(infodir_SQ))" | ||
| 29 | paths += -DPERF_MAN_PATH="BUILD_STR($(mandir_SQ))" | ||
| 30 | |||
| 31 | CFLAGS_builtin-help.o += $(paths) | ||
| 32 | CFLAGS_builtin-timechart.o += $(paths) | ||
diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 80c2a8f875ff..4990b999d595 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf | |||
| @@ -425,26 +425,7 @@ LIB_OBJS += $(OUTPUT)ui/stdio/hist.o | |||
| 425 | 425 | ||
| 426 | LIB_OBJS += $(OUTPUT)arch/common.o | 426 | LIB_OBJS += $(OUTPUT)arch/common.o |
| 427 | 427 | ||
| 428 | BUILTIN_OBJS += $(OUTPUT)builtin-annotate.o | ||
| 429 | BUILTIN_OBJS += $(OUTPUT)builtin-diff.o | ||
| 430 | BUILTIN_OBJS += $(OUTPUT)builtin-evlist.o | ||
| 431 | BUILTIN_OBJS += $(OUTPUT)builtin-help.o | ||
| 432 | BUILTIN_OBJS += $(OUTPUT)builtin-sched.o | ||
| 433 | BUILTIN_OBJS += $(OUTPUT)builtin-buildid-list.o | ||
| 434 | BUILTIN_OBJS += $(OUTPUT)builtin-buildid-cache.o | ||
| 435 | BUILTIN_OBJS += $(OUTPUT)builtin-list.o | ||
| 436 | BUILTIN_OBJS += $(OUTPUT)builtin-record.o | ||
| 437 | BUILTIN_OBJS += $(OUTPUT)builtin-report.o | ||
| 438 | BUILTIN_OBJS += $(OUTPUT)builtin-stat.o | ||
| 439 | BUILTIN_OBJS += $(OUTPUT)builtin-timechart.o | ||
| 440 | BUILTIN_OBJS += $(OUTPUT)builtin-top.o | ||
| 441 | BUILTIN_OBJS += $(OUTPUT)builtin-script.o | ||
| 442 | BUILTIN_OBJS += $(OUTPUT)builtin-probe.o | 428 | BUILTIN_OBJS += $(OUTPUT)builtin-probe.o |
| 443 | BUILTIN_OBJS += $(OUTPUT)builtin-kmem.o | ||
| 444 | BUILTIN_OBJS += $(OUTPUT)builtin-lock.o | ||
| 445 | BUILTIN_OBJS += $(OUTPUT)builtin-kvm.o | ||
| 446 | BUILTIN_OBJS += $(OUTPUT)builtin-inject.o | ||
| 447 | BUILTIN_OBJS += $(OUTPUT)builtin-mem.o | ||
| 448 | 429 | ||
| 449 | PERFLIBS = $(LIB_FILE) $(LIBAPIKFS) $(LIBTRACEEVENT) | 430 | PERFLIBS = $(LIB_FILE) $(LIBAPIKFS) $(LIBTRACEEVENT) |
| 450 | 431 | ||
| @@ -486,10 +467,6 @@ ifndef NO_LIBUNWIND | |||
| 486 | LIB_OBJS += $(OUTPUT)util/unwind-libunwind.o | 467 | LIB_OBJS += $(OUTPUT)util/unwind-libunwind.o |
| 487 | endif | 468 | endif |
| 488 | 469 | ||
| 489 | ifndef NO_LIBAUDIT | ||
| 490 | BUILTIN_OBJS += $(OUTPUT)builtin-trace.o | ||
| 491 | endif | ||
| 492 | |||
| 493 | ifndef NO_SLANG | 470 | ifndef NO_SLANG |
| 494 | LIB_OBJS += $(OUTPUT)ui/browser.o | 471 | LIB_OBJS += $(OUTPUT)ui/browser.o |
| 495 | LIB_OBJS += $(OUTPUT)ui/browsers/annotate.o | 472 | LIB_OBJS += $(OUTPUT)ui/browsers/annotate.o |
| @@ -573,7 +550,7 @@ PERF_IN := $(OUTPUT)perf-in.o | |||
| 573 | export srctree OUTPUT RM CC LD AR CFLAGS V | 550 | export srctree OUTPUT RM CC LD AR CFLAGS V |
| 574 | build := -f $(srctree)/tools/build/Makefile.build dir=. obj | 551 | build := -f $(srctree)/tools/build/Makefile.build dir=. obj |
| 575 | 552 | ||
| 576 | $(PERF_IN): FORCE | 553 | $(PERF_IN): $(OUTPUT)common-cmds.h FORCE |
| 577 | @$(MAKE) $(build)=perf | 554 | @$(MAKE) $(build)=perf |
| 578 | 555 | ||
| 579 | $(OUTPUT)perf.o: perf.c $(OUTPUT)common-cmds.h $(OUTPUT)PERF-CFLAGS | 556 | $(OUTPUT)perf.o: perf.c $(OUTPUT)common-cmds.h $(OUTPUT)PERF-CFLAGS |
| @@ -591,18 +568,6 @@ $(GTK_OBJS): $(OUTPUT)%.o: %.c $(LIB_H) | |||
| 591 | $(OUTPUT)libperf-gtk.so: $(GTK_OBJS) $(PERFLIBS) | 568 | $(OUTPUT)libperf-gtk.so: $(GTK_OBJS) $(PERFLIBS) |
| 592 | $(QUIET_LINK)$(CC) -o $@ -shared $(LDFLAGS) $(filter %.o,$^) $(GTK_LIBS) | 569 | $(QUIET_LINK)$(CC) -o $@ -shared $(LDFLAGS) $(filter %.o,$^) $(GTK_LIBS) |
| 593 | 570 | ||
| 594 | $(OUTPUT)builtin-help.o: builtin-help.c $(OUTPUT)common-cmds.h $(OUTPUT)PERF-CFLAGS | ||
| 595 | $(QUIET_CC)$(CC) -o $@ -c $(CFLAGS) \ | ||
| 596 | '-DPERF_HTML_PATH="$(htmldir_SQ)"' \ | ||
| 597 | '-DPERF_MAN_PATH="$(mandir_SQ)"' \ | ||
| 598 | '-DPERF_INFO_PATH="$(infodir_SQ)"' $< | ||
| 599 | |||
| 600 | $(OUTPUT)builtin-timechart.o: builtin-timechart.c $(OUTPUT)common-cmds.h $(OUTPUT)PERF-CFLAGS | ||
| 601 | $(QUIET_CC)$(CC) -o $@ -c $(CFLAGS) \ | ||
| 602 | '-DPERF_HTML_PATH="$(htmldir_SQ)"' \ | ||
| 603 | '-DPERF_MAN_PATH="$(mandir_SQ)"' \ | ||
| 604 | '-DPERF_INFO_PATH="$(infodir_SQ)"' $< | ||
| 605 | |||
| 606 | $(OUTPUT)common-cmds.h: util/generate-cmdlist.sh command-list.txt | 571 | $(OUTPUT)common-cmds.h: util/generate-cmdlist.sh command-list.txt |
| 607 | 572 | ||
| 608 | $(OUTPUT)common-cmds.h: $(wildcard Documentation/perf-*.txt) | 573 | $(OUTPUT)common-cmds.h: $(wildcard Documentation/perf-*.txt) |
diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile index 2fd018529b95..deb0c596fc15 100644 --- a/tools/perf/config/Makefile +++ b/tools/perf/config/Makefile | |||
| @@ -456,6 +456,7 @@ ifndef NO_LIBAUDIT | |||
| 456 | else | 456 | else |
| 457 | CFLAGS += -DHAVE_LIBAUDIT_SUPPORT | 457 | CFLAGS += -DHAVE_LIBAUDIT_SUPPORT |
| 458 | EXTLIBS += -laudit | 458 | EXTLIBS += -laudit |
| 459 | $(call detected,CONFIG_AUDIT) | ||
| 459 | endif | 460 | endif |
| 460 | endif | 461 | endif |
| 461 | 462 | ||
| @@ -831,3 +832,6 @@ $(call detected_var,PYTHON_WORD) | |||
| 831 | ifneq ($(OUTPUT),) | 832 | ifneq ($(OUTPUT),) |
| 832 | $(call detected_var,OUTPUT) | 833 | $(call detected_var,OUTPUT) |
| 833 | endif | 834 | endif |
| 835 | $(call detected_var,htmldir_SQ) | ||
| 836 | $(call detected_var,infodir_SQ) | ||
| 837 | $(call detected_var,mandir_SQ) | ||
