diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2009-10-17 11:12:33 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-10-19 03:26:34 -0400 |
commit | 5a116dd2797677cad48fee2f42267e3cb69f5502 (patch) | |
tree | 94bc08d8c234e26c8b8caa156815964e0a56f159 /tools/perf/Makefile | |
parent | 11018201b831e19304c0d639f105ad6c27e120b1 (diff) |
perf tools: Use kernel bitmap library
Use the kernel bitmap library for internal perf tools uses.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <1255792354-11304-1-git-send-email-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r-- | tools/perf/Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index 106c15055b50..2400e5068a2f 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
@@ -363,6 +363,9 @@ LIB_OBJS += util/parse-options.o | |||
363 | LIB_OBJS += util/parse-events.o | 363 | LIB_OBJS += util/parse-events.o |
364 | LIB_OBJS += util/path.o | 364 | LIB_OBJS += util/path.o |
365 | LIB_OBJS += util/rbtree.o | 365 | LIB_OBJS += util/rbtree.o |
366 | LIB_OBJS += util/bitmap.o | ||
367 | LIB_OBJS += util/hweight.o | ||
368 | LIB_OBJS += util/find_next_bit.o | ||
366 | LIB_OBJS += util/run-command.o | 369 | LIB_OBJS += util/run-command.o |
367 | LIB_OBJS += util/quote.o | 370 | LIB_OBJS += util/quote.o |
368 | LIB_OBJS += util/strbuf.o | 371 | LIB_OBJS += util/strbuf.o |
@@ -790,6 +793,19 @@ util/config.o: util/config.c PERF-CFLAGS | |||
790 | util/rbtree.o: ../../lib/rbtree.c PERF-CFLAGS | 793 | util/rbtree.o: ../../lib/rbtree.c PERF-CFLAGS |
791 | $(QUIET_CC)$(CC) -o util/rbtree.o -c $(ALL_CFLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $< | 794 | $(QUIET_CC)$(CC) -o util/rbtree.o -c $(ALL_CFLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $< |
792 | 795 | ||
796 | # some perf warning policies can't fit to lib/bitmap.c, eg: it warns about variable shadowing | ||
797 | # from <string.h> that comes from kernel headers wrapping. | ||
798 | KBITMAP_FLAGS=`echo $(ALL_CFLAGS) | sed s/-Wshadow// | sed s/-Wswitch-default// | sed s/-Wextra//` | ||
799 | |||
800 | util/bitmap.o: ../../lib/bitmap.c PERF-CFLAGS | ||
801 | $(QUIET_CC)$(CC) -o util/bitmap.o -c $(KBITMAP_FLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $< | ||
802 | |||
803 | util/hweight.o: ../../lib/hweight.c PERF-CFLAGS | ||
804 | $(QUIET_CC)$(CC) -o util/hweight.o -c $(ALL_CFLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $< | ||
805 | |||
806 | util/find_next_bit.o: ../../lib/find_next_bit.c PERF-CFLAGS | ||
807 | $(QUIET_CC)$(CC) -o util/find_next_bit.o -c $(ALL_CFLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $< | ||
808 | |||
793 | perf-%$X: %.o $(PERFLIBS) | 809 | perf-%$X: %.o $(PERFLIBS) |
794 | $(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS) | 810 | $(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS) |
795 | 811 | ||