Build 6.8 KB
Newer Older
1
libperf-y += annotate.o
2
libperf-y += block-range.o
3 4 5 6
libperf-y += build-id.o
libperf-y += config.o
libperf-y += ctype.o
libperf-y += db-export.o
7
libperf-y += env.o
8 9 10
libperf-y += event.o
libperf-y += evlist.o
libperf-y += evsel.o
11
libperf-y += evsel_fprintf.o
12
libperf-y += find_bit.o
13
libperf-y += get_current_dir_name.o
14 15
libperf-y += kallsyms.o
libperf-y += levenshtein.o
16
libperf-y += llvm-utils.o
17
libperf-y += mmap.o
18
libperf-y += memswap.o
19
libperf-y += parse-events.o
20
libperf-y += perf_regs.o
21
libperf-y += path.o
22
libperf-y += print_binary.o
23
libperf-y += rbtree.o
24
libperf-y += libstring.o
25 26
libperf-y += bitmap.o
libperf-y += hweight.o
27
libperf-y += smt.o
28 29 30 31 32 33 34 35
libperf-y += strbuf.o
libperf-y += string.o
libperf-y += strlist.o
libperf-y += strfilter.o
libperf-y += top.o
libperf-y += usage.o
libperf-y += dso.o
libperf-y += symbol.o
36
libperf-y += symbol_fprintf.o
37
libperf-y += color.o
38
libperf-y += metricgroup.o
39 40 41 42 43 44 45 46
libperf-y += header.o
libperf-y += callchain.o
libperf-y += values.o
libperf-y += debug.o
libperf-y += machine.o
libperf-y += map.o
libperf-y += pstack.o
libperf-y += session.o
47 48
libperf-y += sample-raw.o
libperf-y += s390-sample-raw.o
49
libperf-$(CONFIG_TRACE) += syscalltbl.o
50
libperf-y += ordered-events.o
51
libperf-y += namespaces.o
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
libperf-y += comm.o
libperf-y += thread.o
libperf-y += thread_map.o
libperf-y += trace-event-parse.o
libperf-y += parse-events-flex.o
libperf-y += parse-events-bison.o
libperf-y += pmu.o
libperf-y += pmu-flex.o
libperf-y += pmu-bison.o
libperf-y += trace-event-read.o
libperf-y += trace-event-info.o
libperf-y += trace-event-scripting.o
libperf-y += trace-event.o
libperf-y += svghelper.o
libperf-y += sort.o
libperf-y += hist.o
libperf-y += util.o
libperf-y += xyarray.o
libperf-y += cpumap.o
libperf-y += cgroup.o
libperf-y += target.o
libperf-y += rblist.o
libperf-y += intlist.o
libperf-y += vdso.o
76
libperf-y += counts.o
77
libperf-y += stat.o
78
libperf-y += stat-shadow.o
79
libperf-y += stat-display.o
80 81
libperf-y += record.o
libperf-y += srcline.o
A
Andi Kleen 已提交
82
libperf-y += srccode.o
83
libperf-y += data.o
84
libperf-y += tsc.o
85
libperf-y += cloexec.o
86
libperf-y += call-path.o
87
libperf-y += rwsem.o
88
libperf-y += thread-stack.o
89
libperf-$(CONFIG_AUXTRACE) += auxtrace.o
90
libperf-$(CONFIG_AUXTRACE) += intel-pt-decoder/
A
Adrian Hunter 已提交
91
libperf-$(CONFIG_AUXTRACE) += intel-pt.o
92
libperf-$(CONFIG_AUXTRACE) += intel-bts.o
93 94
libperf-$(CONFIG_AUXTRACE) += arm-spe.o
libperf-$(CONFIG_AUXTRACE) += arm-spe-pkt-decoder.o
95
libperf-$(CONFIG_AUXTRACE) += s390-cpumsf.o
96 97 98

ifdef CONFIG_LIBOPENCSD
libperf-$(CONFIG_AUXTRACE) += cs-etm.o
99
libperf-$(CONFIG_AUXTRACE) += cs-etm-decoder/
100 101
endif

102
libperf-y += parse-branch-options.o
103
libperf-y += dump-insn.o
104
libperf-y += parse-regs-options.o
105
libperf-y += term.o
106
libperf-y += help-unknown-cmd.o
107
libperf-y += mem-events.o
108
libperf-y += vsprintf.o
109
libperf-y += drv_configs.o
110
libperf-y += units.o
111
libperf-y += time-utils.o
112
libperf-y += expr-bison.o
113
libperf-y += branch.o
J
Jiri Olsa 已提交
114
libperf-y += mem2node.o
115

116
libperf-$(CONFIG_LIBBPF) += bpf-loader.o
117
libperf-$(CONFIG_BPF_PROLOGUE) += bpf-prologue.o
118
libperf-$(CONFIG_LIBELF) += symbol-elf.o
119
libperf-$(CONFIG_LIBELF) += probe-file.o
120 121 122 123 124 125
libperf-$(CONFIG_LIBELF) += probe-event.o

ifndef CONFIG_LIBELF
libperf-y += symbol-minimal.o
endif

126 127 128 129
ifndef CONFIG_SETNS
libperf-y += setns.o
endif

130 131
libperf-$(CONFIG_DWARF) += probe-finder.o
libperf-$(CONFIG_DWARF) += dwarf-aux.o
132
libperf-$(CONFIG_DWARF) += dwarf-regs.o
133

134
libperf-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o
135
libperf-$(CONFIG_LOCAL_LIBUNWIND)    += unwind-libunwind-local.o
136
libperf-$(CONFIG_LIBUNWIND)          += unwind-libunwind.o
137
libperf-$(CONFIG_LIBUNWIND_X86)      += libunwind/x86_32.o
138
libperf-$(CONFIG_LIBUNWIND_AARCH64)  += libunwind/arm64.o
139

140 141
libperf-$(CONFIG_LIBBABELTRACE) += data-convert-bt.o

142 143
libperf-y += scripting-engines/

144
libperf-$(CONFIG_ZLIB) += zlib.o
145
libperf-$(CONFIG_LZMA) += lzma.o
146
libperf-y += demangle-java.o
D
David Tolnay 已提交
147
libperf-y += demangle-rust.o
148

149
ifdef CONFIG_JITDUMP
150 151
libperf-$(CONFIG_LIBELF) += jitdump.o
libperf-$(CONFIG_LIBELF) += genelf.o
152
libperf-$(CONFIG_DWARF) += genelf_debug.o
153
endif
154

W
Wang Nan 已提交
155 156
libperf-y += perf-hooks.o

157 158
libperf-$(CONFIG_LIBBPF) += bpf-event.o

159 160
libperf-$(CONFIG_CXX) += c++/

161
CFLAGS_config.o   += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
162 163
CFLAGS_llvm-utils.o += -DPERF_INCLUDE_DIR="BUILD_STR($(perf_include_dir_SQ))"

164 165
# avoid compiler warnings in 32-bit mode
CFLAGS_genelf_debug.o  += -Wno-packed
166 167

$(OUTPUT)util/parse-events-flex.c: util/parse-events.l $(OUTPUT)util/parse-events-bison.c
168
	$(call rule_mkdir)
169
	$(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/parse-events-flex.h $(PARSER_DEBUG_FLEX) util/parse-events.l
170 171

$(OUTPUT)util/parse-events-bison.c: util/parse-events.y
172
	$(call rule_mkdir)
173
	$(Q)$(call echo-cmd,bison)$(BISON) -v util/parse-events.y -d $(PARSER_DEBUG_BISON) -o $@ -p parse_events_
174

175 176 177 178
$(OUTPUT)util/expr-bison.c: util/expr.y
	$(call rule_mkdir)
	$(Q)$(call echo-cmd,bison)$(BISON) -v util/expr.y -d $(PARSER_DEBUG_BISON) -o $@ -p expr__

179
$(OUTPUT)util/pmu-flex.c: util/pmu.l $(OUTPUT)util/pmu-bison.c
180
	$(call rule_mkdir)
181
	$(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/pmu-flex.h util/pmu.l
182 183

$(OUTPUT)util/pmu-bison.c: util/pmu.y
184
	$(call rule_mkdir)
185
	$(Q)$(call echo-cmd,bison)$(BISON) -v util/pmu.y -d -o $@ -p perf_pmu_
186 187 188

CFLAGS_parse-events-flex.o  += -w
CFLAGS_pmu-flex.o           += -w
189
CFLAGS_parse-events-bison.o += -DYYENABLE_NLS=0 -w
190
CFLAGS_pmu-bison.o          += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w
191
CFLAGS_expr-bison.o         += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w
192 193 194 195

$(OUTPUT)util/parse-events.o: $(OUTPUT)util/parse-events-flex.c $(OUTPUT)util/parse-events-bison.c
$(OUTPUT)util/pmu.o: $(OUTPUT)util/pmu-flex.c $(OUTPUT)util/pmu-bison.c

196
CFLAGS_bitmap.o        += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
197
CFLAGS_find_bit.o      += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
198
CFLAGS_rbtree.o        += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
199
CFLAGS_libstring.o     += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
200 201
CFLAGS_hweight.o       += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
CFLAGS_parse-events.o  += -Wno-redundant-decls
202
CFLAGS_header.o        += -include $(OUTPUT)PERF-VERSION-FILE
203 204

$(OUTPUT)util/kallsyms.o: ../lib/symbol/kallsyms.c FORCE
205
	$(call rule_mkdir)
206 207
	$(call if_changed_dep,cc_o_c)

208 209 210 211
$(OUTPUT)util/bitmap.o: ../lib/bitmap.c FORCE
	$(call rule_mkdir)
	$(call if_changed_dep,cc_o_c)

212
$(OUTPUT)util/find_bit.o: ../lib/find_bit.c FORCE
213
	$(call rule_mkdir)
214 215
	$(call if_changed_dep,cc_o_c)

216
$(OUTPUT)util/rbtree.o: ../lib/rbtree.c FORCE
217
	$(call rule_mkdir)
218 219
	$(call if_changed_dep,cc_o_c)

220 221 222 223
$(OUTPUT)util/libstring.o: ../lib/string.c FORCE
	$(call rule_mkdir)
	$(call if_changed_dep,cc_o_c)

224
$(OUTPUT)util/hweight.o: ../lib/hweight.c FORCE
225
	$(call rule_mkdir)
226
	$(call if_changed_dep,cc_o_c)
227 228 229 230

$(OUTPUT)util/vsprintf.o: ../lib/vsprintf.c FORCE
	$(call rule_mkdir)
	$(call if_changed_dep,cc_o_c)