3 perf-y += block-range.o
14 perf-y += evsel_fprintf.o
15 perf-y += perf_event_attr_fprintf.o
18 perf-y += get_current_dir_name.o
20 perf-y += levenshtein.o
21 perf-y += llvm-utils.o
24 perf-y += parse-events.o
27 perf-y += print_binary.o
29 perf-y += argv_split.o
44 perf-y += symbol_fprintf.o
46 perf-y += color_config.o
47 perf-y += metricgroup.o
57 perf-y += sample-raw.o
58 perf-y += s390-sample-raw.o
59 perf-$(CONFIG_TRACE) += syscalltbl.o
60 perf-y += ordered-events.o
61 perf-y += namespaces.o
64 perf-y += thread_map.o
65 perf-y += trace-event-parse.o
66 perf-y += parse-events-flex.o
67 perf-y += parse-events-bison.o
71 perf-y += trace-event-read.o
72 perf-y += trace-event-info.o
73 perf-y += trace-event-scripting.o
74 perf-y += trace-event.o
89 perf-y += stat-shadow.o
90 perf-y += stat-display.o
94 perf-y += synthetic-events.o
100 perf-y += thread-stack.o
102 perf-$(CONFIG_AUXTRACE) += auxtrace.o
103 perf-$(CONFIG_AUXTRACE) += intel-pt-decoder/
104 perf-$(CONFIG_AUXTRACE) += intel-pt.o
105 perf-$(CONFIG_AUXTRACE) += intel-bts.o
106 perf-$(CONFIG_AUXTRACE) += arm-spe.o
107 perf-$(CONFIG_AUXTRACE) += arm-spe-pkt-decoder.o
108 perf-$(CONFIG_AUXTRACE) += s390-cpumsf.o
110 ifdef CONFIG_LIBOPENCSD
111 perf-$(CONFIG_AUXTRACE) += cs-etm.o
112 perf-$(CONFIG_AUXTRACE) += cs-etm-decoder/
115 perf-y += parse-branch-options.o
116 perf-y += dump-insn.o
117 perf-y += parse-regs-options.o
119 perf-y += help-unknown-cmd.o
120 perf-y += mem-events.o
123 perf-y += time-utils.o
124 perf-y += expr-bison.o
128 perf-$(CONFIG_LIBBPF) += bpf-loader.o
129 perf-$(CONFIG_LIBBPF) += bpf_map.o
130 perf-$(CONFIG_BPF_PROLOGUE) += bpf-prologue.o
131 perf-$(CONFIG_LIBELF) += symbol-elf.o
132 perf-$(CONFIG_LIBELF) += probe-file.o
133 perf-$(CONFIG_LIBELF) += probe-event.o
136 perf-y += symbol-minimal.o
143 perf-$(CONFIG_DWARF) += probe-finder.o
144 perf-$(CONFIG_DWARF) += dwarf-aux.o
145 perf-$(CONFIG_DWARF) += dwarf-regs.o
147 perf-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o
148 perf-$(CONFIG_LOCAL_LIBUNWIND) += unwind-libunwind-local.o
149 perf-$(CONFIG_LIBUNWIND) += unwind-libunwind.o
150 perf-$(CONFIG_LIBUNWIND_X86) += libunwind/x86_32.o
151 perf-$(CONFIG_LIBUNWIND_AARCH64) += libunwind/arm64.o
153 perf-$(CONFIG_LIBBABELTRACE) += data-convert-bt.o
155 perf-y += scripting-engines/
157 perf-$(CONFIG_ZLIB) += zlib.o
158 perf-$(CONFIG_LZMA) += lzma.o
159 perf-$(CONFIG_ZSTD) += zstd.o
161 perf-$(CONFIG_LIBCAP) += cap.o
163 perf-y += demangle-java.o
164 perf-y += demangle-rust.o
167 perf-$(CONFIG_LIBELF) += jitdump.o
168 perf-$(CONFIG_LIBELF) += genelf.o
169 perf-$(CONFIG_DWARF) += genelf_debug.o
172 perf-y += perf-hooks.o
174 perf-$(CONFIG_LIBBPF) += bpf-event.o
176 perf-$(CONFIG_CXX) += c++/
178 CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
179 CFLAGS_llvm-utils.o += -DPERF_INCLUDE_DIR="BUILD_STR($(perf_include_dir_SQ))"
181 # avoid compiler warnings in 32-bit mode
182 CFLAGS_genelf_debug.o += -Wno-packed
184 $(OUTPUT)util/parse-events-flex.c: util/parse-events.l $(OUTPUT)util/parse-events-bison.c
186 $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/parse-events-flex.h $(PARSER_DEBUG_FLEX) util/parse-events.l
188 $(OUTPUT)util/parse-events-bison.c: util/parse-events.y
190 $(Q)$(call echo-cmd,bison)$(BISON) -v util/parse-events.y -d $(PARSER_DEBUG_BISON) -o $@ -p parse_events_
192 $(OUTPUT)util/expr-bison.c: util/expr.y
194 $(Q)$(call echo-cmd,bison)$(BISON) -v util/expr.y -d $(PARSER_DEBUG_BISON) -o $@ -p expr__
196 $(OUTPUT)util/pmu-flex.c: util/pmu.l $(OUTPUT)util/pmu-bison.c
198 $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/pmu-flex.h util/pmu.l
200 $(OUTPUT)util/pmu-bison.c: util/pmu.y
202 $(Q)$(call echo-cmd,bison)$(BISON) -v util/pmu.y -d -o $@ -p perf_pmu_
204 CFLAGS_parse-events-flex.o += -w
205 CFLAGS_pmu-flex.o += -w
206 CFLAGS_parse-events-bison.o += -DYYENABLE_NLS=0 -w
207 CFLAGS_pmu-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w
208 CFLAGS_expr-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w
210 $(OUTPUT)util/parse-events.o: $(OUTPUT)util/parse-events-flex.c $(OUTPUT)util/parse-events-bison.c
211 $(OUTPUT)util/pmu.o: $(OUTPUT)util/pmu-flex.c $(OUTPUT)util/pmu-bison.c
213 CFLAGS_bitmap.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
214 CFLAGS_find_bit.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
215 CFLAGS_rbtree.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
216 CFLAGS_libstring.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
217 CFLAGS_hweight.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
218 CFLAGS_parse-events.o += -Wno-redundant-decls
219 CFLAGS_header.o += -include $(OUTPUT)PERF-VERSION-FILE
221 $(OUTPUT)util/kallsyms.o: ../lib/symbol/kallsyms.c FORCE
223 $(call if_changed_dep,cc_o_c)
225 $(OUTPUT)util/argv_split.o: ../lib/argv_split.c FORCE
227 $(call if_changed_dep,cc_o_c)
229 $(OUTPUT)util/bitmap.o: ../lib/bitmap.c FORCE
231 $(call if_changed_dep,cc_o_c)
233 $(OUTPUT)util/ctype.o: ../lib/ctype.c FORCE
235 $(call if_changed_dep,cc_o_c)
237 $(OUTPUT)util/find_bit.o: ../lib/find_bit.c FORCE
239 $(call if_changed_dep,cc_o_c)
241 $(OUTPUT)util/rbtree.o: ../lib/rbtree.c FORCE
243 $(call if_changed_dep,cc_o_c)
245 $(OUTPUT)util/libstring.o: ../lib/string.c FORCE
247 $(call if_changed_dep,cc_o_c)
249 $(OUTPUT)util/hweight.o: ../lib/hweight.c FORCE
251 $(call if_changed_dep,cc_o_c)
253 $(OUTPUT)util/vsprintf.o: ../lib/vsprintf.c FORCE
255 $(call if_changed_dep,cc_o_c)