1 libperf-y += annotate.o
2 libperf-y += block-range.o
3 libperf-y += build-id.o
6 libperf-y += db-export.o
11 libperf-y += evsel_fprintf.o
12 libperf-y += find_bit.o
13 libperf-y += kallsyms.o
14 libperf-y += levenshtein.o
15 libperf-y += llvm-utils.o
17 libperf-y += memswap.o
18 libperf-y += parse-events.o
19 libperf-y += perf_regs.o
21 libperf-y += print_binary.o
23 libperf-y += libstring.o
25 libperf-y += hweight.o
29 libperf-y += strlist.o
30 libperf-y += strfilter.o
35 libperf-y += symbol_fprintf.o
37 libperf-y += metricgroup.o
39 libperf-y += callchain.o
42 libperf-y += machine.o
45 libperf-y += session.o
46 libperf-$(CONFIG_TRACE) += syscalltbl.o
47 libperf-y += ordered-events.o
48 libperf-y += namespaces.o
51 libperf-y += thread_map.o
52 libperf-y += trace-event-parse.o
53 libperf-y += parse-events-flex.o
54 libperf-y += parse-events-bison.o
56 libperf-y += pmu-flex.o
57 libperf-y += pmu-bison.o
58 libperf-y += trace-event-read.o
59 libperf-y += trace-event-info.o
60 libperf-y += trace-event-scripting.o
61 libperf-y += trace-event.o
62 libperf-y += svghelper.o
66 libperf-y += xyarray.o
71 libperf-y += intlist.o
75 libperf-y += stat-shadow.o
77 libperf-y += srcline.o
80 libperf-y += cloexec.o
81 libperf-y += call-path.o
83 libperf-y += thread-stack.o
84 libperf-$(CONFIG_AUXTRACE) += auxtrace.o
85 libperf-$(CONFIG_AUXTRACE) += intel-pt-decoder/
86 libperf-$(CONFIG_AUXTRACE) += intel-pt.o
87 libperf-$(CONFIG_AUXTRACE) += intel-bts.o
88 libperf-$(CONFIG_AUXTRACE) += arm-spe.o
89 libperf-$(CONFIG_AUXTRACE) += arm-spe-pkt-decoder.o
90 libperf-$(CONFIG_AUXTRACE) += s390-cpumsf.o
92 ifdef CONFIG_LIBOPENCSD
93 libperf-$(CONFIG_AUXTRACE) += cs-etm.o
94 libperf-$(CONFIG_AUXTRACE) += cs-etm-decoder/
97 libperf-y += parse-branch-options.o
98 libperf-y += dump-insn.o
99 libperf-y += parse-regs-options.o
101 libperf-y += help-unknown-cmd.o
102 libperf-y += mem-events.o
103 libperf-y += vsprintf.o
104 libperf-y += drv_configs.o
106 libperf-y += time-utils.o
107 libperf-y += expr-bison.o
108 libperf-y += branch.o
109 libperf-y += mem2node.o
111 libperf-$(CONFIG_LIBBPF) += bpf-loader.o
112 libperf-$(CONFIG_BPF_PROLOGUE) += bpf-prologue.o
113 libperf-$(CONFIG_LIBELF) += symbol-elf.o
114 libperf-$(CONFIG_LIBELF) += probe-file.o
115 libperf-$(CONFIG_LIBELF) += probe-event.o
118 libperf-y += symbol-minimal.o
125 libperf-$(CONFIG_DWARF) += probe-finder.o
126 libperf-$(CONFIG_DWARF) += dwarf-aux.o
127 libperf-$(CONFIG_DWARF) += dwarf-regs.o
129 libperf-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o
130 libperf-$(CONFIG_LOCAL_LIBUNWIND) += unwind-libunwind-local.o
131 libperf-$(CONFIG_LIBUNWIND) += unwind-libunwind.o
132 libperf-$(CONFIG_LIBUNWIND_X86) += libunwind/x86_32.o
133 libperf-$(CONFIG_LIBUNWIND_AARCH64) += libunwind/arm64.o
135 libperf-$(CONFIG_LIBBABELTRACE) += data-convert-bt.o
137 libperf-y += scripting-engines/
139 libperf-$(CONFIG_ZLIB) += zlib.o
140 libperf-$(CONFIG_LZMA) += lzma.o
141 libperf-y += demangle-java.o
142 libperf-y += demangle-rust.o
145 libperf-$(CONFIG_LIBELF) += jitdump.o
146 libperf-$(CONFIG_LIBELF) += genelf.o
147 libperf-$(CONFIG_DWARF) += genelf_debug.o
150 libperf-y += perf-hooks.o
152 libperf-$(CONFIG_CXX) += c++/
154 CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
155 CFLAGS_llvm-utils.o += -DPERF_INCLUDE_DIR="BUILD_STR($(perf_include_dir_SQ))"
157 # avoid compiler warnings in 32-bit mode
158 CFLAGS_genelf_debug.o += -Wno-packed
160 $(OUTPUT)util/parse-events-flex.c: util/parse-events.l $(OUTPUT)util/parse-events-bison.c
162 $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/parse-events-flex.h $(PARSER_DEBUG_FLEX) util/parse-events.l
164 $(OUTPUT)util/parse-events-bison.c: util/parse-events.y
166 $(Q)$(call echo-cmd,bison)$(BISON) -v util/parse-events.y -d $(PARSER_DEBUG_BISON) -o $@ -p parse_events_
168 $(OUTPUT)util/expr-bison.c: util/expr.y
170 $(Q)$(call echo-cmd,bison)$(BISON) -v util/expr.y -d $(PARSER_DEBUG_BISON) -o $@ -p expr__
172 $(OUTPUT)util/pmu-flex.c: util/pmu.l $(OUTPUT)util/pmu-bison.c
174 $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/pmu-flex.h util/pmu.l
176 $(OUTPUT)util/pmu-bison.c: util/pmu.y
178 $(Q)$(call echo-cmd,bison)$(BISON) -v util/pmu.y -d -o $@ -p perf_pmu_
180 CFLAGS_parse-events-flex.o += -w
181 CFLAGS_pmu-flex.o += -w
182 CFLAGS_parse-events-bison.o += -DYYENABLE_NLS=0 -w
183 CFLAGS_pmu-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w
184 CFLAGS_expr-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w
186 $(OUTPUT)util/parse-events.o: $(OUTPUT)util/parse-events-flex.c $(OUTPUT)util/parse-events-bison.c
187 $(OUTPUT)util/pmu.o: $(OUTPUT)util/pmu-flex.c $(OUTPUT)util/pmu-bison.c
189 CFLAGS_bitmap.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
190 CFLAGS_find_bit.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
191 CFLAGS_rbtree.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
192 CFLAGS_libstring.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
193 CFLAGS_hweight.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
194 CFLAGS_parse-events.o += -Wno-redundant-decls
195 CFLAGS_header.o += -include $(OUTPUT)PERF-VERSION-FILE
197 $(OUTPUT)util/kallsyms.o: ../lib/symbol/kallsyms.c FORCE
199 $(call if_changed_dep,cc_o_c)
201 $(OUTPUT)util/bitmap.o: ../lib/bitmap.c FORCE
203 $(call if_changed_dep,cc_o_c)
205 $(OUTPUT)util/find_bit.o: ../lib/find_bit.c FORCE
207 $(call if_changed_dep,cc_o_c)
209 $(OUTPUT)util/rbtree.o: ../lib/rbtree.c FORCE
211 $(call if_changed_dep,cc_o_c)
213 $(OUTPUT)util/libstring.o: ../lib/string.c FORCE
215 $(call if_changed_dep,cc_o_c)
217 $(OUTPUT)util/hweight.o: ../lib/hweight.c FORCE
219 $(call if_changed_dep,cc_o_c)
221 $(OUTPUT)util/vsprintf.o: ../lib/vsprintf.c FORCE
223 $(call if_changed_dep,cc_o_c)