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 += cputopo.o 73perf-y += cgroup.o 74perf-y += target.o 75perf-y += rblist.o 76perf-y += intlist.o 77perf-y += vdso.o 78perf-y += counts.o 79perf-y += stat.o 80perf-y += stat-shadow.o 81perf-y += stat-display.o 82perf-y += record.o 83perf-y += srcline.o 84perf-y += srccode.o 85perf-y += data.o 86perf-y += tsc.o 87perf-y += cloexec.o 88perf-y += call-path.o 89perf-y += rwsem.o 90perf-y += thread-stack.o 91perf-$(CONFIG_AUXTRACE) += auxtrace.o 92perf-$(CONFIG_AUXTRACE) += intel-pt-decoder/ 93perf-$(CONFIG_AUXTRACE) += intel-pt.o 94perf-$(CONFIG_AUXTRACE) += intel-bts.o 95perf-$(CONFIG_AUXTRACE) += arm-spe.o 96perf-$(CONFIG_AUXTRACE) += arm-spe-pkt-decoder.o 97perf-$(CONFIG_AUXTRACE) += s390-cpumsf.o 98 99ifdef CONFIG_LIBOPENCSD 100perf-$(CONFIG_AUXTRACE) += cs-etm.o 101perf-$(CONFIG_AUXTRACE) += cs-etm-decoder/ 102endif 103 104perf-y += parse-branch-options.o 105perf-y += dump-insn.o 106perf-y += parse-regs-options.o 107perf-y += term.o 108perf-y += help-unknown-cmd.o 109perf-y += mem-events.o 110perf-y += vsprintf.o 111perf-y += units.o 112perf-y += time-utils.o 113perf-y += expr-bison.o 114perf-y += branch.o 115perf-y += mem2node.o 116 117perf-$(CONFIG_LIBBPF) += bpf-loader.o 118perf-$(CONFIG_LIBBPF) += bpf_map.o 119perf-$(CONFIG_BPF_PROLOGUE) += bpf-prologue.o 120perf-$(CONFIG_LIBELF) += symbol-elf.o 121perf-$(CONFIG_LIBELF) += probe-file.o 122perf-$(CONFIG_LIBELF) += probe-event.o 123 124ifndef CONFIG_LIBELF 125perf-y += symbol-minimal.o 126endif 127 128ifndef CONFIG_SETNS 129perf-y += setns.o 130endif 131 132perf-$(CONFIG_DWARF) += probe-finder.o 133perf-$(CONFIG_DWARF) += dwarf-aux.o 134perf-$(CONFIG_DWARF) += dwarf-regs.o 135 136perf-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o 137perf-$(CONFIG_LOCAL_LIBUNWIND) += unwind-libunwind-local.o 138perf-$(CONFIG_LIBUNWIND) += unwind-libunwind.o 139perf-$(CONFIG_LIBUNWIND_X86) += libunwind/x86_32.o 140perf-$(CONFIG_LIBUNWIND_AARCH64) += libunwind/arm64.o 141 142perf-$(CONFIG_LIBBABELTRACE) += data-convert-bt.o 143 144perf-y += scripting-engines/ 145 146perf-$(CONFIG_ZLIB) += zlib.o 147perf-$(CONFIG_LZMA) += lzma.o 148perf-$(CONFIG_ZSTD) += zstd.o 149 150perf-y += demangle-java.o 151perf-y += demangle-rust.o 152 153ifdef CONFIG_JITDUMP 154perf-$(CONFIG_LIBELF) += jitdump.o 155perf-$(CONFIG_LIBELF) += genelf.o 156perf-$(CONFIG_DWARF) += genelf_debug.o 157endif 158 159perf-y += perf-hooks.o 160 161perf-$(CONFIG_LIBBPF) += bpf-event.o 162 163perf-$(CONFIG_CXX) += c++/ 164 165CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" 166CFLAGS_llvm-utils.o += -DPERF_INCLUDE_DIR="BUILD_STR($(perf_include_dir_SQ))" 167 168# avoid compiler warnings in 32-bit mode 169CFLAGS_genelf_debug.o += -Wno-packed 170 171$(OUTPUT)util/parse-events-flex.c: util/parse-events.l $(OUTPUT)util/parse-events-bison.c 172 $(call rule_mkdir) 173 $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/parse-events-flex.h $(PARSER_DEBUG_FLEX) util/parse-events.l 174 175$(OUTPUT)util/parse-events-bison.c: util/parse-events.y 176 $(call rule_mkdir) 177 $(Q)$(call echo-cmd,bison)$(BISON) -v util/parse-events.y -d $(PARSER_DEBUG_BISON) -o $@ -p parse_events_ 178 179$(OUTPUT)util/expr-bison.c: util/expr.y 180 $(call rule_mkdir) 181 $(Q)$(call echo-cmd,bison)$(BISON) -v util/expr.y -d $(PARSER_DEBUG_BISON) -o $@ -p expr__ 182 183$(OUTPUT)util/pmu-flex.c: util/pmu.l $(OUTPUT)util/pmu-bison.c 184 $(call rule_mkdir) 185 $(Q)$(call echo-cmd,flex)$(FLEX) -o $@ --header-file=$(OUTPUT)util/pmu-flex.h util/pmu.l 186 187$(OUTPUT)util/pmu-bison.c: util/pmu.y 188 $(call rule_mkdir) 189 $(Q)$(call echo-cmd,bison)$(BISON) -v util/pmu.y -d -o $@ -p perf_pmu_ 190 191CFLAGS_parse-events-flex.o += -w 192CFLAGS_pmu-flex.o += -w 193CFLAGS_parse-events-bison.o += -DYYENABLE_NLS=0 -w 194CFLAGS_pmu-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w 195CFLAGS_expr-bison.o += -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -w 196 197$(OUTPUT)util/parse-events.o: $(OUTPUT)util/parse-events-flex.c $(OUTPUT)util/parse-events-bison.c 198$(OUTPUT)util/pmu.o: $(OUTPUT)util/pmu-flex.c $(OUTPUT)util/pmu-bison.c 199 200CFLAGS_bitmap.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" 201CFLAGS_find_bit.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" 202CFLAGS_rbtree.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" 203CFLAGS_libstring.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" 204CFLAGS_hweight.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" 205CFLAGS_parse-events.o += -Wno-redundant-decls 206CFLAGS_header.o += -include $(OUTPUT)PERF-VERSION-FILE 207 208$(OUTPUT)util/kallsyms.o: ../lib/symbol/kallsyms.c FORCE 209 $(call rule_mkdir) 210 $(call if_changed_dep,cc_o_c) 211 212$(OUTPUT)util/bitmap.o: ../lib/bitmap.c FORCE 213 $(call rule_mkdir) 214 $(call if_changed_dep,cc_o_c) 215 216$(OUTPUT)util/find_bit.o: ../lib/find_bit.c FORCE 217 $(call rule_mkdir) 218 $(call if_changed_dep,cc_o_c) 219 220$(OUTPUT)util/rbtree.o: ../lib/rbtree.c FORCE 221 $(call rule_mkdir) 222 $(call if_changed_dep,cc_o_c) 223 224$(OUTPUT)util/libstring.o: ../lib/string.c FORCE 225 $(call rule_mkdir) 226 $(call if_changed_dep,cc_o_c) 227 228$(OUTPUT)util/hweight.o: ../lib/hweight.c FORCE 229 $(call rule_mkdir) 230 $(call if_changed_dep,cc_o_c) 231 232$(OUTPUT)util/vsprintf.o: ../lib/vsprintf.c FORCE 233 $(call rule_mkdir) 234 $(call if_changed_dep,cc_o_c) 235