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-$(CONFIG_ZSTD) += zstd.o
150 perf-y += demangle-java.o
151 perf-y += demangle-rust.o
154 perf-$(CONFIG_LIBELF) += jitdump.o
155 perf-$(CONFIG_LIBELF) += genelf.o
156 perf-$(CONFIG_DWARF) += genelf_debug.o
159 perf-y += perf-hooks.o
161 perf-$(CONFIG_LIBBPF) += bpf-event.o
163 perf-$(CONFIG_CXX) += c++/
165 CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
166 CFLAGS_llvm-utils.o += -DPERF_INCLUDE_DIR="BUILD_STR($(perf_include_dir_SQ))"
168 # avoid compiler warnings in 32-bit mode
169 CFLAGS_genelf_debug.o += -Wno-packed
171 $(OUTPUT)util/parse-events-flex.c: util/parse-events.l $(OUTPUT)util/parse-events-bison.c
173 $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/parse-events-flex.h $(PARSER_DEBUG_FLEX) util/parse-events.l
175 $(OUTPUT)util/parse-events-bison.c: util/parse-events.y
177 $(Q)$(call echo-cmd,bison)$(BISON) -v util/parse-events.y -d $(PARSER_DEBUG_BISON) -o $@ -p parse_events_
179 $(OUTPUT)util/expr-bison.c: util/expr.y
181 $(Q)$(call echo-cmd,bison)$(BISON) -v util/expr.y -d $(PARSER_DEBUG_BISON) -o $@ -p expr__
183 $(OUTPUT)util/pmu-flex.c: util/pmu.l $(OUTPUT)util/pmu-bison.c
185 $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/pmu-flex.h util/pmu.l
187 $(OUTPUT)util/pmu-bison.c: util/pmu.y
189 $(Q)$(call echo-cmd,bison)$(BISON) -v util/pmu.y -d -o $@ -p perf_pmu_
191 CFLAGS_parse-events-flex.o += -w
192 CFLAGS_pmu-flex.o += -w
193 CFLAGS_parse-events-bison.o += -DYYENABLE_NLS=0 -w
194 CFLAGS_pmu-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w
195 CFLAGS_expr-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w
197 $(OUTPUT)util/parse-events.o: $(OUTPUT)util/parse-events-flex.c $(OUTPUT)util/parse-events-bison.c
198 $(OUTPUT)util/pmu.o: $(OUTPUT)util/pmu-flex.c $(OUTPUT)util/pmu-bison.c
200 CFLAGS_bitmap.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
201 CFLAGS_find_bit.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
202 CFLAGS_rbtree.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
203 CFLAGS_libstring.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
204 CFLAGS_hweight.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
205 CFLAGS_parse-events.o += -Wno-redundant-decls
206 CFLAGS_header.o += -include $(OUTPUT)PERF-VERSION-FILE
208 $(OUTPUT)util/kallsyms.o: ../lib/symbol/kallsyms.c FORCE
210 $(call if_changed_dep,cc_o_c)
212 $(OUTPUT)util/bitmap.o: ../lib/bitmap.c FORCE
214 $(call if_changed_dep,cc_o_c)
216 $(OUTPUT)util/find_bit.o: ../lib/find_bit.c FORCE
218 $(call if_changed_dep,cc_o_c)
220 $(OUTPUT)util/rbtree.o: ../lib/rbtree.c FORCE
222 $(call if_changed_dep,cc_o_c)
224 $(OUTPUT)util/libstring.o: ../lib/string.c FORCE
226 $(call if_changed_dep,cc_o_c)
228 $(OUTPUT)util/hweight.o: ../lib/hweight.c FORCE
230 $(call if_changed_dep,cc_o_c)
232 $(OUTPUT)util/vsprintf.o: ../lib/vsprintf.c FORCE
234 $(call if_changed_dep,cc_o_c)