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
16 libperf-y += parse-events.o
17 libperf-y += perf_regs.o
20 libperf-y += libstring.o
22 libperf-y += hweight.o
26 libperf-y += strlist.o
27 libperf-y += strfilter.o
32 libperf-y += symbol_fprintf.o
35 libperf-y += callchain.o
38 libperf-y += machine.o
41 libperf-y += session.o
42 libperf-$(CONFIG_AUDIT) += syscalltbl.o
43 libperf-y += ordered-events.o
44 libperf-y += namespaces.o
47 libperf-y += thread_map.o
48 libperf-y += trace-event-parse.o
49 libperf-y += parse-events-flex.o
50 libperf-y += parse-events-bison.o
52 libperf-y += pmu-flex.o
53 libperf-y += pmu-bison.o
54 libperf-y += trace-event-read.o
55 libperf-y += trace-event-info.o
56 libperf-y += trace-event-scripting.o
57 libperf-y += trace-event.o
58 libperf-y += svghelper.o
62 libperf-y += xyarray.o
67 libperf-y += intlist.o
71 libperf-y += stat-shadow.o
73 libperf-y += srcline.o
76 libperf-y += cloexec.o
77 libperf-y += call-path.o
78 libperf-y += thread-stack.o
79 libperf-$(CONFIG_AUXTRACE) += auxtrace.o
80 libperf-$(CONFIG_AUXTRACE) += intel-pt-decoder/
81 libperf-$(CONFIG_AUXTRACE) += intel-pt.o
82 libperf-$(CONFIG_AUXTRACE) += intel-bts.o
83 libperf-y += parse-branch-options.o
84 libperf-y += dump-insn.o
85 libperf-y += parse-regs-options.o
87 libperf-y += help-unknown-cmd.o
88 libperf-y += mem-events.o
89 libperf-y += vsprintf.o
90 libperf-y += drv_configs.o
91 libperf-y += time-utils.o
92 libperf-y += expr-bison.o
94 libperf-$(CONFIG_LIBBPF) += bpf-loader.o
95 libperf-$(CONFIG_BPF_PROLOGUE) += bpf-prologue.o
96 libperf-$(CONFIG_LIBELF) += symbol-elf.o
97 libperf-$(CONFIG_LIBELF) += probe-file.o
98 libperf-$(CONFIG_LIBELF) += probe-event.o
101 libperf-y += symbol-minimal.o
104 libperf-$(CONFIG_DWARF) += probe-finder.o
105 libperf-$(CONFIG_DWARF) += dwarf-aux.o
106 libperf-$(CONFIG_DWARF) += dwarf-regs.o
108 libperf-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o
109 libperf-$(CONFIG_LOCAL_LIBUNWIND) += unwind-libunwind-local.o
110 libperf-$(CONFIG_LIBUNWIND) += unwind-libunwind.o
111 libperf-$(CONFIG_LIBUNWIND_X86) += libunwind/x86_32.o
112 libperf-$(CONFIG_LIBUNWIND_AARCH64) += libunwind/arm64.o
114 libperf-$(CONFIG_LIBBABELTRACE) += data-convert-bt.o
116 libperf-y += scripting-engines/
118 libperf-$(CONFIG_ZLIB) += zlib.o
119 libperf-$(CONFIG_LZMA) += lzma.o
120 libperf-y += demangle-java.o
121 libperf-y += demangle-rust.o
124 libperf-$(CONFIG_LIBELF) += jitdump.o
125 libperf-$(CONFIG_LIBELF) += genelf.o
126 libperf-$(CONFIG_DWARF) += genelf_debug.o
129 libperf-y += perf-hooks.o
131 libperf-$(CONFIG_CXX) += c++/
133 CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
134 # avoid compiler warnings in 32-bit mode
135 CFLAGS_genelf_debug.o += -Wno-packed
137 $(OUTPUT)util/parse-events-flex.c: util/parse-events.l $(OUTPUT)util/parse-events-bison.c
139 $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/parse-events-flex.h $(PARSER_DEBUG_FLEX) util/parse-events.l
141 $(OUTPUT)util/parse-events-bison.c: util/parse-events.y
143 $(Q)$(call echo-cmd,bison)$(BISON) -v util/parse-events.y -d $(PARSER_DEBUG_BISON) -o $@ -p parse_events_
145 $(OUTPUT)util/expr-bison.c: util/expr.y
147 $(Q)$(call echo-cmd,bison)$(BISON) -v util/expr.y -d $(PARSER_DEBUG_BISON) -o $@ -p expr__
149 $(OUTPUT)util/pmu-flex.c: util/pmu.l $(OUTPUT)util/pmu-bison.c
151 $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/pmu-flex.h util/pmu.l
153 $(OUTPUT)util/pmu-bison.c: util/pmu.y
155 $(Q)$(call echo-cmd,bison)$(BISON) -v util/pmu.y -d -o $@ -p perf_pmu_
157 CFLAGS_parse-events-flex.o += -w
158 CFLAGS_pmu-flex.o += -w
159 CFLAGS_parse-events-bison.o += -DYYENABLE_NLS=0 -w
160 CFLAGS_pmu-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w
161 CFLAGS_expr-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w
163 $(OUTPUT)util/parse-events.o: $(OUTPUT)util/parse-events-flex.c $(OUTPUT)util/parse-events-bison.c
164 $(OUTPUT)util/pmu.o: $(OUTPUT)util/pmu-flex.c $(OUTPUT)util/pmu-bison.c
166 CFLAGS_bitmap.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
167 CFLAGS_find_bit.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
168 CFLAGS_rbtree.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
169 CFLAGS_libstring.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
170 CFLAGS_hweight.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
171 CFLAGS_parse-events.o += -Wno-redundant-decls
172 CFLAGS_header.o += -include $(OUTPUT)PERF-VERSION-FILE
174 $(OUTPUT)util/kallsyms.o: ../lib/symbol/kallsyms.c FORCE
176 $(call if_changed_dep,cc_o_c)
178 $(OUTPUT)util/bitmap.o: ../lib/bitmap.c FORCE
180 $(call if_changed_dep,cc_o_c)
182 $(OUTPUT)util/find_bit.o: ../lib/find_bit.c FORCE
184 $(call if_changed_dep,cc_o_c)
186 $(OUTPUT)util/rbtree.o: ../lib/rbtree.c FORCE
188 $(call if_changed_dep,cc_o_c)
190 $(OUTPUT)util/libstring.o: ../lib/string.c FORCE
192 $(call if_changed_dep,cc_o_c)
194 $(OUTPUT)util/hweight.o: ../lib/hweight.c FORCE
196 $(call if_changed_dep,cc_o_c)
198 $(OUTPUT)util/vsprintf.o: ../lib/vsprintf.c FORCE
200 $(call if_changed_dep,cc_o_c)