aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/Makefile
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2009-10-17 11:12:33 -0400
committerIngo Molnar <mingo@elte.hu>2009-10-19 03:26:34 -0400
commit5a116dd2797677cad48fee2f42267e3cb69f5502 (patch)
tree94bc08d8c234e26c8b8caa156815964e0a56f159 /tools/perf/Makefile
parent11018201b831e19304c0d639f105ad6c27e120b1 (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/Makefile16
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
363LIB_OBJS += util/parse-events.o 363LIB_OBJS += util/parse-events.o
364LIB_OBJS += util/path.o 364LIB_OBJS += util/path.o
365LIB_OBJS += util/rbtree.o 365LIB_OBJS += util/rbtree.o
366LIB_OBJS += util/bitmap.o
367LIB_OBJS += util/hweight.o
368LIB_OBJS += util/find_next_bit.o
366LIB_OBJS += util/run-command.o 369LIB_OBJS += util/run-command.o
367LIB_OBJS += util/quote.o 370LIB_OBJS += util/quote.o
368LIB_OBJS += util/strbuf.o 371LIB_OBJS += util/strbuf.o
@@ -790,6 +793,19 @@ util/config.o: util/config.c PERF-CFLAGS
790util/rbtree.o: ../../lib/rbtree.c PERF-CFLAGS 793util/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.
798KBITMAP_FLAGS=`echo $(ALL_CFLAGS) | sed s/-Wshadow// | sed s/-Wswitch-default// | sed s/-Wextra//`
799
800util/bitmap.o: ../../lib/bitmap.c PERF-CFLAGS
801 $(QUIET_CC)$(CC) -o util/bitmap.o -c $(KBITMAP_FLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $<
802
803util/hweight.o: ../../lib/hweight.c PERF-CFLAGS
804 $(QUIET_CC)$(CC) -o util/hweight.o -c $(ALL_CFLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $<
805
806util/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
793perf-%$X: %.o $(PERFLIBS) 809perf-%$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