]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - tools/perf/util/Build
Merge tag 'v4.11-rc6' into perf/core, to pick up fixes
[mirror_ubuntu-bionic-kernel.git] / tools / perf / util / Build
1 libperf-y += annotate.o
2 libperf-y += block-range.o
3 libperf-y += build-id.o
4 libperf-y += config.o
5 libperf-y += ctype.o
6 libperf-y += db-export.o
7 libperf-y += env.o
8 libperf-y += event.o
9 libperf-y += evlist.o
10 libperf-y += evsel.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
18 libperf-y += path.o
19 libperf-y += rbtree.o
20 libperf-y += libstring.o
21 libperf-y += bitmap.o
22 libperf-y += hweight.o
23 libperf-y += quote.o
24 libperf-y += strbuf.o
25 libperf-y += string.o
26 libperf-y += strlist.o
27 libperf-y += strfilter.o
28 libperf-y += top.o
29 libperf-y += usage.o
30 libperf-y += dso.o
31 libperf-y += symbol.o
32 libperf-y += symbol_fprintf.o
33 libperf-y += color.o
34 libperf-y += header.o
35 libperf-y += callchain.o
36 libperf-y += values.o
37 libperf-y += debug.o
38 libperf-y += machine.o
39 libperf-y += map.o
40 libperf-y += pstack.o
41 libperf-y += session.o
42 libperf-$(CONFIG_AUDIT) += syscalltbl.o
43 libperf-y += ordered-events.o
44 libperf-y += namespaces.o
45 libperf-y += comm.o
46 libperf-y += thread.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
51 libperf-y += pmu.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
59 libperf-y += sort.o
60 libperf-y += hist.o
61 libperf-y += util.o
62 libperf-y += xyarray.o
63 libperf-y += cpumap.o
64 libperf-y += cgroup.o
65 libperf-y += target.o
66 libperf-y += rblist.o
67 libperf-y += intlist.o
68 libperf-y += vdso.o
69 libperf-y += counts.o
70 libperf-y += stat.o
71 libperf-y += stat-shadow.o
72 libperf-y += record.o
73 libperf-y += srcline.o
74 libperf-y += data.o
75 libperf-y += tsc.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
86 libperf-y += term.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
93
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
99
100 ifndef CONFIG_LIBELF
101 libperf-y += symbol-minimal.o
102 endif
103
104 libperf-$(CONFIG_DWARF) += probe-finder.o
105 libperf-$(CONFIG_DWARF) += dwarf-aux.o
106 libperf-$(CONFIG_DWARF) += dwarf-regs.o
107
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
113
114 libperf-$(CONFIG_LIBBABELTRACE) += data-convert-bt.o
115
116 libperf-y += scripting-engines/
117
118 libperf-$(CONFIG_ZLIB) += zlib.o
119 libperf-$(CONFIG_LZMA) += lzma.o
120 libperf-y += demangle-java.o
121 libperf-y += demangle-rust.o
122
123 ifdef CONFIG_JITDUMP
124 libperf-$(CONFIG_LIBELF) += jitdump.o
125 libperf-$(CONFIG_LIBELF) += genelf.o
126 libperf-$(CONFIG_DWARF) += genelf_debug.o
127 endif
128
129 libperf-y += perf-hooks.o
130
131 libperf-$(CONFIG_CXX) += c++/
132
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
136
137 $(OUTPUT)util/parse-events-flex.c: util/parse-events.l $(OUTPUT)util/parse-events-bison.c
138 $(call rule_mkdir)
139 $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/parse-events-flex.h $(PARSER_DEBUG_FLEX) util/parse-events.l
140
141 $(OUTPUT)util/parse-events-bison.c: util/parse-events.y
142 $(call rule_mkdir)
143 $(Q)$(call echo-cmd,bison)$(BISON) -v util/parse-events.y -d $(PARSER_DEBUG_BISON) -o $@ -p parse_events_
144
145 $(OUTPUT)util/expr-bison.c: util/expr.y
146 $(call rule_mkdir)
147 $(Q)$(call echo-cmd,bison)$(BISON) -v util/expr.y -d $(PARSER_DEBUG_BISON) -o $@ -p expr__
148
149 $(OUTPUT)util/pmu-flex.c: util/pmu.l $(OUTPUT)util/pmu-bison.c
150 $(call rule_mkdir)
151 $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/pmu-flex.h util/pmu.l
152
153 $(OUTPUT)util/pmu-bison.c: util/pmu.y
154 $(call rule_mkdir)
155 $(Q)$(call echo-cmd,bison)$(BISON) -v util/pmu.y -d -o $@ -p perf_pmu_
156
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
162
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
165
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
173
174 $(OUTPUT)util/kallsyms.o: ../lib/symbol/kallsyms.c FORCE
175 $(call rule_mkdir)
176 $(call if_changed_dep,cc_o_c)
177
178 $(OUTPUT)util/bitmap.o: ../lib/bitmap.c FORCE
179 $(call rule_mkdir)
180 $(call if_changed_dep,cc_o_c)
181
182 $(OUTPUT)util/find_bit.o: ../lib/find_bit.c FORCE
183 $(call rule_mkdir)
184 $(call if_changed_dep,cc_o_c)
185
186 $(OUTPUT)util/rbtree.o: ../lib/rbtree.c FORCE
187 $(call rule_mkdir)
188 $(call if_changed_dep,cc_o_c)
189
190 $(OUTPUT)util/libstring.o: ../lib/string.c FORCE
191 $(call rule_mkdir)
192 $(call if_changed_dep,cc_o_c)
193
194 $(OUTPUT)util/hweight.o: ../lib/hweight.c FORCE
195 $(call rule_mkdir)
196 $(call if_changed_dep,cc_o_c)
197
198 $(OUTPUT)util/vsprintf.o: ../lib/vsprintf.c FORCE
199 $(call rule_mkdir)
200 $(call if_changed_dep,cc_o_c)