Build 6.1 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 14
libperf-y += kallsyms.o
libperf-y += levenshtein.o
15
libperf-y += llvm-utils.o
16
libperf-y += memswap.o
17
libperf-y += parse-events.o
18
libperf-y += perf_regs.o
19
libperf-y += path.o
20
libperf-y += print_binary.o
21
libperf-y += rbtree.o
22
libperf-y += libstring.o
23 24 25 26 27 28 29 30 31 32 33
libperf-y += bitmap.o
libperf-y += hweight.o
libperf-y += quote.o
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
34
libperf-y += symbol_fprintf.o
35 36 37 38 39 40 41 42 43
libperf-y += color.o
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
44
libperf-$(CONFIG_AUDIT) += syscalltbl.o
45
libperf-y += ordered-events.o
46
libperf-y += namespaces.o
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
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
71
libperf-y += counts.o
72
libperf-y += stat.o
73
libperf-y += stat-shadow.o
74 75 76
libperf-y += record.o
libperf-y += srcline.o
libperf-y += data.o
77
libperf-y += tsc.o
78
libperf-y += cloexec.o
79
libperf-y += call-path.o
80
libperf-y += thread-stack.o
81
libperf-$(CONFIG_AUXTRACE) += auxtrace.o
82
libperf-$(CONFIG_AUXTRACE) += intel-pt-decoder/
A
Adrian Hunter 已提交
83
libperf-$(CONFIG_AUXTRACE) += intel-pt.o
84
libperf-$(CONFIG_AUXTRACE) += intel-bts.o
85
libperf-y += parse-branch-options.o
86
libperf-y += dump-insn.o
87
libperf-y += parse-regs-options.o
88
libperf-y += term.o
89
libperf-y += help-unknown-cmd.o
90
libperf-y += mem-events.o
91
libperf-y += vsprintf.o
92
libperf-y += drv_configs.o
93
libperf-y += units.o
94
libperf-y += time-utils.o
95
libperf-y += expr-bison.o
96

97
libperf-$(CONFIG_LIBBPF) += bpf-loader.o
98
libperf-$(CONFIG_BPF_PROLOGUE) += bpf-prologue.o
99
libperf-$(CONFIG_LIBELF) += symbol-elf.o
100
libperf-$(CONFIG_LIBELF) += probe-file.o
101 102 103 104 105 106
libperf-$(CONFIG_LIBELF) += probe-event.o

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

107 108
libperf-$(CONFIG_DWARF) += probe-finder.o
libperf-$(CONFIG_DWARF) += dwarf-aux.o
109
libperf-$(CONFIG_DWARF) += dwarf-regs.o
110

111
libperf-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o
112
libperf-$(CONFIG_LOCAL_LIBUNWIND)    += unwind-libunwind-local.o
113
libperf-$(CONFIG_LIBUNWIND)          += unwind-libunwind.o
114
libperf-$(CONFIG_LIBUNWIND_X86)      += libunwind/x86_32.o
115
libperf-$(CONFIG_LIBUNWIND_AARCH64)  += libunwind/arm64.o
116

117 118
libperf-$(CONFIG_LIBBABELTRACE) += data-convert-bt.o

119 120
libperf-y += scripting-engines/

121
libperf-$(CONFIG_ZLIB) += zlib.o
122
libperf-$(CONFIG_LZMA) += lzma.o
123
libperf-y += demangle-java.o
D
David Tolnay 已提交
124
libperf-y += demangle-rust.o
125

126
ifdef CONFIG_JITDUMP
127 128
libperf-$(CONFIG_LIBELF) += jitdump.o
libperf-$(CONFIG_LIBELF) += genelf.o
129
libperf-$(CONFIG_DWARF) += genelf_debug.o
130
endif
131

W
Wang Nan 已提交
132 133
libperf-y += perf-hooks.o

134 135
libperf-$(CONFIG_CXX) += c++/

136
CFLAGS_config.o   += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
137 138
# avoid compiler warnings in 32-bit mode
CFLAGS_genelf_debug.o  += -Wno-packed
139 140

$(OUTPUT)util/parse-events-flex.c: util/parse-events.l $(OUTPUT)util/parse-events-bison.c
141
	$(call rule_mkdir)
142
	$(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/parse-events-flex.h $(PARSER_DEBUG_FLEX) util/parse-events.l
143 144

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

148 149 150 151
$(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__

152
$(OUTPUT)util/pmu-flex.c: util/pmu.l $(OUTPUT)util/pmu-bison.c
153
	$(call rule_mkdir)
154
	$(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/pmu-flex.h util/pmu.l
155 156

$(OUTPUT)util/pmu-bison.c: util/pmu.y
157
	$(call rule_mkdir)
158
	$(Q)$(call echo-cmd,bison)$(BISON) -v util/pmu.y -d -o $@ -p perf_pmu_
159 160 161

CFLAGS_parse-events-flex.o  += -w
CFLAGS_pmu-flex.o           += -w
162
CFLAGS_parse-events-bison.o += -DYYENABLE_NLS=0 -w
163
CFLAGS_pmu-bison.o          += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w
164
CFLAGS_expr-bison.o         += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w
165 166 167 168

$(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

169
CFLAGS_bitmap.o        += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
170
CFLAGS_find_bit.o      += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
171
CFLAGS_rbtree.o        += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
172
CFLAGS_libstring.o     += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
173 174
CFLAGS_hweight.o       += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
CFLAGS_parse-events.o  += -Wno-redundant-decls
175
CFLAGS_header.o        += -include $(OUTPUT)PERF-VERSION-FILE
176 177

$(OUTPUT)util/kallsyms.o: ../lib/symbol/kallsyms.c FORCE
178
	$(call rule_mkdir)
179 180
	$(call if_changed_dep,cc_o_c)

181 182 183 184
$(OUTPUT)util/bitmap.o: ../lib/bitmap.c FORCE
	$(call rule_mkdir)
	$(call if_changed_dep,cc_o_c)

185
$(OUTPUT)util/find_bit.o: ../lib/find_bit.c FORCE
186
	$(call rule_mkdir)
187 188
	$(call if_changed_dep,cc_o_c)

189
$(OUTPUT)util/rbtree.o: ../lib/rbtree.c FORCE
190
	$(call rule_mkdir)
191 192
	$(call if_changed_dep,cc_o_c)

193 194 195 196
$(OUTPUT)util/libstring.o: ../lib/string.c FORCE
	$(call rule_mkdir)
	$(call if_changed_dep,cc_o_c)

197
$(OUTPUT)util/hweight.o: ../lib/hweight.c FORCE
198
	$(call rule_mkdir)
199
	$(call if_changed_dep,cc_o_c)
200 201 202 203

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