diff options
author | Ingo Molnar <mingo@kernel.org> | 2012-05-21 04:42:09 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2012-05-21 04:42:09 -0400 |
commit | 73787190d04a34e6da745da893b3ae8bedde418f (patch) | |
tree | bc1046eb1864237741898992673f17c577b83929 /tools/perf/Makefile | |
parent | 6f5e3577d47aeb4ef39683cbf9e201554bc7054d (diff) | |
parent | 1c698186abf5caaea06fda66590f6a0e0a21628d (diff) |
Merge branch 'perf/parse-events-4' of git://github.com/fweisbec/tracing into perf/core
Conflicts:
tools/perf/Makefile
This tree from Frederic unifies the perf and trace-cmd trace event format
parsing code into a single library.
Powertop and other tools will also be able to make use of it.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r-- | tools/perf/Makefile | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index 398094c3d3c9..fa37cd53e9b9 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
@@ -149,7 +149,7 @@ endif | |||
149 | 149 | ||
150 | ### --- END CONFIGURATION SECTION --- | 150 | ### --- END CONFIGURATION SECTION --- |
151 | 151 | ||
152 | BASIC_CFLAGS = -Iutil/include -Iarch/$(ARCH)/include -I$(OUTPUT)/util -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE | 152 | BASIC_CFLAGS = -Iutil/include -Iarch/$(ARCH)/include -I$(OUTPUT)/util -I$(EVENT_PARSE_DIR) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE |
153 | BASIC_LDFLAGS = | 153 | BASIC_LDFLAGS = |
154 | 154 | ||
155 | # Guard against environment variables | 155 | # Guard against environment variables |
@@ -178,6 +178,17 @@ $(OUTPUT)python/perf.so: $(PYRF_OBJS) $(PYTHON_EXT_SRCS) $(PYTHON_EXT_DEPS) | |||
178 | 178 | ||
179 | SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)) | 179 | SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)) |
180 | 180 | ||
181 | EVENT_PARSE_DIR = ../lib/traceevent/ | ||
182 | |||
183 | ifeq ("$(origin O)", "command line") | ||
184 | EP_PATH=$(OUTPUT)/ | ||
185 | else | ||
186 | EP_PATH=$(EVENT_PARSE_DIR)/ | ||
187 | endif | ||
188 | |||
189 | LIBPARSEVENT = $(EP_PATH)libtraceevent.a | ||
190 | EP_LIB := -L$(EP_PATH) -ltraceevent | ||
191 | |||
181 | # | 192 | # |
182 | # Single 'perf' binary right now: | 193 | # Single 'perf' binary right now: |
183 | # | 194 | # |
@@ -300,6 +311,7 @@ LIB_H += util/cpumap.h | |||
300 | LIB_H += util/top.h | 311 | LIB_H += util/top.h |
301 | LIB_H += $(ARCH_INCLUDE) | 312 | LIB_H += $(ARCH_INCLUDE) |
302 | LIB_H += util/cgroup.h | 313 | LIB_H += util/cgroup.h |
314 | LIB_H += $(EVENT_PARSE_DIR)event-parse.h | ||
303 | LIB_H += util/target.h | 315 | LIB_H += util/target.h |
304 | 316 | ||
305 | LIB_OBJS += $(OUTPUT)util/abspath.o | 317 | LIB_OBJS += $(OUTPUT)util/abspath.o |
@@ -398,7 +410,7 @@ BUILTIN_OBJS += $(OUTPUT)builtin-kvm.o | |||
398 | BUILTIN_OBJS += $(OUTPUT)builtin-test.o | 410 | BUILTIN_OBJS += $(OUTPUT)builtin-test.o |
399 | BUILTIN_OBJS += $(OUTPUT)builtin-inject.o | 411 | BUILTIN_OBJS += $(OUTPUT)builtin-inject.o |
400 | 412 | ||
401 | PERFLIBS = $(LIB_FILE) | 413 | PERFLIBS = $(LIB_FILE) $(LIBPARSEVENT) |
402 | 414 | ||
403 | # Files needed for the python binding, perf.so | 415 | # Files needed for the python binding, perf.so |
404 | # pyrf is just an internal name needed for all those wrappers. | 416 | # pyrf is just an internal name needed for all those wrappers. |
@@ -807,6 +819,10 @@ $(sort $(dir $(DIRECTORY_DEPS))): | |||
807 | $(LIB_FILE): $(LIB_OBJS) | 819 | $(LIB_FILE): $(LIB_OBJS) |
808 | $(QUIET_AR)$(RM) $@ && $(AR) rcs $@ $(LIB_OBJS) | 820 | $(QUIET_AR)$(RM) $@ && $(AR) rcs $@ $(LIB_OBJS) |
809 | 821 | ||
822 | # libparsevent.a | ||
823 | $(LIBPARSEVENT): | ||
824 | make -C $(EVENT_PARSE_DIR) $(COMMAND_O) libtraceevent.a | ||
825 | |||
810 | help: | 826 | help: |
811 | @echo 'Perf make targets:' | 827 | @echo 'Perf make targets:' |
812 | @echo ' doc - make *all* documentation (see below)' | 828 | @echo ' doc - make *all* documentation (see below)' |