]>
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 | |
13 | perf-y += evsel.o | |
14 | perf-y += evsel_fprintf.o | |
ca125277 | 15 | perf-y += perf_event_attr_fprintf.o |
8829e56f | 16 | perf-y += evswitch.o |
5ff32883 JO |
17 | perf-y += find_bit.o |
18 | perf-y += get_current_dir_name.o | |
19 | perf-y += kallsyms.o | |
20 | perf-y += levenshtein.o | |
21 | perf-y += llvm-utils.o | |
22 | perf-y += mmap.o | |
23 | perf-y += memswap.o | |
24 | perf-y += parse-events.o | |
25 | perf-y += perf_regs.o | |
26 | perf-y += path.o | |
27 | perf-y += print_binary.o | |
4975223b | 28 | perf-y += rlimit.o |
9c10548c | 29 | perf-y += argv_split.o |
5ff32883 JO |
30 | perf-y += rbtree.o |
31 | perf-y += libstring.o | |
32 | perf-y += bitmap.o | |
33 | perf-y += hweight.o | |
34 | perf-y += smt.o | |
35 | perf-y += strbuf.o | |
36 | perf-y += string.o | |
37 | perf-y += strlist.o | |
38 | perf-y += strfilter.o | |
39 | perf-y += top.o | |
40 | perf-y += usage.o | |
41 | perf-y += dso.o | |
4a3cec84 | 42 | perf-y += dsos.o |
5ff32883 JO |
43 | perf-y += symbol.o |
44 | perf-y += symbol_fprintf.o | |
45 | perf-y += color.o | |
46 | perf-y += color_config.o | |
47 | perf-y += metricgroup.o | |
48 | perf-y += header.o | |
49 | perf-y += callchain.o | |
50 | perf-y += values.o | |
51 | perf-y += debug.o | |
d9664582 | 52 | perf-y += fncache.o |
5ff32883 JO |
53 | perf-y += machine.o |
54 | perf-y += map.o | |
55 | perf-y += pstack.o | |
56 | perf-y += session.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 | |
62 | perf-y += comm.o | |
63 | perf-y += thread.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 | |
68 | perf-y += pmu.o | |
69 | perf-y += pmu-flex.o | |
70 | perf-y += pmu-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 | |
75 | perf-y += svghelper.o | |
76 | perf-y += sort.o | |
77 | perf-y += hist.o | |
78 | perf-y += util.o | |
5ff32883 | 79 | perf-y += cpumap.o |
267ed5d8 | 80 | perf-y += affinity.o |
5135d5ef | 81 | perf-y += cputopo.o |
5ff32883 JO |
82 | perf-y += cgroup.o |
83 | perf-y += target.o | |
84 | perf-y += rblist.o | |
85 | perf-y += intlist.o | |
86 | perf-y += vdso.o | |
87 | perf-y += counts.o | |
88 | perf-y += stat.o | |
89 | perf-y += stat-shadow.o | |
90 | perf-y += stat-display.o | |
91 | perf-y += record.o | |
92 | perf-y += srcline.o | |
93 | perf-y += srccode.o | |
055c67ed | 94 | perf-y += synthetic-events.o |
5ff32883 JO |
95 | perf-y += data.o |
96 | perf-y += tsc.o | |
97 | perf-y += cloexec.o | |
98 | perf-y += call-path.o | |
99 | perf-y += rwsem.o | |
100 | perf-y += thread-stack.o | |
cebf7d51 | 101 | perf-y += spark.o |
5ff32883 JO |
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 | |
440a23b3 MP |
109 | |
110 | ifdef CONFIG_LIBOPENCSD | |
5ff32883 JO |
111 | perf-$(CONFIG_AUXTRACE) += cs-etm.o |
112 | perf-$(CONFIG_AUXTRACE) += cs-etm-decoder/ | |
440a23b3 MP |
113 | endif |
114 | ||
5ff32883 JO |
115 | perf-y += parse-branch-options.o |
116 | perf-y += dump-insn.o | |
117 | perf-y += parse-regs-options.o | |
118 | perf-y += term.o | |
119 | perf-y += help-unknown-cmd.o | |
120 | perf-y += mem-events.o | |
121 | perf-y += vsprintf.o | |
122 | perf-y += units.o | |
123 | perf-y += time-utils.o | |
124 | perf-y += expr-bison.o | |
125 | perf-y += branch.o | |
126 | perf-y += mem2node.o | |
127 | ||
128 | perf-$(CONFIG_LIBBPF) += bpf-loader.o | |
d19f8564 | 129 | perf-$(CONFIG_LIBBPF) += bpf_map.o |
5ff32883 JO |
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 | |
709e6791 JO |
134 | |
135 | ifndef CONFIG_LIBELF | |
5ff32883 | 136 | perf-y += symbol-minimal.o |
709e6791 JO |
137 | endif |
138 | ||
86bcdb5a | 139 | ifndef CONFIG_SETNS |
5ff32883 | 140 | perf-y += setns.o |
86bcdb5a ACM |
141 | endif |
142 | ||
5ff32883 JO |
143 | perf-$(CONFIG_DWARF) += probe-finder.o |
144 | perf-$(CONFIG_DWARF) += dwarf-aux.o | |
145 | perf-$(CONFIG_DWARF) += dwarf-regs.o | |
8379fce4 | 146 | |
5ff32883 JO |
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 | |
b2e45c32 | 152 | |
5ff32883 | 153 | perf-$(CONFIG_LIBBABELTRACE) += data-convert-bt.o |
edbe9817 | 154 | |
5ff32883 | 155 | perf-y += scripting-engines/ |
c7355f84 | 156 | |
5ff32883 JO |
157 | perf-$(CONFIG_ZLIB) += zlib.o |
158 | perf-$(CONFIG_LZMA) += lzma.o | |
f24c1d75 AB |
159 | perf-$(CONFIG_ZSTD) += zstd.o |
160 | ||
c22e150e IL |
161 | perf-$(CONFIG_LIBCAP) += cap.o |
162 | ||
5ff32883 JO |
163 | perf-y += demangle-java.o |
164 | perf-y += demangle-rust.o | |
46dad054 | 165 | |
e12b202f | 166 | ifdef CONFIG_JITDUMP |
5ff32883 JO |
167 | perf-$(CONFIG_LIBELF) += jitdump.o |
168 | perf-$(CONFIG_LIBELF) += genelf.o | |
169 | perf-$(CONFIG_DWARF) += genelf_debug.o | |
46dad054 | 170 | endif |
3bc3374c | 171 | |
5ff32883 | 172 | perf-y += perf-hooks.o |
a074865e | 173 | |
5ff32883 | 174 | perf-$(CONFIG_LIBBPF) += bpf-event.o |
45178a92 | 175 | |
5ff32883 | 176 | perf-$(CONFIG_CXX) += c++/ |
00b86691 | 177 | |
9352aaba | 178 | CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
1b16fffa ACM |
179 | CFLAGS_llvm-utils.o += -DPERF_INCLUDE_DIR="BUILD_STR($(perf_include_dir_SQ))" |
180 | ||
598b7c69 SE |
181 | # avoid compiler warnings in 32-bit mode |
182 | CFLAGS_genelf_debug.o += -Wno-packed | |
9352aaba JO |
183 | |
184 | $(OUTPUT)util/parse-events-flex.c: util/parse-events.l $(OUTPUT)util/parse-events-bison.c | |
1999307b | 185 | $(call rule_mkdir) |
70923bd2 | 186 | $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/parse-events-flex.h $(PARSER_DEBUG_FLEX) util/parse-events.l |
9352aaba JO |
187 | |
188 | $(OUTPUT)util/parse-events-bison.c: util/parse-events.y | |
1999307b | 189 | $(call rule_mkdir) |
70923bd2 | 190 | $(Q)$(call echo-cmd,bison)$(BISON) -v util/parse-events.y -d $(PARSER_DEBUG_BISON) -o $@ -p parse_events_ |
9352aaba | 191 | |
07516736 AK |
192 | $(OUTPUT)util/expr-bison.c: util/expr.y |
193 | $(call rule_mkdir) | |
194 | $(Q)$(call echo-cmd,bison)$(BISON) -v util/expr.y -d $(PARSER_DEBUG_BISON) -o $@ -p expr__ | |
195 | ||
9352aaba | 196 | $(OUTPUT)util/pmu-flex.c: util/pmu.l $(OUTPUT)util/pmu-bison.c |
1999307b | 197 | $(call rule_mkdir) |
70923bd2 | 198 | $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/pmu-flex.h util/pmu.l |
9352aaba JO |
199 | |
200 | $(OUTPUT)util/pmu-bison.c: util/pmu.y | |
1999307b | 201 | $(call rule_mkdir) |
70923bd2 | 202 | $(Q)$(call echo-cmd,bison)$(BISON) -v util/pmu.y -d -o $@ -p perf_pmu_ |
9352aaba JO |
203 | |
204 | CFLAGS_parse-events-flex.o += -w | |
205 | CFLAGS_pmu-flex.o += -w | |
539f3aa2 | 206 | CFLAGS_parse-events-bison.o += -DYYENABLE_NLS=0 -w |
9352aaba | 207 | CFLAGS_pmu-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w |
07516736 | 208 | CFLAGS_expr-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w |
9352aaba JO |
209 | |
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 | |
212 | ||
915b0882 | 213 | CFLAGS_bitmap.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
552eb975 | 214 | CFLAGS_find_bit.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
9352aaba | 215 | CFLAGS_rbtree.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
4ddd3274 | 216 | CFLAGS_libstring.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
9352aaba JO |
217 | CFLAGS_hweight.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
218 | CFLAGS_parse-events.o += -Wno-redundant-decls | |
d25ed5d9 | 219 | CFLAGS_header.o += -include $(OUTPUT)PERF-VERSION-FILE |
9352aaba JO |
220 | |
221 | $(OUTPUT)util/kallsyms.o: ../lib/symbol/kallsyms.c FORCE | |
1999307b | 222 | $(call rule_mkdir) |
9352aaba JO |
223 | $(call if_changed_dep,cc_o_c) |
224 | ||
9c10548c ACM |
225 | $(OUTPUT)util/argv_split.o: ../lib/argv_split.c FORCE |
226 | $(call rule_mkdir) | |
227 | $(call if_changed_dep,cc_o_c) | |
228 | ||
915b0882 ACM |
229 | $(OUTPUT)util/bitmap.o: ../lib/bitmap.c FORCE |
230 | $(call rule_mkdir) | |
231 | $(call if_changed_dep,cc_o_c) | |
232 | ||
3052ba56 ACM |
233 | $(OUTPUT)util/ctype.o: ../lib/ctype.c FORCE |
234 | $(call rule_mkdir) | |
235 | $(call if_changed_dep,cc_o_c) | |
236 | ||
552eb975 | 237 | $(OUTPUT)util/find_bit.o: ../lib/find_bit.c FORCE |
1999307b | 238 | $(call rule_mkdir) |
9352aaba JO |
239 | $(call if_changed_dep,cc_o_c) |
240 | ||
3f735377 | 241 | $(OUTPUT)util/rbtree.o: ../lib/rbtree.c FORCE |
1999307b | 242 | $(call rule_mkdir) |
9352aaba JO |
243 | $(call if_changed_dep,cc_o_c) |
244 | ||
4ddd3274 ACM |
245 | $(OUTPUT)util/libstring.o: ../lib/string.c FORCE |
246 | $(call rule_mkdir) | |
247 | $(call if_changed_dep,cc_o_c) | |
248 | ||
0aefc359 | 249 | $(OUTPUT)util/hweight.o: ../lib/hweight.c FORCE |
1999307b | 250 | $(call rule_mkdir) |
9352aaba | 251 | $(call if_changed_dep,cc_o_c) |
d0761e37 ACM |
252 | |
253 | $(OUTPUT)util/vsprintf.o: ../lib/vsprintf.c FORCE | |
254 | $(call rule_mkdir) | |
255 | $(call if_changed_dep,cc_o_c) |