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