2 perf-y += block-range.o
11 perf-y += evsel_fprintf.o
13 perf-y += get_current_dir_name.o
15 perf-y += levenshtein.o
16 perf-y += llvm-utils.o
19 perf-y += parse-events.o
22 perf-y += print_binary.o
36 perf-y += symbol_fprintf.o
38 perf-y += color_config.o
39 perf-y += metricgroup.o
48 perf-y += sample-raw.o
49 perf-y += s390-sample-raw.o
50 perf-$(CONFIG_TRACE) += syscalltbl.o
51 perf-y += ordered-events.o
52 perf-y += namespaces.o
55 perf-y += thread_map.o
56 perf-y += trace-event-parse.o
57 perf-y += parse-events-flex.o
58 perf-y += parse-events-bison.o
62 perf-y += trace-event-read.o
63 perf-y += trace-event-info.o
64 perf-y += trace-event-scripting.o
65 perf-y += trace-event.o
80 perf-y += stat-shadow.o
81 perf-y += stat-display.o
90 perf-y += thread-stack.o
91 perf-$(CONFIG_AUXTRACE) += auxtrace.o
92 perf-$(CONFIG_AUXTRACE) += intel-pt-decoder/
93 perf-$(CONFIG_AUXTRACE) += intel-pt.o
94 perf-$(CONFIG_AUXTRACE) += intel-bts.o
95 perf-$(CONFIG_AUXTRACE) += arm-spe.o
96 perf-$(CONFIG_AUXTRACE) += arm-spe-pkt-decoder.o
97 perf-$(CONFIG_AUXTRACE) += s390-cpumsf.o
99 ifdef CONFIG_LIBOPENCSD
100 perf-$(CONFIG_AUXTRACE) += cs-etm.o
101 perf-$(CONFIG_AUXTRACE) += cs-etm-decoder/
104 perf-y += parse-branch-options.o
105 perf-y += dump-insn.o
106 perf-y += parse-regs-options.o
108 perf-y += help-unknown-cmd.o
109 perf-y += mem-events.o
112 perf-y += time-utils.o
113 perf-y += expr-bison.o
117 perf-$(CONFIG_LIBBPF) += bpf-loader.o
118 perf-$(CONFIG_LIBBPF) += bpf_map.o
119 perf-$(CONFIG_BPF_PROLOGUE) += bpf-prologue.o
120 perf-$(CONFIG_LIBELF) += symbol-elf.o
121 perf-$(CONFIG_LIBELF) += probe-file.o
122 perf-$(CONFIG_LIBELF) += probe-event.o
125 perf-y += symbol-minimal.o
132 perf-$(CONFIG_DWARF) += probe-finder.o
133 perf-$(CONFIG_DWARF) += dwarf-aux.o
134 perf-$(CONFIG_DWARF) += dwarf-regs.o
136 perf-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o
137 perf-$(CONFIG_LOCAL_LIBUNWIND) += unwind-libunwind-local.o
138 perf-$(CONFIG_LIBUNWIND) += unwind-libunwind.o
139 perf-$(CONFIG_LIBUNWIND_X86) += libunwind/x86_32.o
140 perf-$(CONFIG_LIBUNWIND_AARCH64) += libunwind/arm64.o
142 perf-$(CONFIG_LIBBABELTRACE) += data-convert-bt.o
144 perf-y += scripting-engines/
146 perf-$(CONFIG_ZLIB) += zlib.o
147 perf-$(CONFIG_LZMA) += lzma.o
148 perf-y += demangle-java.o
149 perf-y += demangle-rust.o
152 perf-$(CONFIG_LIBELF) += jitdump.o
153 perf-$(CONFIG_LIBELF) += genelf.o
154 perf-$(CONFIG_DWARF) += genelf_debug.o
157 perf-y += perf-hooks.o
159 perf-$(CONFIG_LIBBPF) += bpf-event.o
161 perf-$(CONFIG_CXX) += c++/
163 CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
164 CFLAGS_llvm-utils.o += -DPERF_INCLUDE_DIR="BUILD_STR($(perf_include_dir_SQ))"
166 # avoid compiler warnings in 32-bit mode
167 CFLAGS_genelf_debug.o += -Wno-packed
169 $(OUTPUT)util/parse-events-flex.c: util/parse-events.l $(OUTPUT)util/parse-events-bison.c
171 $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/parse-events-flex.h $(PARSER_DEBUG_FLEX) util/parse-events.l
173 $(OUTPUT)util/parse-events-bison.c: util/parse-events.y
175 $(Q)$(call echo-cmd,bison)$(BISON) -v util/parse-events.y -d $(PARSER_DEBUG_BISON) -o $@ -p parse_events_
177 $(OUTPUT)util/expr-bison.c: util/expr.y
179 $(Q)$(call echo-cmd,bison)$(BISON) -v util/expr.y -d $(PARSER_DEBUG_BISON) -o $@ -p expr__
181 $(OUTPUT)util/pmu-flex.c: util/pmu.l $(OUTPUT)util/pmu-bison.c
183 $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/pmu-flex.h util/pmu.l
185 $(OUTPUT)util/pmu-bison.c: util/pmu.y
187 $(Q)$(call echo-cmd,bison)$(BISON) -v util/pmu.y -d -o $@ -p perf_pmu_
189 CFLAGS_parse-events-flex.o += -w
190 CFLAGS_pmu-flex.o += -w
191 CFLAGS_parse-events-bison.o += -DYYENABLE_NLS=0 -w
192 CFLAGS_pmu-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w
193 CFLAGS_expr-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w
195 $(OUTPUT)util/parse-events.o: $(OUTPUT)util/parse-events-flex.c $(OUTPUT)util/parse-events-bison.c
196 $(OUTPUT)util/pmu.o: $(OUTPUT)util/pmu-flex.c $(OUTPUT)util/pmu-bison.c
198 CFLAGS_bitmap.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
199 CFLAGS_find_bit.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
200 CFLAGS_rbtree.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
201 CFLAGS_libstring.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
202 CFLAGS_hweight.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
203 CFLAGS_parse-events.o += -Wno-redundant-decls
204 CFLAGS_header.o += -include $(OUTPUT)PERF-VERSION-FILE
206 $(OUTPUT)util/kallsyms.o: ../lib/symbol/kallsyms.c FORCE
208 $(call if_changed_dep,cc_o_c)
210 $(OUTPUT)util/bitmap.o: ../lib/bitmap.c FORCE
212 $(call if_changed_dep,cc_o_c)
214 $(OUTPUT)util/find_bit.o: ../lib/find_bit.c FORCE
216 $(call if_changed_dep,cc_o_c)
218 $(OUTPUT)util/rbtree.o: ../lib/rbtree.c FORCE
220 $(call if_changed_dep,cc_o_c)
222 $(OUTPUT)util/libstring.o: ../lib/string.c FORCE
224 $(call if_changed_dep,cc_o_c)
226 $(OUTPUT)util/hweight.o: ../lib/hweight.c FORCE
228 $(call if_changed_dep,cc_o_c)
230 $(OUTPUT)util/vsprintf.o: ../lib/vsprintf.c FORCE
232 $(call if_changed_dep,cc_o_c)