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