diff options
author | Changbin Du <[email protected]> | 2022-12-18 06:51:51 +0800 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2022-12-21 14:52:39 -0300 |
commit | 0c0a0db87e1c159aa7a2a52bfbec0be604c65f86 (patch) | |
tree | e435ad1f2ee34a3eb7a795a789e420ff0bdeb7dc | |
parent | cb459c89b734f9fcfd201a6ef993c063a703ec73 (diff) |
perf tools: Add .DELETE_ON_ERROR special Makefile target to clean up 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 <[email protected]>
Signed-off-by: Changbin Du <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Andrii Nakryiko <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
-rw-r--r-- | tools/perf/Makefile.perf | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 9b7886ce0674..13e7d26e77f0 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf @@ -1151,3 +1151,6 @@ FORCE: .PHONY: archheaders endif # force_fixdep + +# Delete partially updated (corrupted) files on error +.DELETE_ON_ERROR: |