aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/perf_counter/Makefile
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-04-27 02:02:14 -0400
committerIngo Molnar <mingo@elte.hu>2009-04-27 03:05:08 -0400
commit148be2c15d4a866fbc7a8f55342e4fd4de73be61 (patch)
treea99f8c85552166f187a233ce29eb442f27fe620d /Documentation/perf_counter/Makefile
parentf1f9b3b1795da8625e0e6096813c9d18d4a344ce (diff)
perf_counter tools: move helper library to util/*
Clean up the top level directory a bit by moving all the helper libraries to util/*.[ch]. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'Documentation/perf_counter/Makefile')
-rw-r--r--Documentation/perf_counter/Makefile60
1 files changed, 31 insertions, 29 deletions
diff --git a/Documentation/perf_counter/Makefile b/Documentation/perf_counter/Makefile
index 690045e49692..543ccf28ac4a 100644
--- a/Documentation/perf_counter/Makefile
+++ b/Documentation/perf_counter/Makefile
@@ -147,7 +147,7 @@ all::
147# broken, or spawning external process is slower than built-in grep perf has). 147# broken, or spawning external process is slower than built-in grep perf has).
148 148
149PERF-VERSION-FILE: .FORCE-PERF-VERSION-FILE 149PERF-VERSION-FILE: .FORCE-PERF-VERSION-FILE
150 @$(SHELL_PATH) ./PERF-VERSION-GEN 150 @$(SHELL_PATH) util/PERF-VERSION-GEN
151-include PERF-VERSION-FILE 151-include PERF-VERSION-FILE
152 152
153uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not') 153uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
@@ -287,26 +287,28 @@ export PERL_PATH
287LIB_FILE=libperf.a 287LIB_FILE=libperf.a
288 288
289LIB_H += ../../include/linux/perf_counter.h 289LIB_H += ../../include/linux/perf_counter.h
290LIB_H += levenshtein.h 290LIB_H += util/levenshtein.h
291LIB_H += parse-options.h 291LIB_H += util/parse-options.h
292LIB_H += quote.h 292LIB_H += util/quote.h
293LIB_H += strbuf.h 293LIB_H += util/util.h
294LIB_H += run-command.h 294LIB_H += util/help.h
295 295LIB_H += util/strbuf.h
296LIB_OBJS += abspath.o 296LIB_H += util/run-command.h
297LIB_OBJS += alias.o 297
298LIB_OBJS += config.o 298LIB_OBJS += util/abspath.o
299LIB_OBJS += ctype.o 299LIB_OBJS += util/alias.o
300LIB_OBJS += exec_cmd.o 300LIB_OBJS += util/config.o
301LIB_OBJS += help.o 301LIB_OBJS += util/ctype.o
302LIB_OBJS += levenshtein.o 302LIB_OBJS += util/exec_cmd.o
303LIB_OBJS += parse-options.o 303LIB_OBJS += util/help.o
304LIB_OBJS += path.o 304LIB_OBJS += util/levenshtein.o
305LIB_OBJS += run-command.o 305LIB_OBJS += util/parse-options.o
306LIB_OBJS += quote.o 306LIB_OBJS += util/path.o
307LIB_OBJS += strbuf.o 307LIB_OBJS += util/run-command.o
308LIB_OBJS += usage.o 308LIB_OBJS += util/quote.o
309LIB_OBJS += wrapper.o 309LIB_OBJS += util/strbuf.o
310LIB_OBJS += util/usage.o
311LIB_OBJS += util/wrapper.o
310 312
311BUILTIN_OBJS += builtin-help.o 313BUILTIN_OBJS += builtin-help.o
312BUILTIN_OBJS += builtin-record.o 314BUILTIN_OBJS += builtin-record.o
@@ -620,10 +622,10 @@ $(BUILT_INS): perf$X
620 ln -s perf$X $@ 2>/dev/null || \ 622 ln -s perf$X $@ 2>/dev/null || \
621 cp perf$X $@ 623 cp perf$X $@
622 624
623common-cmds.h: ./generate-cmdlist.sh command-list.txt 625common-cmds.h: util/generate-cmdlist.sh command-list.txt
624 626
625common-cmds.h: $(wildcard Documentation/perf-*.txt) 627common-cmds.h: $(wildcard Documentation/perf-*.txt)
626 $(QUIET_GEN)./generate-cmdlist.sh > $@+ && mv $@+ $@ 628 $(QUIET_GEN)util/generate-cmdlist.sh > $@+ && mv $@+ $@
627 629
628$(patsubst %.sh,%,$(SCRIPT_SH)) : % : %.sh 630$(patsubst %.sh,%,$(SCRIPT_SH)) : % : %.sh
629 $(QUIET_GEN)$(RM) $@ $@+ && \ 631 $(QUIET_GEN)$(RM) $@ $@+ && \
@@ -656,7 +658,7 @@ perf.o perf.spec \
656%.o: %.S 658%.o: %.S
657 $(QUIET_CC)$(CC) -o $*.o -c $(ALL_CFLAGS) $< 659 $(QUIET_CC)$(CC) -o $*.o -c $(ALL_CFLAGS) $<
658 660
659exec_cmd.o: exec_cmd.c PERF-CFLAGS 661util/exec_cmd.o: util/exec_cmd.c PERF-CFLAGS
660 $(QUIET_CC)$(CC) -o $*.o -c $(ALL_CFLAGS) \ 662 $(QUIET_CC)$(CC) -o $*.o -c $(ALL_CFLAGS) \
661 '-DPERF_EXEC_PATH="$(perfexecdir_SQ)"' \ 663 '-DPERF_EXEC_PATH="$(perfexecdir_SQ)"' \
662 '-DBINDIR="$(bindir_relative_SQ)"' \ 664 '-DBINDIR="$(bindir_relative_SQ)"' \
@@ -666,7 +668,7 @@ exec_cmd.o: exec_cmd.c PERF-CFLAGS
666builtin-init-db.o: builtin-init-db.c PERF-CFLAGS 668builtin-init-db.o: builtin-init-db.c PERF-CFLAGS
667 $(QUIET_CC)$(CC) -o $*.o -c $(ALL_CFLAGS) -DDEFAULT_PERF_TEMPLATE_DIR='"$(template_dir_SQ)"' $< 669 $(QUIET_CC)$(CC) -o $*.o -c $(ALL_CFLAGS) -DDEFAULT_PERF_TEMPLATE_DIR='"$(template_dir_SQ)"' $<
668 670
669config.o: config.c PERF-CFLAGS 671util/config.o: util/config.c PERF-CFLAGS
670 $(QUIET_CC)$(CC) -o $*.o -c $(ALL_CFLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $< 672 $(QUIET_CC)$(CC) -o $*.o -c $(ALL_CFLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $<
671 673
672perf-%$X: %.o $(PERFLIBS) 674perf-%$X: %.o $(PERFLIBS)
@@ -729,7 +731,7 @@ export NO_SVN_TESTS
729check: common-cmds.h 731check: common-cmds.h
730 if sparse; \ 732 if sparse; \
731 then \ 733 then \
732 for i in *.c; \ 734 for i in *.c */*.c; \
733 do \ 735 do \
734 sparse $(ALL_CFLAGS) $(SPARSE_FLAGS) $$i || exit; \ 736 sparse $(ALL_CFLAGS) $(SPARSE_FLAGS) $$i || exit; \
735 done; \ 737 done; \
@@ -795,7 +797,7 @@ distclean: clean
795 $(RM) configure 797 $(RM) configure
796 798
797clean: 799clean:
798 $(RM) *.o $(LIB_FILE) 800 $(RM) *.o */*.o $(LIB_FILE)
799 $(RM) $(ALL_PROGRAMS) $(BUILT_INS) perf$X 801 $(RM) $(ALL_PROGRAMS) $(BUILT_INS) perf$X
800 $(RM) $(TEST_PROGRAMS) 802 $(RM) $(TEST_PROGRAMS)
801 $(RM) *.spec *.pyc *.pyo */*.pyc */*.pyo common-cmds.h TAGS tags cscope* 803 $(RM) *.spec *.pyc *.pyo */*.pyc */*.pyo common-cmds.h TAGS tags cscope*
@@ -836,7 +838,7 @@ coverage-build: coverage-clean
836 -j1 test 838 -j1 test
837 839
838coverage-report: 840coverage-report:
839 gcov -b *.c 841 gcov -b *.c */*.c
840 grep '^function.*called 0 ' *.c.gcov \ 842 grep '^function.*called 0 ' *.c.gcov */*.c.gcov \
841 | sed -e 's/\([^:]*\)\.gcov: *function \([^ ]*\) called.*/\1: \2/' \ 843 | sed -e 's/\([^:]*\)\.gcov: *function \([^ ]*\) called.*/\1: \2/' \
842 | tee coverage-untested-functions 844 | tee coverage-untested-functions