Skip to content

Commit

Permalink
perf tools: Add .DELETE_ON_ERROR special Makefile target to clean up …
Browse files Browse the repository at this point in the history
…partially updated files on error.

As kbuild, this adds .DELETE_ON_ERROR special target to clean up
partially updated files on error. A known issue is the empty vmlinux.h
generted by bpftool if it failed to dump btf info.

Reviewed-by: Leo Yan <leo.yan@linaro.org>
Signed-off-by: Changbin Du <changbin.du@gmail.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andrii Nakryiko <andrii.nakryiko@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20221217225151.90387-1-changbin.du@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
  • Loading branch information
Changbin Du authored and Arnaldo Carvalho de Melo committed Dec 21, 2022
1 parent cb459c8 commit 0c0a0db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/perf/Makefile.perf
Original file line number Diff line number Diff line change
Expand Up @@ -1151,3 +1151,6 @@ FORCE:
.PHONY: archheaders

endif # force_fixdep

# Delete partially updated (corrupted) files on error
.DELETE_ON_ERROR:

0 comments on commit 0c0a0db

Please sign in to comment.