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
30 libperf-y += strlist.o
31 libperf-y += strfilter.o
36 libperf-y += symbol_fprintf.o
38 libperf-y += metricgroup.o
40 libperf-y += callchain.o
43 libperf-y += machine.o
46 libperf-y += session.o
47 libperf-$(CONFIG_AUDIT) += syscalltbl.o
48 libperf-y += ordered-events.o
49 libperf-y += namespaces.o
52 libperf-y += thread_map.o
53 libperf-y += trace-event-parse.o
54 libperf-y += parse-events-flex.o
55 libperf-y += parse-events-bison.o
57 libperf-y += pmu-flex.o
58 libperf-y += pmu-bison.o
59 libperf-y += trace-event-read.o
60 libperf-y += trace-event-info.o
61 libperf-y += trace-event-scripting.o
62 libperf-y += trace-event.o
63 libperf-y += svghelper.o
67 libperf-y += xyarray.o
72 libperf-y += intlist.o
76 libperf-y += stat-shadow.o
78 libperf-y += srcline.o
81 libperf-y += cloexec.o
82 libperf-y += call-path.o
84 libperf-y += thread-stack.o
85 libperf-$(CONFIG_AUXTRACE) += auxtrace.o
86 libperf-$(CONFIG_AUXTRACE) += intel-pt-decoder/
87 libperf-$(CONFIG_AUXTRACE) += intel-pt.o
88 libperf-$(CONFIG_AUXTRACE) += intel-bts.o
89 libperf-y += parse-branch-options.o
90 libperf-y += dump-insn.o
91 libperf-y += parse-regs-options.o
93 libperf-y += help-unknown-cmd.o
94 libperf-y += mem-events.o
95 libperf-y += vsprintf.o
96 libperf-y += drv_configs.o
98 libperf-y += time-utils.o
99 libperf-y += expr-bison.o
100 libperf-y += branch.o
102 libperf-$(CONFIG_LIBBPF) += bpf-loader.o
103 libperf-$(CONFIG_BPF_PROLOGUE) += bpf-prologue.o
104 libperf-$(CONFIG_LIBELF) += symbol-elf.o
105 libperf-$(CONFIG_LIBELF) += probe-file.o
106 libperf-$(CONFIG_LIBELF) += probe-event.o
109 libperf-y += symbol-minimal.o
116 libperf-$(CONFIG_DWARF) += probe-finder.o
117 libperf-$(CONFIG_DWARF) += dwarf-aux.o
118 libperf-$(CONFIG_DWARF) += dwarf-regs.o
120 libperf-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o
121 libperf-$(CONFIG_LOCAL_LIBUNWIND) += unwind-libunwind-local.o
122 libperf-$(CONFIG_LIBUNWIND) += unwind-libunwind.o
123 libperf-$(CONFIG_LIBUNWIND_X86) += libunwind/x86_32.o
124 libperf-$(CONFIG_LIBUNWIND_AARCH64) += libunwind/arm64.o
126 libperf-$(CONFIG_LIBBABELTRACE) += data-convert-bt.o
128 libperf-y += scripting-engines/
130 libperf-$(CONFIG_ZLIB) += zlib.o
131 libperf-$(CONFIG_LZMA) += lzma.o
132 libperf-y += demangle-java.o
133 libperf-y += demangle-rust.o
136 libperf-$(CONFIG_LIBELF) += jitdump.o
137 libperf-$(CONFIG_LIBELF) += genelf.o
138 libperf-$(CONFIG_DWARF) += genelf_debug.o
141 libperf-y += perf-hooks.o
143 libperf-$(CONFIG_CXX) += c++/
145 CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
146 # avoid compiler warnings in 32-bit mode
147 CFLAGS_genelf_debug.o += -Wno-packed
149 $(OUTPUT)util/parse-events-flex.c: util/parse-events.l $(OUTPUT)util/parse-events-bison.c
151 $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/parse-events-flex.h $(PARSER_DEBUG_FLEX) util/parse-events.l
153 $(OUTPUT)util/parse-events-bison.c: util/parse-events.y
155 $(Q)$(call echo-cmd,bison)$(BISON) -v util/parse-events.y -d $(PARSER_DEBUG_BISON) -o $@ -p parse_events_
157 $(OUTPUT)util/expr-bison.c: util/expr.y
159 $(Q)$(call echo-cmd,bison)$(BISON) -v util/expr.y -d $(PARSER_DEBUG_BISON) -o $@ -p expr__
161 $(OUTPUT)util/pmu-flex.c: util/pmu.l $(OUTPUT)util/pmu-bison.c
163 $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/pmu-flex.h util/pmu.l
165 $(OUTPUT)util/pmu-bison.c: util/pmu.y
167 $(Q)$(call echo-cmd,bison)$(BISON) -v util/pmu.y -d -o $@ -p perf_pmu_
169 CFLAGS_parse-events-flex.o += -w
170 CFLAGS_pmu-flex.o += -w
171 CFLAGS_parse-events-bison.o += -DYYENABLE_NLS=0 -w
172 CFLAGS_pmu-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w
173 CFLAGS_expr-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w
175 $(OUTPUT)util/parse-events.o: $(OUTPUT)util/parse-events-flex.c $(OUTPUT)util/parse-events-bison.c
176 $(OUTPUT)util/pmu.o: $(OUTPUT)util/pmu-flex.c $(OUTPUT)util/pmu-bison.c
178 CFLAGS_bitmap.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
179 CFLAGS_find_bit.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
180 CFLAGS_rbtree.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
181 CFLAGS_libstring.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
182 CFLAGS_hweight.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
183 CFLAGS_parse-events.o += -Wno-redundant-decls
184 CFLAGS_header.o += -include $(OUTPUT)PERF-VERSION-FILE
186 $(OUTPUT)util/kallsyms.o: ../lib/symbol/kallsyms.c FORCE
188 $(call if_changed_dep,cc_o_c)
190 $(OUTPUT)util/bitmap.o: ../lib/bitmap.c FORCE
192 $(call if_changed_dep,cc_o_c)
194 $(OUTPUT)util/find_bit.o: ../lib/find_bit.c FORCE
196 $(call if_changed_dep,cc_o_c)
198 $(OUTPUT)util/rbtree.o: ../lib/rbtree.c FORCE
200 $(call if_changed_dep,cc_o_c)
202 $(OUTPUT)util/libstring.o: ../lib/string.c FORCE
204 $(call if_changed_dep,cc_o_c)
206 $(OUTPUT)util/hweight.o: ../lib/hweight.c FORCE
208 $(call if_changed_dep,cc_o_c)
210 $(OUTPUT)util/vsprintf.o: ../lib/vsprintf.c FORCE
212 $(call if_changed_dep,cc_o_c)