Build 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445
  1. include $(srctree)/tools/scripts/Makefile.include
  2. include $(srctree)/tools/scripts/utilities.mak
  3. perf-util-y += annotate-arch/
  4. perf-util-y += arm64-frame-pointer-unwind-support.o
  5. perf-util-y += addr2line.o
  6. perf-util-y += addr_location.o
  7. perf-util-y += annotate.o
  8. perf-util-y += blake2s.o
  9. perf-util-y += block-info.o
  10. perf-util-y += block-range.o
  11. perf-util-y += build-id.o
  12. perf-util-y += cacheline.o
  13. perf-util-$(CONFIG_LIBCAPSTONE) += capstone.o
  14. perf-util-y += config.o
  15. perf-util-y += copyfile.o
  16. perf-util-y += ctype.o
  17. perf-util-y += db-export.o
  18. perf-util-y += disasm.o
  19. perf-util-y += env.o
  20. perf-util-y += event.o
  21. perf-util-y += evlist.o
  22. perf-util-y += sideband_evlist.o
  23. perf-util-y += evsel.o
  24. perf-util-y += evsel_fprintf.o
  25. perf-util-y += perf_event_attr_fprintf.o
  26. perf-util-y += evswitch.o
  27. perf-util-y += find_bit.o
  28. perf-util-y += levenshtein.o
  29. perf-util-$(CONFIG_LIBBFD) += libbfd.o
  30. perf-util-y += llvm.o
  31. perf-util-y += mmap.o
  32. perf-util-y += memswap.o
  33. perf-util-y += parse-events.o
  34. perf-util-y += print-events.o
  35. perf-util-y += tracepoint.o
  36. perf-util-y += perf_regs.o
  37. perf-util-y += perf-regs-arch/
  38. perf-util-y += path.o
  39. perf-util-y += print_binary.o
  40. perf-util-y += print_insn.o
  41. perf-util-y += rlimit.o
  42. perf-util-y += argv_split.o
  43. perf-util-y += rbtree.o
  44. perf-util-y += libstring.o
  45. perf-util-y += bitmap.o
  46. perf-util-y += hweight.o
  47. perf-util-y += smt.o
  48. perf-util-y += strbuf.o
  49. perf-util-y += string.o
  50. perf-util-y += strlist.o
  51. perf-util-y += strfilter.o
  52. perf-util-y += top.o
  53. perf-util-y += usage.o
  54. perf-util-y += dso.o
  55. perf-util-y += dsos.o
  56. perf-util-y += symbol.o
  57. perf-util-y += symbol_fprintf.o
  58. perf-util-y += map_symbol.o
  59. perf-util-y += color.o
  60. perf-util-y += color_config.o
  61. perf-util-y += metricgroup.o
  62. perf-util-y += header.o
  63. perf-util-y += callchain.o
  64. perf-util-y += values.o
  65. perf-util-y += debug.o
  66. perf-util-y += fncache.o
  67. perf-util-y += machine.o
  68. perf-util-y += map.o
  69. perf-util-y += maps.o
  70. perf-util-y += pstack.o
  71. perf-util-y += session.o
  72. perf-util-y += tool.o
  73. perf-util-y += sample.o
  74. perf-util-y += sample-raw.o
  75. perf-util-y += s390-sample-raw.o
  76. perf-util-y += amd-sample-raw.o
  77. perf-util-$(CONFIG_TRACE) += syscalltbl.o
  78. perf-util-y += ordered-events.o
  79. perf-util-y += namespaces.o
  80. perf-util-y += comm.o
  81. perf-util-y += thread.o
  82. perf-util-y += threads.o
  83. perf-util-y += thread_map.o
  84. perf-util-y += parse-events-flex.o
  85. perf-util-y += parse-events-bison.o
  86. perf-util-y += pmu.o
  87. perf-util-y += pmus.o
  88. perf-util-y += pmu-flex.o
  89. perf-util-y += pmu-bison.o
  90. perf-util-y += drm_pmu.o
  91. perf-util-y += hwmon_pmu.o
  92. perf-util-y += tool_pmu.o
  93. perf-util-y += tp_pmu.o
  94. perf-util-y += svghelper.o
  95. perf-util-y += trace-event-info.o
  96. perf-util-y += trace-event-scripting.o
  97. perf-util-$(CONFIG_LIBTRACEEVENT) += trace-event.o
  98. perf-util-$(CONFIG_LIBTRACEEVENT) += trace-event-parse.o
  99. perf-util-$(CONFIG_LIBTRACEEVENT) += trace-event-read.o
  100. perf-util-y += sort.o
  101. perf-util-y += hist.o
  102. perf-util-y += util.o
  103. perf-util-y += cpumap.o
  104. perf-util-y += affinity.o
  105. perf-util-y += cputopo.o
  106. perf-util-y += cgroup.o
  107. perf-util-y += target.o
  108. perf-util-y += rblist.o
  109. perf-util-y += intlist.o
  110. perf-util-y += vdso.o
  111. perf-util-y += counts.o
  112. perf-util-y += stat.o
  113. perf-util-y += stat-shadow.o
  114. perf-util-y += stat-display.o
  115. perf-util-y += perf_api_probe.o
  116. perf-util-y += record.o
  117. perf-util-y += srcline.o
  118. perf-util-y += srccode.o
  119. perf-util-y += synthetic-events.o
  120. perf-util-y += data.o
  121. perf-util-y += tsc.o
  122. perf-util-y += cloexec.o
  123. perf-util-y += call-path.o
  124. perf-util-y += rwsem.o
  125. perf-util-y += thread-stack.o
  126. perf-util-y += spark.o
  127. perf-util-y += topdown.o
  128. perf-util-y += iostat.o
  129. perf-util-y += stream.o
  130. perf-util-$(CONFIG_LIBTRACEEVENT) += kvm-stat.o
  131. perf-util-y += kvm-stat-arch/
  132. perf-util-y += lock-contention.o
  133. perf-util-y += auxtrace.o
  134. perf-util-y += intel-pt-decoder/
  135. perf-util-y += intel-pt.o
  136. perf-util-y += intel-bts.o
  137. perf-util-y += arm-spe.o
  138. perf-util-y += arm-spe-decoder/
  139. perf-util-y += hisi-ptt.o
  140. perf-util-y += hisi-ptt-decoder/
  141. perf-util-y += s390-cpumsf.o
  142. perf-util-y += powerpc-vpadtl.o
  143. ifdef CONFIG_LIBOPENCSD
  144. perf-util-y += cs-etm.o
  145. perf-util-y += cs-etm-decoder/
  146. endif
  147. perf-util-y += cs-etm-base.o
  148. perf-util-y += parse-branch-options.o
  149. perf-util-y += dump-insn.o
  150. perf-util-y += parse-regs-options.o
  151. perf-util-y += parse-sublevel-options.o
  152. perf-util-y += term.o
  153. perf-util-y += help-unknown-cmd.o
  154. perf-util-y += dlfilter.o
  155. perf-util-y += mem-events.o
  156. perf-util-y += mem-info.o
  157. perf-util-y += vsprintf.o
  158. perf-util-y += units.o
  159. perf-util-y += time-utils.o
  160. perf-util-y += expr-flex.o
  161. perf-util-y += expr-bison.o
  162. perf-util-y += expr.o
  163. perf-util-y += branch.o
  164. perf-util-y += mem2node.o
  165. perf-util-y += clockid.o
  166. perf-util-y += list_sort.o
  167. perf-util-y += mutex.o
  168. perf-util-y += sharded_mutex.o
  169. perf-util-y += intel-tpebs.o
  170. perf-util-$(CONFIG_LIBBPF) += bpf_map.o
  171. perf-util-$(CONFIG_PERF_BPF_SKEL) += bpf_counter.o
  172. perf-util-$(CONFIG_PERF_BPF_SKEL) += bpf_counter_cgroup.o
  173. perf-util-$(CONFIG_PERF_BPF_SKEL) += bpf_ftrace.o
  174. perf-util-$(CONFIG_PERF_BPF_SKEL) += bpf_off_cpu.o
  175. perf-util-$(CONFIG_PERF_BPF_SKEL) += bpf-filter.o
  176. perf-util-$(CONFIG_PERF_BPF_SKEL) += bpf-filter-flex.o
  177. perf-util-$(CONFIG_PERF_BPF_SKEL) += bpf-filter-bison.o
  178. perf-util-$(CONFIG_PERF_BPF_SKEL) += btf.o
  179. ifeq ($(CONFIG_TRACE),y)
  180. perf-util-$(CONFIG_PERF_BPF_SKEL) += bpf-trace-summary.o
  181. perf-util-$(CONFIG_PERF_BPF_SKEL) += bpf_trace_augment.o
  182. endif
  183. ifeq ($(CONFIG_LIBTRACEEVENT),y)
  184. perf-util-$(CONFIG_PERF_BPF_SKEL) += bpf_lock_contention.o
  185. endif
  186. ifeq ($(CONFIG_LIBTRACEEVENT),y)
  187. perf-util-$(CONFIG_PERF_BPF_SKEL) += bpf_kwork.o
  188. perf-util-$(CONFIG_PERF_BPF_SKEL) += bpf_kwork_top.o
  189. endif
  190. perf-util-$(CONFIG_LIBELF) += symbol-elf.o
  191. perf-util-$(CONFIG_LIBELF) += probe-file.o
  192. perf-util-$(CONFIG_LIBELF) += probe-event.o
  193. ifdef CONFIG_LIBBPF_DYNAMIC
  194. hashmap := 1
  195. endif
  196. ifndef CONFIG_LIBBPF
  197. hashmap := 1
  198. endif
  199. ifdef hashmap
  200. perf-util-y += hashmap.o
  201. endif
  202. ifndef CONFIG_LIBELF
  203. perf-util-y += symbol-minimal.o
  204. endif
  205. ifndef CONFIG_SETNS
  206. perf-util-y += setns.o
  207. endif
  208. perf-util-$(CONFIG_LIBDW) += probe-finder.o
  209. perf-util-$(CONFIG_LIBDW) += dwarf-aux.o
  210. perf-util-$(CONFIG_LIBDW) += dwarf-regs.o
  211. perf-util-$(CONFIG_LIBDW) += dwarf-regs-arch/
  212. perf-util-$(CONFIG_LIBDW) += debuginfo.o
  213. perf-util-$(CONFIG_LIBDW) += annotate-data.o
  214. perf-util-$(CONFIG_LIBDW) += libdw.o
  215. perf-util-$(CONFIG_LIBDW) += unwind-libdw.o
  216. perf-util-$(CONFIG_LOCAL_LIBUNWIND) += unwind-libunwind-local.o
  217. perf-util-$(CONFIG_LIBUNWIND) += unwind-libunwind.o
  218. perf-util-$(CONFIG_LIBUNWIND_X86) += libunwind/x86_32.o
  219. perf-util-$(CONFIG_LIBUNWIND_AARCH64) += libunwind/arm64.o
  220. ifeq ($(CONFIG_LIBTRACEEVENT),y)
  221. perf-util-$(CONFIG_LIBBABELTRACE) += data-convert-bt.o
  222. endif
  223. perf-util-y += data-convert-json.o
  224. perf-util-y += scripting-engines/
  225. perf-util-$(CONFIG_ZLIB) += zlib.o
  226. perf-util-$(CONFIG_LZMA) += lzma.o
  227. perf-util-$(CONFIG_ZSTD) += zstd.o
  228. perf-util-y += cap.o
  229. perf-util-$(CONFIG_CXX_DEMANGLE) += demangle-cxx.o
  230. perf-util-y += demangle-ocaml.o
  231. perf-util-y += demangle-java.o
  232. perf-util-y += demangle-rust-v0.o
  233. perf-util-$(CONFIG_LIBLLVM) += llvm-c-helpers.o
  234. CFLAGS_demangle-rust-v0.o += -Wno-shadow -Wno-declaration-after-statement \
  235. -Wno-switch-default -Wno-switch-enum -Wno-missing-field-initializers
  236. ifdef CONFIG_JITDUMP
  237. perf-util-$(CONFIG_LIBELF) += jitdump.o
  238. perf-util-$(CONFIG_LIBELF) += genelf.o
  239. perf-util-$(CONFIG_LIBDW) += genelf_debug.o
  240. endif
  241. perf-util-y += perf-hooks.o
  242. perf-util-$(CONFIG_LIBBPF) += bpf-event.o
  243. perf-util-$(CONFIG_LIBBPF) += bpf-utils.o
  244. perf-util-$(CONFIG_LIBPFM4) += pfm.o
  245. CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
  246. # avoid compiler warnings in 32-bit mode
  247. CFLAGS_genelf_debug.o += -Wno-packed
  248. $(OUTPUT)util/parse-events-flex.c $(OUTPUT)util/parse-events-flex.h: util/parse-events.l $(OUTPUT)util/parse-events-bison.c
  249. $(call rule_mkdir)
  250. $(Q)$(call echo-cmd,flex)$(FLEX) -o $(OUTPUT)util/parse-events-flex.c \
  251. --header-file=$(OUTPUT)util/parse-events-flex.h $(PARSER_DEBUG_FLEX) $<
  252. $(OUTPUT)util/parse-events-bison.c $(OUTPUT)util/parse-events-bison.h: util/parse-events.y
  253. $(call rule_mkdir)
  254. $(Q)$(call echo-cmd,bison)$(BISON) -v $< -d $(PARSER_DEBUG_BISON) $(BISON_FILE_PREFIX_MAP) $(BISON_FALLBACK_FLAGS) \
  255. -o $(OUTPUT)util/parse-events-bison.c -p parse_events_
  256. $(OUTPUT)util/expr-flex.c $(OUTPUT)util/expr-flex.h: util/expr.l $(OUTPUT)util/expr-bison.c
  257. $(call rule_mkdir)
  258. $(Q)$(call echo-cmd,flex)$(FLEX) -o $(OUTPUT)util/expr-flex.c \
  259. --header-file=$(OUTPUT)util/expr-flex.h $(PARSER_DEBUG_FLEX) $<
  260. $(OUTPUT)util/expr-bison.c $(OUTPUT)util/expr-bison.h: util/expr.y
  261. $(call rule_mkdir)
  262. $(Q)$(call echo-cmd,bison)$(BISON) -v $< -d $(PARSER_DEBUG_BISON) $(BISON_FILE_PREFIX_MAP) \
  263. -o $(OUTPUT)util/expr-bison.c -p expr_
  264. $(OUTPUT)util/pmu-flex.c $(OUTPUT)util/pmu-flex.h: util/pmu.l $(OUTPUT)util/pmu-bison.c
  265. $(call rule_mkdir)
  266. $(Q)$(call echo-cmd,flex)$(FLEX) -o $(OUTPUT)util/pmu-flex.c \
  267. --header-file=$(OUTPUT)util/pmu-flex.h $(PARSER_DEBUG_FLEX) $<
  268. $(OUTPUT)util/pmu-bison.c $(OUTPUT)util/pmu-bison.h: util/pmu.y
  269. $(call rule_mkdir)
  270. $(Q)$(call echo-cmd,bison)$(BISON) -v $< -d $(PARSER_DEBUG_BISON) $(BISON_FILE_PREFIX_MAP) \
  271. -o $(OUTPUT)util/pmu-bison.c -p perf_pmu_
  272. $(OUTPUT)util/bpf-filter-flex.c $(OUTPUT)util/bpf-filter-flex.h: util/bpf-filter.l $(OUTPUT)util/bpf-filter-bison.c util/bpf-filter.h util/bpf_skel/sample-filter.h
  273. $(call rule_mkdir)
  274. $(Q)$(call echo-cmd,flex)$(FLEX) -o $(OUTPUT)util/bpf-filter-flex.c \
  275. --header-file=$(OUTPUT)util/bpf-filter-flex.h $(PARSER_DEBUG_FLEX) $<
  276. $(OUTPUT)util/bpf-filter-bison.c $(OUTPUT)util/bpf-filter-bison.h: util/bpf-filter.y util/bpf-filter.h util/bpf_skel/sample-filter.h
  277. $(call rule_mkdir)
  278. $(Q)$(call echo-cmd,bison)$(BISON) -v $< -d $(PARSER_DEBUG_BISON) $(BISON_FILE_PREFIX_MAP) \
  279. -o $(OUTPUT)util/bpf-filter-bison.c -p perf_bpf_filter_
  280. FLEX_VERSION := $(shell $(FLEX) --version | cut -d' ' -f2)
  281. FLEX_GE_260 := $(call version-ge3,$(FLEX_VERSION),2.6.0)
  282. ifeq ($(FLEX_GE_260),1)
  283. flex_flags := -Wno-redundant-decls -Wno-switch-default -Wno-unused-function -Wno-misleading-indentation
  284. # Some newer clang and gcc version complain about this
  285. # util/parse-events-bison.c:1317:9: error: variable 'parse_events_nerrs' set but not used [-Werror,-Wunused-but-set-variable]
  286. # int yynerrs = 0;
  287. flex_flags += -Wno-unused-but-set-variable
  288. FLEX_LT_262 := $(call version-lt3,$(FLEX_VERSION),2.6.2)
  289. ifeq ($(FLEX_LT_262),1)
  290. flex_flags += -Wno-sign-compare
  291. endif
  292. else
  293. flex_flags := -w
  294. endif
  295. # Some newer clang and gcc version complain about this
  296. # util/parse-events-bison.c:1317:9: error: variable 'parse_events_nerrs' set but not used [-Werror,-Wunused-but-set-variable]
  297. # int yynerrs = 0;
  298. bison_flags := -DYYENABLE_NLS=0 -Wno-unused-but-set-variable
  299. # Old clangs don't grok -Wno-unused-but-set-variable, remove it
  300. ifeq ($(CC_NO_CLANG), 0)
  301. CLANG_VERSION := $(shell $(CLANG) --version | head -1 | sed 's/.*clang version \([[:digit:]]\+.[[:digit:]]\+.[[:digit:]]\+\).*/\1/g')
  302. ifeq ($(call version-lt3,$(CLANG_VERSION),13.0.0),1)
  303. bison_flags := $(subst -Wno-unused-but-set-variable,,$(bison_flags))
  304. flex_flags := $(subst -Wno-unused-but-set-variable,,$(flex_flags))
  305. endif
  306. endif
  307. BISON_GE_382 := $(shell expr $(shell $(BISON) --version | grep bison | sed -e 's/.\+ \([0-9]\+\).\([0-9]\+\).\([0-9]\+\)/\1\2\3/g') \>\= 382)
  308. ifeq ($(BISON_GE_382),1)
  309. bison_flags += -Wno-switch-enum
  310. else
  311. bison_flags += -w
  312. endif
  313. BISON_LT_381 := $(shell expr $(shell $(BISON) --version | grep bison | sed -e 's/.\+ \([0-9]\+\).\([0-9]\+\).\([0-9]\+\)/\1\2\3/g') \< 381)
  314. ifeq ($(BISON_LT_381),1)
  315. bison_flags += -DYYNOMEM=YYABORT
  316. endif
  317. CFLAGS_parse-events-flex.o += $(flex_flags) -Wno-unused-label
  318. CFLAGS_pmu-flex.o += $(flex_flags)
  319. CFLAGS_expr-flex.o += $(flex_flags)
  320. CFLAGS_bpf-filter-flex.o += $(flex_flags)
  321. CFLAGS_parse-events-bison.o += $(bison_flags)
  322. CFLAGS_pmu-bison.o += -DYYLTYPE_IS_TRIVIAL=0 $(bison_flags)
  323. CFLAGS_expr-bison.o += -DYYLTYPE_IS_TRIVIAL=0 $(bison_flags)
  324. CFLAGS_bpf-filter-bison.o += -DYYLTYPE_IS_TRIVIAL=0 $(bison_flags)
  325. $(OUTPUT)util/parse-events.o: $(OUTPUT)util/parse-events-flex.c $(OUTPUT)util/parse-events-bison.c
  326. $(OUTPUT)util/pmu.o: $(OUTPUT)util/pmu-flex.c $(OUTPUT)util/pmu-bison.c
  327. $(OUTPUT)util/expr.o: $(OUTPUT)util/expr-flex.c $(OUTPUT)util/expr-bison.c
  328. $(OUTPUT)util/bpf-filter.o: $(OUTPUT)util/bpf-filter-flex.c $(OUTPUT)util/bpf-filter-bison.c
  329. CFLAGS_bitmap.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
  330. CFLAGS_find_bit.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
  331. CFLAGS_rbtree.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
  332. CFLAGS_libstring.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
  333. CFLAGS_hweight.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
  334. CFLAGS_header.o += -include $(OUTPUT)PERF-VERSION-FILE
  335. CFLAGS_arm-spe.o += -I$(srctree)/tools/arch/arm64/include/ -I$(OUTPUT)arch/arm64/include/generated/
  336. $(OUTPUT)util/argv_split.o: ../lib/argv_split.c FORCE
  337. $(call rule_mkdir)
  338. $(call if_changed_dep,cc_o_c)
  339. $(OUTPUT)util/bitmap.o: ../lib/bitmap.c FORCE
  340. $(call rule_mkdir)
  341. $(call if_changed_dep,cc_o_c)
  342. $(OUTPUT)util/ctype.o: ../lib/ctype.c FORCE
  343. $(call rule_mkdir)
  344. $(call if_changed_dep,cc_o_c)
  345. $(OUTPUT)util/find_bit.o: ../lib/find_bit.c FORCE
  346. $(call rule_mkdir)
  347. $(call if_changed_dep,cc_o_c)
  348. $(OUTPUT)util/rbtree.o: ../lib/rbtree.c FORCE
  349. $(call rule_mkdir)
  350. $(call if_changed_dep,cc_o_c)
  351. $(OUTPUT)util/libstring.o: ../lib/string.c FORCE
  352. $(call rule_mkdir)
  353. $(call if_changed_dep,cc_o_c)
  354. $(OUTPUT)util/hweight.o: ../lib/hweight.c FORCE
  355. $(call rule_mkdir)
  356. $(call if_changed_dep,cc_o_c)
  357. $(OUTPUT)util/vsprintf.o: ../lib/vsprintf.c FORCE
  358. $(call rule_mkdir)
  359. $(call if_changed_dep,cc_o_c)
  360. $(OUTPUT)util/list_sort.o: ../lib/list_sort.c FORCE
  361. $(call rule_mkdir)
  362. $(call if_changed_dep,cc_o_c)
  363. PY_TESTS := setup.py
  364. ifdef MYPY
  365. MYPY_TEST_LOGS := $(PY_TESTS:%=%.mypy_log)
  366. else
  367. MYPY_TEST_LOGS :=
  368. endif
  369. $(OUTPUT)%.mypy_log: %
  370. $(call rule_mkdir)
  371. $(Q)$(call echo-cmd,test)mypy "$<" > $@ || (cat $@ && rm $@ && false)
  372. perf-util-y += $(MYPY_TEST_LOGS)
  373. ifdef PYLINT
  374. PYLINT_TEST_LOGS := $(PY_TESTS:%=%.pylint_log)
  375. else
  376. PYLINT_TEST_LOGS :=
  377. endif
  378. $(OUTPUT)%.pylint_log: %
  379. $(call rule_mkdir)
  380. $(Q)$(call echo-cmd,test)pylint "$<" > $@ || (cat $@ && rm $@ && false)
  381. perf-util-y += $(PYLINT_TEST_LOGS)