All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] perf: makefile: add .DELETE_ON_ERROR special target
@ 2022-12-17 22:51 Changbin Du
  2022-12-20  1:57 ` Leo Yan
  0 siblings, 1 reply; 3+ messages in thread
From: Changbin Du @ 2022-12-17 22:51 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo
  Cc: Mark Rutland, Alexander Shishkin, Jiri Olsa, Namhyung Kim,
	linux-perf-users, linux-kernel, Changbin Du, Andrii Nakryiko

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.

Signed-off-by: Changbin Du <changbin.du@gmail.com>
Cc: Andrii Nakryiko <andrii.nakryiko@gmail.com>
---
 tools/perf/Makefile.perf | 3 +++
 1 file changed, 3 insertions(+)

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:
-- 
2.37.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] perf: makefile: add .DELETE_ON_ERROR special target
  2022-12-17 22:51 [PATCH] perf: makefile: add .DELETE_ON_ERROR special target Changbin Du
@ 2022-12-20  1:57 ` Leo Yan
  2022-12-20 18:31   ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 3+ messages in thread
From: Leo Yan @ 2022-12-20  1:57 UTC (permalink / raw)
  To: Changbin Du
  Cc: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
	Mark Rutland, Alexander Shishkin, Jiri Olsa, Namhyung Kim,
	linux-perf-users, linux-kernel, Andrii Nakryiko

On Sun, Dec 18, 2022 at 06:51:51AM +0800, Changbin Du wrote:
> 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.
> 
> Signed-off-by: Changbin Du <changbin.du@gmail.com>
> Cc: Andrii Nakryiko <andrii.nakryiko@gmail.com>

Reviewed-by: Leo Yan <leo.yan@linaro.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] perf: makefile: add .DELETE_ON_ERROR special target
  2022-12-20  1:57 ` Leo Yan
@ 2022-12-20 18:31   ` Arnaldo Carvalho de Melo
  0 siblings, 0 replies; 3+ messages in thread
From: Arnaldo Carvalho de Melo @ 2022-12-20 18:31 UTC (permalink / raw)
  To: Leo Yan
  Cc: Changbin Du, Peter Zijlstra, Ingo Molnar, Mark Rutland,
	Alexander Shishkin, Jiri Olsa, Namhyung Kim, linux-perf-users,
	linux-kernel, Andrii Nakryiko

Em Tue, Dec 20, 2022 at 09:57:57AM +0800, Leo Yan escreveu:
> On Sun, Dec 18, 2022 at 06:51:51AM +0800, Changbin Du wrote:
> > 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.
> > 
> > Signed-off-by: Changbin Du <changbin.du@gmail.com>
> > Cc: Andrii Nakryiko <andrii.nakryiko@gmail.com>
> 
> Reviewed-by: Leo Yan <leo.yan@linaro.org>

Thanks, applied.

- Arnaldo


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-12-20 18:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-17 22:51 [PATCH] perf: makefile: add .DELETE_ON_ERROR special target Changbin Du
2022-12-20  1:57 ` Leo Yan
2022-12-20 18:31   ` Arnaldo Carvalho de Melo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.