Jiri Olsa | 5ff3288 | 2019-02-13 13:32:39 +0100 | [diff] [blame] | 1 | perf-y += annotate.o |
| 2 | perf-y += block-range.o |
| 3 | perf-y += build-id.o |
| 4 | perf-y += config.o |
| 5 | perf-y += ctype.o |
| 6 | perf-y += db-export.o |
| 7 | perf-y += env.o |
| 8 | perf-y += event.o |
| 9 | perf-y += evlist.o |
| 10 | perf-y += evsel.o |
| 11 | perf-y += evsel_fprintf.o |
| 12 | perf-y += find_bit.o |
| 13 | perf-y += get_current_dir_name.o |
| 14 | perf-y += kallsyms.o |
| 15 | perf-y += levenshtein.o |
| 16 | perf-y += llvm-utils.o |
| 17 | perf-y += mmap.o |
| 18 | perf-y += memswap.o |
| 19 | perf-y += parse-events.o |
| 20 | perf-y += perf_regs.o |
| 21 | perf-y += path.o |
| 22 | perf-y += print_binary.o |
Arnaldo Carvalho de Melo | 9c10548 | 2019-06-26 15:27:58 -0300 | [diff] [blame^] | 23 | perf-y += argv_split.o |
Jiri Olsa | 5ff3288 | 2019-02-13 13:32:39 +0100 | [diff] [blame] | 24 | perf-y += rbtree.o |
| 25 | perf-y += libstring.o |
| 26 | perf-y += bitmap.o |
| 27 | perf-y += hweight.o |
| 28 | perf-y += smt.o |
| 29 | perf-y += strbuf.o |
| 30 | perf-y += string.o |
| 31 | perf-y += strlist.o |
| 32 | perf-y += strfilter.o |
| 33 | perf-y += top.o |
| 34 | perf-y += usage.o |
| 35 | perf-y += dso.o |
| 36 | perf-y += symbol.o |
| 37 | perf-y += symbol_fprintf.o |
| 38 | perf-y += color.o |
| 39 | perf-y += color_config.o |
| 40 | perf-y += metricgroup.o |
| 41 | perf-y += header.o |
| 42 | perf-y += callchain.o |
| 43 | perf-y += values.o |
| 44 | perf-y += debug.o |
| 45 | perf-y += machine.o |
| 46 | perf-y += map.o |
| 47 | perf-y += pstack.o |
| 48 | perf-y += session.o |
| 49 | perf-y += sample-raw.o |
| 50 | perf-y += s390-sample-raw.o |
| 51 | perf-$(CONFIG_TRACE) += syscalltbl.o |
| 52 | perf-y += ordered-events.o |
| 53 | perf-y += namespaces.o |
| 54 | perf-y += comm.o |
| 55 | perf-y += thread.o |
| 56 | perf-y += thread_map.o |
| 57 | perf-y += trace-event-parse.o |
| 58 | perf-y += parse-events-flex.o |
| 59 | perf-y += parse-events-bison.o |
| 60 | perf-y += pmu.o |
| 61 | perf-y += pmu-flex.o |
| 62 | perf-y += pmu-bison.o |
| 63 | perf-y += trace-event-read.o |
| 64 | perf-y += trace-event-info.o |
| 65 | perf-y += trace-event-scripting.o |
| 66 | perf-y += trace-event.o |
| 67 | perf-y += svghelper.o |
| 68 | perf-y += sort.o |
| 69 | perf-y += hist.o |
| 70 | perf-y += util.o |
| 71 | perf-y += xyarray.o |
| 72 | perf-y += cpumap.o |
Jiri Olsa | 5135d5e | 2019-02-19 10:58:13 +0100 | [diff] [blame] | 73 | perf-y += cputopo.o |
Jiri Olsa | 5ff3288 | 2019-02-13 13:32:39 +0100 | [diff] [blame] | 74 | perf-y += cgroup.o |
| 75 | perf-y += target.o |
| 76 | perf-y += rblist.o |
| 77 | perf-y += intlist.o |
| 78 | perf-y += vdso.o |
| 79 | perf-y += counts.o |
| 80 | perf-y += stat.o |
| 81 | perf-y += stat-shadow.o |
| 82 | perf-y += stat-display.o |
| 83 | perf-y += record.o |
| 84 | perf-y += srcline.o |
| 85 | perf-y += srccode.o |
| 86 | perf-y += data.o |
| 87 | perf-y += tsc.o |
| 88 | perf-y += cloexec.o |
| 89 | perf-y += call-path.o |
| 90 | perf-y += rwsem.o |
| 91 | perf-y += thread-stack.o |
| 92 | perf-$(CONFIG_AUXTRACE) += auxtrace.o |
| 93 | perf-$(CONFIG_AUXTRACE) += intel-pt-decoder/ |
| 94 | perf-$(CONFIG_AUXTRACE) += intel-pt.o |
| 95 | perf-$(CONFIG_AUXTRACE) += intel-bts.o |
| 96 | perf-$(CONFIG_AUXTRACE) += arm-spe.o |
| 97 | perf-$(CONFIG_AUXTRACE) += arm-spe-pkt-decoder.o |
| 98 | perf-$(CONFIG_AUXTRACE) += s390-cpumsf.o |
Mathieu Poirier | 440a23b | 2018-01-17 10:52:11 -0700 | [diff] [blame] | 99 | |
| 100 | ifdef CONFIG_LIBOPENCSD |
Jiri Olsa | 5ff3288 | 2019-02-13 13:32:39 +0100 | [diff] [blame] | 101 | perf-$(CONFIG_AUXTRACE) += cs-etm.o |
| 102 | perf-$(CONFIG_AUXTRACE) += cs-etm-decoder/ |
Mathieu Poirier | 440a23b | 2018-01-17 10:52:11 -0700 | [diff] [blame] | 103 | endif |
| 104 | |
Jiri Olsa | 5ff3288 | 2019-02-13 13:32:39 +0100 | [diff] [blame] | 105 | perf-y += parse-branch-options.o |
| 106 | perf-y += dump-insn.o |
| 107 | perf-y += parse-regs-options.o |
| 108 | perf-y += term.o |
| 109 | perf-y += help-unknown-cmd.o |
| 110 | perf-y += mem-events.o |
| 111 | perf-y += vsprintf.o |
| 112 | perf-y += units.o |
| 113 | perf-y += time-utils.o |
| 114 | perf-y += expr-bison.o |
| 115 | perf-y += branch.o |
| 116 | perf-y += mem2node.o |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 117 | |
Jiri Olsa | 5ff3288 | 2019-02-13 13:32:39 +0100 | [diff] [blame] | 118 | perf-$(CONFIG_LIBBPF) += bpf-loader.o |
Arnaldo Carvalho de Melo | d19f8564 | 2019-02-19 16:11:56 -0300 | [diff] [blame] | 119 | perf-$(CONFIG_LIBBPF) += bpf_map.o |
Jiri Olsa | 5ff3288 | 2019-02-13 13:32:39 +0100 | [diff] [blame] | 120 | perf-$(CONFIG_BPF_PROLOGUE) += bpf-prologue.o |
| 121 | perf-$(CONFIG_LIBELF) += symbol-elf.o |
| 122 | perf-$(CONFIG_LIBELF) += probe-file.o |
| 123 | perf-$(CONFIG_LIBELF) += probe-event.o |
Jiri Olsa | 709e679 | 2014-12-29 23:52:25 +0100 | [diff] [blame] | 124 | |
| 125 | ifndef CONFIG_LIBELF |
Jiri Olsa | 5ff3288 | 2019-02-13 13:32:39 +0100 | [diff] [blame] | 126 | perf-y += symbol-minimal.o |
Jiri Olsa | 709e679 | 2014-12-29 23:52:25 +0100 | [diff] [blame] | 127 | endif |
| 128 | |
Arnaldo Carvalho de Melo | 86bcdb5 | 2017-07-18 17:15:29 -0300 | [diff] [blame] | 129 | ifndef CONFIG_SETNS |
Jiri Olsa | 5ff3288 | 2019-02-13 13:32:39 +0100 | [diff] [blame] | 130 | perf-y += setns.o |
Arnaldo Carvalho de Melo | 86bcdb5 | 2017-07-18 17:15:29 -0300 | [diff] [blame] | 131 | endif |
| 132 | |
Jiri Olsa | 5ff3288 | 2019-02-13 13:32:39 +0100 | [diff] [blame] | 133 | perf-$(CONFIG_DWARF) += probe-finder.o |
| 134 | perf-$(CONFIG_DWARF) += dwarf-aux.o |
| 135 | perf-$(CONFIG_DWARF) += dwarf-regs.o |
Jiri Olsa | 8379fce | 2014-12-30 00:06:25 +0100 | [diff] [blame] | 136 | |
Jiri Olsa | 5ff3288 | 2019-02-13 13:32:39 +0100 | [diff] [blame] | 137 | perf-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o |
| 138 | perf-$(CONFIG_LOCAL_LIBUNWIND) += unwind-libunwind-local.o |
| 139 | perf-$(CONFIG_LIBUNWIND) += unwind-libunwind.o |
| 140 | perf-$(CONFIG_LIBUNWIND_X86) += libunwind/x86_32.o |
| 141 | perf-$(CONFIG_LIBUNWIND_AARCH64) += libunwind/arm64.o |
Jiri Olsa | b2e45c3 | 2014-12-30 00:11:11 +0100 | [diff] [blame] | 142 | |
Jiri Olsa | 5ff3288 | 2019-02-13 13:32:39 +0100 | [diff] [blame] | 143 | perf-$(CONFIG_LIBBABELTRACE) += data-convert-bt.o |
Jiri Olsa | edbe981 | 2015-02-20 23:17:00 +0100 | [diff] [blame] | 144 | |
Jiri Olsa | 5ff3288 | 2019-02-13 13:32:39 +0100 | [diff] [blame] | 145 | perf-y += scripting-engines/ |
Jiri Olsa | c7355f8 | 2014-12-30 13:11:32 +0100 | [diff] [blame] | 146 | |
Jiri Olsa | 5ff3288 | 2019-02-13 13:32:39 +0100 | [diff] [blame] | 147 | perf-$(CONFIG_ZLIB) += zlib.o |
| 148 | perf-$(CONFIG_LZMA) += lzma.o |
Alexey Budankov | f24c1d7 | 2019-03-18 20:42:55 +0300 | [diff] [blame] | 149 | perf-$(CONFIG_ZSTD) += zstd.o |
| 150 | |
Jiri Olsa | 5ff3288 | 2019-02-13 13:32:39 +0100 | [diff] [blame] | 151 | perf-y += demangle-java.o |
| 152 | perf-y += demangle-rust.o |
Arnaldo Carvalho de Melo | 46dad05 | 2016-03-07 18:48:45 -0300 | [diff] [blame] | 153 | |
Jiri Olsa | e12b202 | 2016-03-10 17:41:13 +0100 | [diff] [blame] | 154 | ifdef CONFIG_JITDUMP |
Jiri Olsa | 5ff3288 | 2019-02-13 13:32:39 +0100 | [diff] [blame] | 155 | perf-$(CONFIG_LIBELF) += jitdump.o |
| 156 | perf-$(CONFIG_LIBELF) += genelf.o |
| 157 | perf-$(CONFIG_DWARF) += genelf_debug.o |
Arnaldo Carvalho de Melo | 46dad05 | 2016-03-07 18:48:45 -0300 | [diff] [blame] | 158 | endif |
Jiri Olsa | 3bc3374 | 2014-12-30 13:30:04 +0100 | [diff] [blame] | 159 | |
Jiri Olsa | 5ff3288 | 2019-02-13 13:32:39 +0100 | [diff] [blame] | 160 | perf-y += perf-hooks.o |
Wang Nan | a074865 | 2016-11-26 07:03:28 +0000 | [diff] [blame] | 161 | |
Jiri Olsa | 5ff3288 | 2019-02-13 13:32:39 +0100 | [diff] [blame] | 162 | perf-$(CONFIG_LIBBPF) += bpf-event.o |
Song Liu | 45178a9 | 2019-01-17 08:15:18 -0800 | [diff] [blame] | 163 | |
Jiri Olsa | 5ff3288 | 2019-02-13 13:32:39 +0100 | [diff] [blame] | 164 | perf-$(CONFIG_CXX) += c++/ |
Wang Nan | 00b8669 | 2016-11-26 07:03:34 +0000 | [diff] [blame] | 165 | |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 166 | CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
Arnaldo Carvalho de Melo | 1b16fff | 2018-05-04 10:37:27 -0300 | [diff] [blame] | 167 | CFLAGS_llvm-utils.o += -DPERF_INCLUDE_DIR="BUILD_STR($(perf_include_dir_SQ))" |
| 168 | |
Stephane Eranian | 598b7c6 | 2015-11-30 10:02:23 +0100 | [diff] [blame] | 169 | # avoid compiler warnings in 32-bit mode |
| 170 | CFLAGS_genelf_debug.o += -Wno-packed |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 171 | |
| 172 | $(OUTPUT)util/parse-events-flex.c: util/parse-events.l $(OUTPUT)util/parse-events-bison.c |
Jiri Olsa | 1999307 | 2014-12-30 18:44:38 +0100 | [diff] [blame] | 173 | $(call rule_mkdir) |
Jiri Olsa | 70923bd | 2015-05-14 12:31:48 -0300 | [diff] [blame] | 174 | $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/parse-events-flex.h $(PARSER_DEBUG_FLEX) util/parse-events.l |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 175 | |
| 176 | $(OUTPUT)util/parse-events-bison.c: util/parse-events.y |
Jiri Olsa | 1999307 | 2014-12-30 18:44:38 +0100 | [diff] [blame] | 177 | $(call rule_mkdir) |
Jiri Olsa | 70923bd | 2015-05-14 12:31:48 -0300 | [diff] [blame] | 178 | $(Q)$(call echo-cmd,bison)$(BISON) -v util/parse-events.y -d $(PARSER_DEBUG_BISON) -o $@ -p parse_events_ |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 179 | |
Andi Kleen | 0751673 | 2017-03-20 13:17:05 -0700 | [diff] [blame] | 180 | $(OUTPUT)util/expr-bison.c: util/expr.y |
| 181 | $(call rule_mkdir) |
| 182 | $(Q)$(call echo-cmd,bison)$(BISON) -v util/expr.y -d $(PARSER_DEBUG_BISON) -o $@ -p expr__ |
| 183 | |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 184 | $(OUTPUT)util/pmu-flex.c: util/pmu.l $(OUTPUT)util/pmu-bison.c |
Jiri Olsa | 1999307 | 2014-12-30 18:44:38 +0100 | [diff] [blame] | 185 | $(call rule_mkdir) |
Jiri Olsa | 70923bd | 2015-05-14 12:31:48 -0300 | [diff] [blame] | 186 | $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/pmu-flex.h util/pmu.l |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 187 | |
| 188 | $(OUTPUT)util/pmu-bison.c: util/pmu.y |
Jiri Olsa | 1999307 | 2014-12-30 18:44:38 +0100 | [diff] [blame] | 189 | $(call rule_mkdir) |
Jiri Olsa | 70923bd | 2015-05-14 12:31:48 -0300 | [diff] [blame] | 190 | $(Q)$(call echo-cmd,bison)$(BISON) -v util/pmu.y -d -o $@ -p perf_pmu_ |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 191 | |
| 192 | CFLAGS_parse-events-flex.o += -w |
| 193 | CFLAGS_pmu-flex.o += -w |
Namhyung Kim | 539f3aa | 2015-04-29 12:55:00 -0300 | [diff] [blame] | 194 | CFLAGS_parse-events-bison.o += -DYYENABLE_NLS=0 -w |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 195 | CFLAGS_pmu-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w |
Andi Kleen | 0751673 | 2017-03-20 13:17:05 -0700 | [diff] [blame] | 196 | CFLAGS_expr-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 197 | |
| 198 | $(OUTPUT)util/parse-events.o: $(OUTPUT)util/parse-events-flex.c $(OUTPUT)util/parse-events-bison.c |
| 199 | $(OUTPUT)util/pmu.o: $(OUTPUT)util/pmu-flex.c $(OUTPUT)util/pmu-bison.c |
| 200 | |
Arnaldo Carvalho de Melo | 915b088 | 2016-01-08 12:33:37 -0300 | [diff] [blame] | 201 | CFLAGS_bitmap.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
Arnaldo Carvalho de Melo | 552eb975 | 2016-01-08 10:46:52 -0300 | [diff] [blame] | 202 | CFLAGS_find_bit.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 203 | CFLAGS_rbtree.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
Arnaldo Carvalho de Melo | 4ddd327 | 2015-11-16 11:36:29 -0300 | [diff] [blame] | 204 | CFLAGS_libstring.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 205 | CFLAGS_hweight.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
| 206 | CFLAGS_parse-events.o += -Wno-redundant-decls |
Soramichi AKIYAMA | d25ed5d | 2017-01-17 00:22:37 +0900 | [diff] [blame] | 207 | CFLAGS_header.o += -include $(OUTPUT)PERF-VERSION-FILE |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 208 | |
| 209 | $(OUTPUT)util/kallsyms.o: ../lib/symbol/kallsyms.c FORCE |
Jiri Olsa | 1999307 | 2014-12-30 18:44:38 +0100 | [diff] [blame] | 210 | $(call rule_mkdir) |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 211 | $(call if_changed_dep,cc_o_c) |
| 212 | |
Arnaldo Carvalho de Melo | 9c10548 | 2019-06-26 15:27:58 -0300 | [diff] [blame^] | 213 | $(OUTPUT)util/argv_split.o: ../lib/argv_split.c FORCE |
| 214 | $(call rule_mkdir) |
| 215 | $(call if_changed_dep,cc_o_c) |
| 216 | |
Arnaldo Carvalho de Melo | 915b088 | 2016-01-08 12:33:37 -0300 | [diff] [blame] | 217 | $(OUTPUT)util/bitmap.o: ../lib/bitmap.c FORCE |
| 218 | $(call rule_mkdir) |
| 219 | $(call if_changed_dep,cc_o_c) |
| 220 | |
Arnaldo Carvalho de Melo | 3052ba5 | 2019-06-25 17:27:31 -0300 | [diff] [blame] | 221 | $(OUTPUT)util/ctype.o: ../lib/ctype.c FORCE |
| 222 | $(call rule_mkdir) |
| 223 | $(call if_changed_dep,cc_o_c) |
| 224 | |
Arnaldo Carvalho de Melo | 552eb975 | 2016-01-08 10:46:52 -0300 | [diff] [blame] | 225 | $(OUTPUT)util/find_bit.o: ../lib/find_bit.c FORCE |
Jiri Olsa | 1999307 | 2014-12-30 18:44:38 +0100 | [diff] [blame] | 226 | $(call rule_mkdir) |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 227 | $(call if_changed_dep,cc_o_c) |
| 228 | |
Arnaldo Carvalho de Melo | 3f73537 | 2015-07-05 22:48:21 -0300 | [diff] [blame] | 229 | $(OUTPUT)util/rbtree.o: ../lib/rbtree.c FORCE |
Jiri Olsa | 1999307 | 2014-12-30 18:44:38 +0100 | [diff] [blame] | 230 | $(call rule_mkdir) |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 231 | $(call if_changed_dep,cc_o_c) |
| 232 | |
Arnaldo Carvalho de Melo | 4ddd327 | 2015-11-16 11:36:29 -0300 | [diff] [blame] | 233 | $(OUTPUT)util/libstring.o: ../lib/string.c FORCE |
| 234 | $(call rule_mkdir) |
| 235 | $(call if_changed_dep,cc_o_c) |
| 236 | |
Arnaldo Carvalho de Melo | 0aefc35 | 2015-07-09 16:27:25 -0300 | [diff] [blame] | 237 | $(OUTPUT)util/hweight.o: ../lib/hweight.c FORCE |
Jiri Olsa | 1999307 | 2014-12-30 18:44:38 +0100 | [diff] [blame] | 238 | $(call rule_mkdir) |
Jiri Olsa | 9352aab | 2014-12-29 17:42:46 +0100 | [diff] [blame] | 239 | $(call if_changed_dep,cc_o_c) |
Arnaldo Carvalho de Melo | d0761e3 | 2016-07-07 15:42:33 -0300 | [diff] [blame] | 240 | |
| 241 | $(OUTPUT)util/vsprintf.o: ../lib/vsprintf.c FORCE |
| 242 | $(call rule_mkdir) |
| 243 | $(call if_changed_dep,cc_o_c) |