1perf-y += annotate.o 2perf-y += block-range.o 3perf-y += build-id.o 4perf-y += config.o 5perf-y += ctype.o 6perf-y += db-export.o 7perf-y += env.o 8perf-y += event.o 9perf-y += evlist.o 10perf-y += evsel.o 11perf-y += evsel_fprintf.o 12perf-y += find_bit.o 13perf-y += get_current_dir_name.o 14perf-y += kallsyms.o 15perf-y += levenshtein.o 16perf-y += llvm-utils.o 17perf-y += mmap.o 18perf-y += memswap.o 19perf-y += parse-events.o 20perf-y += perf_regs.o 21perf-y += path.o 22perf-y += print_binary.o 23perf-y += rbtree.o 24perf-y += libstring.o 25perf-y += bitmap.o 26perf-y += hweight.o 27perf-y += smt.o 28perf-y += strbuf.o 29perf-y += string.o 30perf-y += strlist.o 31perf-y += strfilter.o 32perf-y += top.o 33perf-y += usage.o 34perf-y += dso.o 35perf-y += symbol.o 36perf-y += symbol_fprintf.o 37perf-y += color.o 38perf-y += color_config.o 39perf-y += metricgroup.o 40perf-y += header.o 41perf-y += callchain.o 42perf-y += values.o 43perf-y += debug.o 44perf-y += machine.o 45perf-y += map.o 46perf-y += pstack.o 47perf-y += session.o 48perf-y += sample-raw.o 49perf-y += s390-sample-raw.o 50perf-$(CONFIG_TRACE) += syscalltbl.o 51perf-y += ordered-events.o 52perf-y += namespaces.o 53perf-y += comm.o 54perf-y += thread.o 55perf-y += thread_map.o 56perf-y += trace-event-parse.o 57perf-y += parse-events-flex.o 58perf-y += parse-events-bison.o 59perf-y += pmu.o 60perf-y += pmu-flex.o 61perf-y += pmu-bison.o 62perf-y += trace-event-read.o 63perf-y += trace-event-info.o 64perf-y += trace-event-scripting.o 65perf-y += trace-event.o 66perf-y += svghelper.o 67perf-y += sort.o 68perf-y += hist.o 69perf-y += util.o 70perf-y += xyarray.o 71perf-y += cpumap.o 72perf-y += cgroup.o 73perf-y += target.o 74perf-y += rblist.o 75perf-y += intlist.o 76perf-y += vdso.o 77perf-y += counts.o 78perf-y += stat.o 79perf-y += stat-shadow.o 80perf-y += stat-display.o 81perf-y += record.o 82perf-y += srcline.o 83perf-y += srccode.o 84perf-y += data.o 85perf-y += tsc.o 86perf-y += cloexec.o 87perf-y += call-path.o 88perf-y += rwsem.o 89perf-y += thread-stack.o 90perf-$(CONFIG_AUXTRACE) += auxtrace.o 91perf-$(CONFIG_AUXTRACE) += intel-pt-decoder/ 92perf-$(CONFIG_AUXTRACE) += intel-pt.o 93perf-$(CONFIG_AUXTRACE) += intel-bts.o 94perf-$(CONFIG_AUXTRACE) += arm-spe.o 95perf-$(CONFIG_AUXTRACE) += arm-spe-pkt-decoder.o 96perf-$(CONFIG_AUXTRACE) += s390-cpumsf.o 97 98ifdef CONFIG_LIBOPENCSD 99perf-$(CONFIG_AUXTRACE) += cs-etm.o 100perf-$(CONFIG_AUXTRACE) += cs-etm-decoder/ 101endif 102 103perf-y += parse-branch-options.o 104perf-y += dump-insn.o 105perf-y += parse-regs-options.o 106perf-y += term.o 107perf-y += help-unknown-cmd.o 108perf-y += mem-events.o 109perf-y += vsprintf.o 110perf-y += units.o 111perf-y += time-utils.o 112perf-y += expr-bison.o 113perf-y += branch.o 114perf-y += mem2node.o 115 116perf-$(CONFIG_LIBBPF) += bpf-loader.o 117perf-$(CONFIG_BPF_PROLOGUE) += bpf-prologue.o 118perf-$(CONFIG_LIBELF) += symbol-elf.o 119perf-$(CONFIG_LIBELF) += probe-file.o 120perf-$(CONFIG_LIBELF) += probe-event.o 121 122ifndef CONFIG_LIBELF 123perf-y += symbol-minimal.o 124endif 125 126ifndef CONFIG_SETNS 127perf-y += setns.o 128endif 129 130perf-$(CONFIG_DWARF) += probe-finder.o 131perf-$(CONFIG_DWARF) += dwarf-aux.o 132perf-$(CONFIG_DWARF) += dwarf-regs.o 133 134perf-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o 135perf-$(CONFIG_LOCAL_LIBUNWIND) += unwind-libunwind-local.o 136perf-$(CONFIG_LIBUNWIND) += unwind-libunwind.o 137perf-$(CONFIG_LIBUNWIND_X86) += libunwind/x86_32.o 138perf-$(CONFIG_LIBUNWIND_AARCH64) += libunwind/arm64.o 139 140perf-$(CONFIG_LIBBABELTRACE) += data-convert-bt.o 141 142perf-y += scripting-engines/ 143 144perf-$(CONFIG_ZLIB) += zlib.o 145perf-$(CONFIG_LZMA) += lzma.o 146perf-y += demangle-java.o 147perf-y += demangle-rust.o 148 149ifdef CONFIG_JITDUMP 150perf-$(CONFIG_LIBELF) += jitdump.o 151perf-$(CONFIG_LIBELF) += genelf.o 152perf-$(CONFIG_DWARF) += genelf_debug.o 153endif 154 155perf-y += perf-hooks.o 156 157perf-$(CONFIG_LIBBPF) += bpf-event.o 158 159perf-$(CONFIG_CXX) += c++/ 160 161CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" 162CFLAGS_llvm-utils.o += -DPERF_INCLUDE_DIR="BUILD_STR($(perf_include_dir_SQ))" 163 164# avoid compiler warnings in 32-bit mode 165CFLAGS_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$(OUTPUT)util/expr-bison.c: util/expr.y 176 $(call rule_mkdir) 177 $(Q)$(call echo-cmd,bison)$(BISON) -v util/expr.y -d $(PARSER_DEBUG_BISON) -o $@ -p expr__ 178 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 187CFLAGS_parse-events-flex.o += -w 188CFLAGS_pmu-flex.o += -w 189CFLAGS_parse-events-bison.o += -DYYENABLE_NLS=0 -w 190CFLAGS_pmu-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w 191CFLAGS_expr-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w 192 193$(OUTPUT)util/parse-events.o: $(OUTPUT)util/parse-events-flex.c $(OUTPUT)util/parse-events-bison.c 194$(OUTPUT)util/pmu.o: $(OUTPUT)util/pmu-flex.c $(OUTPUT)util/pmu-bison.c 195 196CFLAGS_bitmap.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" 197CFLAGS_find_bit.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" 198CFLAGS_rbtree.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" 199CFLAGS_libstring.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" 200CFLAGS_hweight.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" 201CFLAGS_parse-events.o += -Wno-redundant-decls 202CFLAGS_header.o += -include $(OUTPUT)PERF-VERSION-FILE 203 204$(OUTPUT)util/kallsyms.o: ../lib/symbol/kallsyms.c FORCE 205 $(call rule_mkdir) 206 $(call if_changed_dep,cc_o_c) 207 208$(OUTPUT)util/bitmap.o: ../lib/bitmap.c FORCE 209 $(call rule_mkdir) 210 $(call if_changed_dep,cc_o_c) 211 212$(OUTPUT)util/find_bit.o: ../lib/find_bit.c FORCE 213 $(call rule_mkdir) 214 $(call if_changed_dep,cc_o_c) 215 216$(OUTPUT)util/rbtree.o: ../lib/rbtree.c FORCE 217 $(call rule_mkdir) 218 $(call if_changed_dep,cc_o_c) 219 220$(OUTPUT)util/libstring.o: ../lib/string.c FORCE 221 $(call rule_mkdir) 222 $(call if_changed_dep,cc_o_c) 223 224$(OUTPUT)util/hweight.o: ../lib/hweight.c FORCE 225 $(call rule_mkdir) 226 $(call if_changed_dep,cc_o_c) 227 228$(OUTPUT)util/vsprintf.o: ../lib/vsprintf.c FORCE 229 $(call rule_mkdir) 230 $(call if_changed_dep,cc_o_c) 231