]>
Commit | Line | Data |
---|---|---|
5ff32883 | 1 | perf-y += annotate.o |
60414418 | 2 | perf-y += block-info.o |
5ff32883 JO |
3 | perf-y += block-range.o |
4 | perf-y += build-id.o | |
12500902 | 5 | perf-y += cacheline.o |
5ff32883 | 6 | perf-y += config.o |
32ff3fec | 7 | perf-y += copyfile.o |
5ff32883 JO |
8 | perf-y += ctype.o |
9 | perf-y += db-export.o | |
10 | perf-y += env.o | |
11 | perf-y += event.o | |
12 | perf-y += evlist.o | |
b53a0755 | 13 | perf-y += evlist-hybrid.o |
9a399944 | 14 | perf-y += sideband_evlist.o |
5ff32883 JO |
15 | perf-y += evsel.o |
16 | perf-y += evsel_fprintf.o | |
ca125277 | 17 | perf-y += perf_event_attr_fprintf.o |
8829e56f | 18 | perf-y += evswitch.o |
5ff32883 JO |
19 | perf-y += find_bit.o |
20 | perf-y += get_current_dir_name.o | |
21 | perf-y += kallsyms.o | |
22 | perf-y += levenshtein.o | |
23 | perf-y += llvm-utils.o | |
24 | perf-y += mmap.o | |
25 | perf-y += memswap.o | |
26 | perf-y += parse-events.o | |
9cbfa2f6 | 27 | perf-y += parse-events-hybrid.o |
5ff32883 JO |
28 | perf-y += perf_regs.o |
29 | perf-y += path.o | |
30 | perf-y += print_binary.o | |
4975223b | 31 | perf-y += rlimit.o |
9c10548c | 32 | perf-y += argv_split.o |
5ff32883 JO |
33 | perf-y += rbtree.o |
34 | perf-y += libstring.o | |
35 | perf-y += bitmap.o | |
36 | perf-y += hweight.o | |
37 | perf-y += smt.o | |
38 | perf-y += strbuf.o | |
39 | perf-y += string.o | |
40 | perf-y += strlist.o | |
41 | perf-y += strfilter.o | |
42 | perf-y += top.o | |
43 | perf-y += usage.o | |
44 | perf-y += dso.o | |
4a3cec84 | 45 | perf-y += dsos.o |
5ff32883 JO |
46 | perf-y += symbol.o |
47 | perf-y += symbol_fprintf.o | |
48 | perf-y += color.o | |
49 | perf-y += color_config.o | |
50 | perf-y += metricgroup.o | |
51 | perf-y += header.o | |
52 | perf-y += callchain.o | |
53 | perf-y += values.o | |
54 | perf-y += debug.o | |
d9664582 | 55 | perf-y += fncache.o |
5ff32883 JO |
56 | perf-y += machine.o |
57 | perf-y += map.o | |
58 | perf-y += pstack.o | |
59 | perf-y += session.o | |
60 | perf-y += sample-raw.o | |
61 | perf-y += s390-sample-raw.o | |
291dcb98 | 62 | perf-y += amd-sample-raw.o |
5ff32883 JO |
63 | perf-$(CONFIG_TRACE) += syscalltbl.o |
64 | perf-y += ordered-events.o | |
65 | perf-y += namespaces.o | |
66 | perf-y += comm.o | |
67 | perf-y += thread.o | |
68 | perf-y += thread_map.o | |
69 | perf-y += trace-event-parse.o | |
70 | perf-y += parse-events-flex.o | |
71 | perf-y += parse-events-bison.o | |
72 | perf-y += pmu.o | |
73 | perf-y += pmu-flex.o | |
74 | perf-y += pmu-bison.o | |
44462430 | 75 | perf-y += pmu-hybrid.o |
5ff32883 JO |
76 | perf-y += trace-event-read.o |
77 | perf-y += trace-event-info.o | |
78 | perf-y += trace-event-scripting.o | |
79 | perf-y += trace-event.o | |
80 | perf-y += svghelper.o | |
81 | perf-y += sort.o | |
82 | perf-y += hist.o | |
83 | perf-y += util.o | |
5ff32883 | 84 | perf-y += cpumap.o |
267ed5d8 | 85 | perf-y += affinity.o |
5135d5ef | 86 | perf-y += cputopo.o |
5ff32883 JO |
87 | perf-y += cgroup.o |
88 | perf-y += target.o | |
89 | perf-y += rblist.o | |
90 | perf-y += intlist.o | |
91 | perf-y += vdso.o | |
92 | perf-y += counts.o | |
93 | perf-y += stat.o | |
94 | perf-y += stat-shadow.o | |
95 | perf-y += stat-display.o | |
40c7d246 | 96 | perf-y += perf_api_probe.o |
5ff32883 JO |
97 | perf-y += record.o |
98 | perf-y += srcline.o | |
99 | perf-y += srccode.o | |
055c67ed | 100 | perf-y += synthetic-events.o |
5ff32883 JO |
101 | perf-y += data.o |
102 | perf-y += tsc.o | |
103 | perf-y += cloexec.o | |
104 | perf-y += call-path.o | |
105 | perf-y += rwsem.o | |
106 | perf-y += thread-stack.o | |
cebf7d51 | 107 | perf-y += spark.o |
687986bb | 108 | perf-y += topdown.o |
f07952b1 | 109 | perf-y += iostat.o |
480accbb | 110 | perf-y += stream.o |
5ff32883 JO |
111 | perf-$(CONFIG_AUXTRACE) += auxtrace.o |
112 | perf-$(CONFIG_AUXTRACE) += intel-pt-decoder/ | |
113 | perf-$(CONFIG_AUXTRACE) += intel-pt.o | |
114 | perf-$(CONFIG_AUXTRACE) += intel-bts.o | |
115 | perf-$(CONFIG_AUXTRACE) += arm-spe.o | |
4db25f66 | 116 | perf-$(CONFIG_AUXTRACE) += arm-spe-decoder/ |
5ff32883 | 117 | perf-$(CONFIG_AUXTRACE) += s390-cpumsf.o |
440a23b3 MP |
118 | |
119 | ifdef CONFIG_LIBOPENCSD | |
5ff32883 JO |
120 | perf-$(CONFIG_AUXTRACE) += cs-etm.o |
121 | perf-$(CONFIG_AUXTRACE) += cs-etm-decoder/ | |
440a23b3 MP |
122 | endif |
123 | ||
5ff32883 JO |
124 | perf-y += parse-branch-options.o |
125 | perf-y += dump-insn.o | |
126 | perf-y += parse-regs-options.o | |
a80abe2a | 127 | perf-y += parse-sublevel-options.o |
5ff32883 JO |
128 | perf-y += term.o |
129 | perf-y += help-unknown-cmd.o | |
291961fc | 130 | perf-y += dlfilter.o |
5ff32883 JO |
131 | perf-y += mem-events.o |
132 | perf-y += vsprintf.o | |
133 | perf-y += units.o | |
134 | perf-y += time-utils.o | |
26226a97 | 135 | perf-y += expr-flex.o |
5ff32883 | 136 | perf-y += expr-bison.o |
576a65b6 | 137 | perf-y += expr.o |
5ff32883 JO |
138 | perf-y += branch.o |
139 | perf-y += mem2node.o | |
6953beb4 | 140 | perf-y += clockid.o |
5ff32883 JO |
141 | |
142 | perf-$(CONFIG_LIBBPF) += bpf-loader.o | |
d19f8564 | 143 | perf-$(CONFIG_LIBBPF) += bpf_map.o |
fa853c4b | 144 | perf-$(CONFIG_PERF_BPF_SKEL) += bpf_counter.o |
944138f0 | 145 | perf-$(CONFIG_PERF_BPF_SKEL) += bpf_counter_cgroup.o |
5ff32883 JO |
146 | perf-$(CONFIG_BPF_PROLOGUE) += bpf-prologue.o |
147 | perf-$(CONFIG_LIBELF) += symbol-elf.o | |
148 | perf-$(CONFIG_LIBELF) += probe-file.o | |
149 | perf-$(CONFIG_LIBELF) += probe-event.o | |
709e6791 | 150 | |
ad1237c3 JO |
151 | ifdef CONFIG_LIBBPF_DYNAMIC |
152 | hashmap := 1 | |
153 | endif | |
eee19501 | 154 | ifndef CONFIG_LIBBPF |
ad1237c3 JO |
155 | hashmap := 1 |
156 | endif | |
157 | ||
158 | ifdef hashmap | |
eee19501 IR |
159 | perf-y += hashmap.o |
160 | endif | |
161 | ||
709e6791 | 162 | ifndef CONFIG_LIBELF |
5ff32883 | 163 | perf-y += symbol-minimal.o |
709e6791 JO |
164 | endif |
165 | ||
86bcdb5a | 166 | ifndef CONFIG_SETNS |
5ff32883 | 167 | perf-y += setns.o |
86bcdb5a ACM |
168 | endif |
169 | ||
5ff32883 JO |
170 | perf-$(CONFIG_DWARF) += probe-finder.o |
171 | perf-$(CONFIG_DWARF) += dwarf-aux.o | |
172 | perf-$(CONFIG_DWARF) += dwarf-regs.o | |
8379fce4 | 173 | |
5ff32883 JO |
174 | perf-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o |
175 | perf-$(CONFIG_LOCAL_LIBUNWIND) += unwind-libunwind-local.o | |
176 | perf-$(CONFIG_LIBUNWIND) += unwind-libunwind.o | |
177 | perf-$(CONFIG_LIBUNWIND_X86) += libunwind/x86_32.o | |
178 | perf-$(CONFIG_LIBUNWIND_AARCH64) += libunwind/arm64.o | |
b2e45c32 | 179 | |
5ff32883 | 180 | perf-$(CONFIG_LIBBABELTRACE) += data-convert-bt.o |
d0713d4c | 181 | perf-y += data-convert-json.o |
edbe9817 | 182 | |
5ff32883 | 183 | perf-y += scripting-engines/ |
c7355f84 | 184 | |
5ff32883 JO |
185 | perf-$(CONFIG_ZLIB) += zlib.o |
186 | perf-$(CONFIG_LZMA) += lzma.o | |
f24c1d75 AB |
187 | perf-$(CONFIG_ZSTD) += zstd.o |
188 | ||
c22e150e IL |
189 | perf-$(CONFIG_LIBCAP) += cap.o |
190 | ||
cef7af25 | 191 | perf-y += demangle-ocaml.o |
5ff32883 JO |
192 | perf-y += demangle-java.o |
193 | perf-y += demangle-rust.o | |
46dad054 | 194 | |
e12b202f | 195 | ifdef CONFIG_JITDUMP |
5ff32883 JO |
196 | perf-$(CONFIG_LIBELF) += jitdump.o |
197 | perf-$(CONFIG_LIBELF) += genelf.o | |
198 | perf-$(CONFIG_DWARF) += genelf_debug.o | |
46dad054 | 199 | endif |
3bc3374c | 200 | |
5ff32883 | 201 | perf-y += perf-hooks.o |
a074865e | 202 | |
5ff32883 | 203 | perf-$(CONFIG_LIBBPF) += bpf-event.o |
45178a92 | 204 | |
5ff32883 | 205 | perf-$(CONFIG_CXX) += c++/ |
00b86691 | 206 | |
70943490 SE |
207 | perf-$(CONFIG_LIBPFM4) += pfm.o |
208 | ||
9352aaba | 209 | CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
1b16fffa ACM |
210 | CFLAGS_llvm-utils.o += -DPERF_INCLUDE_DIR="BUILD_STR($(perf_include_dir_SQ))" |
211 | ||
598b7c69 SE |
212 | # avoid compiler warnings in 32-bit mode |
213 | CFLAGS_genelf_debug.o += -Wno-packed | |
9352aaba | 214 | |
4b971df9 | 215 | $(OUTPUT)util/parse-events-flex.c $(OUTPUT)util/parse-events-flex.h: util/parse-events.l $(OUTPUT)util/parse-events-bison.c |
1999307b | 216 | $(call rule_mkdir) |
4b971df9 IR |
217 | $(Q)$(call echo-cmd,flex)$(FLEX) -o $(OUTPUT)util/parse-events-flex.c \ |
218 | --header-file=$(OUTPUT)util/parse-events-flex.h $(PARSER_DEBUG_FLEX) $< | |
9352aaba | 219 | |
ef9894d9 | 220 | $(OUTPUT)util/parse-events-bison.c $(OUTPUT)util/parse-events-bison.h: util/parse-events.y |
1999307b | 221 | $(call rule_mkdir) |
6793672a | 222 | $(Q)$(call echo-cmd,bison)$(BISON) -v $< -d $(PARSER_DEBUG_BISON) $(BISON_FILE_PREFIX_MAP) \ |
ef9894d9 | 223 | -o $(OUTPUT)util/parse-events-bison.c -p parse_events_ |
9352aaba | 224 | |
4b971df9 | 225 | $(OUTPUT)util/expr-flex.c $(OUTPUT)util/expr-flex.h: util/expr.l $(OUTPUT)util/expr-bison.c |
26226a97 | 226 | $(call rule_mkdir) |
4b971df9 IR |
227 | $(Q)$(call echo-cmd,flex)$(FLEX) -o $(OUTPUT)util/expr-flex.c \ |
228 | --header-file=$(OUTPUT)util/expr-flex.h $(PARSER_DEBUG_FLEX) $< | |
26226a97 | 229 | |
ef9894d9 | 230 | $(OUTPUT)util/expr-bison.c $(OUTPUT)util/expr-bison.h: util/expr.y |
07516736 | 231 | $(call rule_mkdir) |
6793672a | 232 | $(Q)$(call echo-cmd,bison)$(BISON) -v $< -d $(PARSER_DEBUG_BISON) $(BISON_FILE_PREFIX_MAP) \ |
ef9894d9 | 233 | -o $(OUTPUT)util/expr-bison.c -p expr_ |
07516736 | 234 | |
4b971df9 | 235 | $(OUTPUT)util/pmu-flex.c $(OUTPUT)util/pmu-flex.h: util/pmu.l $(OUTPUT)util/pmu-bison.c |
1999307b | 236 | $(call rule_mkdir) |
4b971df9 IR |
237 | $(Q)$(call echo-cmd,flex)$(FLEX) -o $(OUTPUT)util/pmu-flex.c \ |
238 | --header-file=$(OUTPUT)util/pmu-flex.h $(PARSER_DEBUG_FLEX) $< | |
9352aaba | 239 | |
ef9894d9 | 240 | $(OUTPUT)util/pmu-bison.c $(OUTPUT)util/pmu-bison.h: util/pmu.y |
1999307b | 241 | $(call rule_mkdir) |
6793672a | 242 | $(Q)$(call echo-cmd,bison)$(BISON) -v $< -d $(PARSER_DEBUG_BISON) $(BISON_FILE_PREFIX_MAP) \ |
ef9894d9 | 243 | -o $(OUTPUT)util/pmu-bison.c -p perf_pmu_ |
9352aaba | 244 | |
304d7a90 IR |
245 | FLEX_GE_26 := $(shell expr $(shell $(FLEX) --version | sed -e 's/flex \([0-9]\+\).\([0-9]\+\)/\1\2/g') \>\= 26) |
246 | ifeq ($(FLEX_GE_26),1) | |
247 | flex_flags := -Wno-switch-enum -Wno-switch-default -Wno-unused-function -Wno-redundant-decls -Wno-sign-compare -Wno-unused-parameter -Wno-missing-prototypes -Wno-missing-declarations | |
248 | CC_HASNT_MISLEADING_INDENTATION := $(shell echo "int main(void) { return 0 }" | $(CC) -Werror -Wno-misleading-indentation -o /dev/null -xc - 2>&1 | grep -q -- -Wno-misleading-indentation ; echo $$?) | |
249 | ifeq ($(CC_HASNT_MISLEADING_INDENTATION), 1) | |
250 | flex_flags += -Wno-misleading-indentation | |
251 | endif | |
252 | else | |
253 | flex_flags := -w | |
254 | endif | |
255 | CFLAGS_parse-events-flex.o += $(flex_flags) | |
256 | CFLAGS_pmu-flex.o += $(flex_flags) | |
257 | CFLAGS_expr-flex.o += $(flex_flags) | |
1f16fcad IR |
258 | |
259 | bison_flags := -DYYENABLE_NLS=0 | |
260 | BISON_GE_35 := $(shell expr $(shell $(BISON) --version | grep bison | sed -e 's/.\+ \([0-9]\+\).\([0-9]\+\)/\1\2/g') \>\= 35) | |
261 | ifeq ($(BISON_GE_35),1) | |
262 | bison_flags += -Wno-unused-parameter -Wno-nested-externs -Wno-implicit-function-declaration -Wno-switch-enum | |
263 | else | |
264 | bison_flags += -w | |
265 | endif | |
266 | CFLAGS_parse-events-bison.o += $(bison_flags) | |
267 | CFLAGS_pmu-bison.o += -DYYLTYPE_IS_TRIVIAL=0 $(bison_flags) | |
268 | CFLAGS_expr-bison.o += -DYYLTYPE_IS_TRIVIAL=0 $(bison_flags) | |
9352aaba JO |
269 | |
270 | $(OUTPUT)util/parse-events.o: $(OUTPUT)util/parse-events-flex.c $(OUTPUT)util/parse-events-bison.c | |
271 | $(OUTPUT)util/pmu.o: $(OUTPUT)util/pmu-flex.c $(OUTPUT)util/pmu-bison.c | |
26226a97 | 272 | $(OUTPUT)util/expr.o: $(OUTPUT)util/expr-flex.c $(OUTPUT)util/expr-bison.c |
9352aaba | 273 | |
915b0882 | 274 | CFLAGS_bitmap.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
552eb975 | 275 | CFLAGS_find_bit.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
9352aaba | 276 | CFLAGS_rbtree.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
4ddd3274 | 277 | CFLAGS_libstring.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
9352aaba JO |
278 | CFLAGS_hweight.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
279 | CFLAGS_parse-events.o += -Wno-redundant-decls | |
26226a97 | 280 | CFLAGS_expr.o += -Wno-redundant-decls |
d25ed5d9 | 281 | CFLAGS_header.o += -include $(OUTPUT)PERF-VERSION-FILE |
9352aaba JO |
282 | |
283 | $(OUTPUT)util/kallsyms.o: ../lib/symbol/kallsyms.c FORCE | |
1999307b | 284 | $(call rule_mkdir) |
9352aaba JO |
285 | $(call if_changed_dep,cc_o_c) |
286 | ||
9c10548c ACM |
287 | $(OUTPUT)util/argv_split.o: ../lib/argv_split.c FORCE |
288 | $(call rule_mkdir) | |
289 | $(call if_changed_dep,cc_o_c) | |
290 | ||
915b0882 ACM |
291 | $(OUTPUT)util/bitmap.o: ../lib/bitmap.c FORCE |
292 | $(call rule_mkdir) | |
293 | $(call if_changed_dep,cc_o_c) | |
294 | ||
3052ba56 ACM |
295 | $(OUTPUT)util/ctype.o: ../lib/ctype.c FORCE |
296 | $(call rule_mkdir) | |
297 | $(call if_changed_dep,cc_o_c) | |
298 | ||
552eb975 | 299 | $(OUTPUT)util/find_bit.o: ../lib/find_bit.c FORCE |
1999307b | 300 | $(call rule_mkdir) |
9352aaba JO |
301 | $(call if_changed_dep,cc_o_c) |
302 | ||
3f735377 | 303 | $(OUTPUT)util/rbtree.o: ../lib/rbtree.c FORCE |
1999307b | 304 | $(call rule_mkdir) |
9352aaba JO |
305 | $(call if_changed_dep,cc_o_c) |
306 | ||
4ddd3274 ACM |
307 | $(OUTPUT)util/libstring.o: ../lib/string.c FORCE |
308 | $(call rule_mkdir) | |
309 | $(call if_changed_dep,cc_o_c) | |
310 | ||
0aefc359 | 311 | $(OUTPUT)util/hweight.o: ../lib/hweight.c FORCE |
1999307b | 312 | $(call rule_mkdir) |
9352aaba | 313 | $(call if_changed_dep,cc_o_c) |
d0761e37 ACM |
314 | |
315 | $(OUTPUT)util/vsprintf.o: ../lib/vsprintf.c FORCE | |
316 | $(call rule_mkdir) | |
317 | $(call if_changed_dep,cc_o_c) |