linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] perf tools: Make the x86 clean quiet
@ 2016-04-25 20:17 Jiri Olsa
  2016-04-25 20:17 ` [PATCH 2/2] tools build: Fix perf_clean target Jiri Olsa
  2016-04-27 15:31 ` [tip:perf/core] perf tools: Make the x86 clean quiet tip-bot for Jiri Olsa
  0 siblings, 2 replies; 5+ messages in thread
From: Jiri Olsa @ 2016-04-25 20:17 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo
  Cc: lkml, David Ahern, Ingo Molnar, Namhyung Kim, Peter Zijlstra, TJ

Turn current clean output:
  $ make clean
  rm -f arch/x86/include/generated/asm/syscalls_64.c
    CLEAN    libbpf
    CLEAN    libapi

into:
  $ make clean
    CLEAN    x86
    CLEAN    libapi
    CLEAN    libbpf

Link: http://lkml.kernel.org/n/tip-npsrwklwcorjbkzkv5w00uhk@git.kernel.org
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
---
 tools/perf/arch/x86/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/perf/arch/x86/Makefile b/tools/perf/arch/x86/Makefile
index a33729173b13..6c9211b18ec0 100644
--- a/tools/perf/arch/x86/Makefile
+++ b/tools/perf/arch/x86/Makefile
@@ -24,6 +24,6 @@ $(header): $(sys)/syscall_64.tbl $(systbl)
 	$(Q)$(SHELL) '$(systbl)' $(sys)/syscall_64.tbl 'x86_64' > $@
 
 clean::
-	rm -f $(header)
+	$(call QUIET_CLEAN, x86) $(RM) $(header)
 
 archheaders: $(header)
-- 
2.4.11

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

* [PATCH 2/2] tools build: Fix perf_clean target
  2016-04-25 20:17 [PATCH 1/2] perf tools: Make the x86 clean quiet Jiri Olsa
@ 2016-04-25 20:17 ` Jiri Olsa
  2016-04-25 20:22   ` Arnaldo Carvalho de Melo
  2016-04-27 15:32   ` [tip:perf/core] " tip-bot for Jiri Olsa
  2016-04-27 15:31 ` [tip:perf/core] perf tools: Make the x86 clean quiet tip-bot for Jiri Olsa
  1 sibling, 2 replies; 5+ messages in thread
From: Jiri Olsa @ 2016-04-25 20:17 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo
  Cc: lkml, David Ahern, Ingo Molnar, Namhyung Kim, Peter Zijlstra, TJ

Fixig perf_clean target to follow the same logic as
perf target, it fixes following make invokation:

  $ cd <kernelsrc> && make tools/perf_clean

Reported-by: TJ <linux@iam.tj>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=116411
Link: http://lkml.kernel.org/n/tip-79ja8qxlyrqkfx5h0ndnffl0@git.kernel.org
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
---
 tools/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/Makefile b/tools/Makefile
index 60c7e6c8ff17..6bf68fe7dd29 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -137,7 +137,8 @@ libsubcmd_clean:
 	$(call descend,lib/subcmd,clean)
 
 perf_clean:
-	$(call descend,$(@:_clean=),clean)
+	$(Q)mkdir -p $(PERF_O) .
+	$(Q)$(MAKE) --no-print-directory -C perf O=$(PERF_O) subdir= clean
 
 selftests_clean:
 	$(call descend,testing/$(@:_clean=),clean)
-- 
2.4.11

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

* Re: [PATCH 2/2] tools build: Fix perf_clean target
  2016-04-25 20:17 ` [PATCH 2/2] tools build: Fix perf_clean target Jiri Olsa
@ 2016-04-25 20:22   ` Arnaldo Carvalho de Melo
  2016-04-27 15:32   ` [tip:perf/core] " tip-bot for Jiri Olsa
  1 sibling, 0 replies; 5+ messages in thread
From: Arnaldo Carvalho de Melo @ 2016-04-25 20:22 UTC (permalink / raw)
  To: TJ
  Cc: Jiri Olsa, lkml, David Ahern, Ingo Molnar, Namhyung Kim,
	Peter Zijlstra, TJ

Em Mon, Apr 25, 2016 at 10:17:18PM +0200, Jiri Olsa escreveu:
> Fixig perf_clean target to follow the same logic as
> perf target, it fixes following make invokation:
> 
>   $ cd <kernelsrc> && make tools/perf_clean


TJ, have you had the chance to test this? If so, can I have your
Tested-by: ack?

- Arnaldo
 
> Reported-by: TJ <linux@iam.tj>
> Link: https://bugzilla.kernel.org/show_bug.cgi?id=116411
> Link: http://lkml.kernel.org/n/tip-79ja8qxlyrqkfx5h0ndnffl0@git.kernel.org
> Signed-off-by: Jiri Olsa <jolsa@kernel.org>
> ---
>  tools/Makefile | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/tools/Makefile b/tools/Makefile
> index 60c7e6c8ff17..6bf68fe7dd29 100644
> --- a/tools/Makefile
> +++ b/tools/Makefile
> @@ -137,7 +137,8 @@ libsubcmd_clean:
>  	$(call descend,lib/subcmd,clean)
>  
>  perf_clean:
> -	$(call descend,$(@:_clean=),clean)
> +	$(Q)mkdir -p $(PERF_O) .
> +	$(Q)$(MAKE) --no-print-directory -C perf O=$(PERF_O) subdir= clean
>  
>  selftests_clean:
>  	$(call descend,testing/$(@:_clean=),clean)
> -- 
> 2.4.11

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

* [tip:perf/core] perf tools: Make the x86 clean quiet
  2016-04-25 20:17 [PATCH 1/2] perf tools: Make the x86 clean quiet Jiri Olsa
  2016-04-25 20:17 ` [PATCH 2/2] tools build: Fix perf_clean target Jiri Olsa
@ 2016-04-27 15:31 ` tip-bot for Jiri Olsa
  1 sibling, 0 replies; 5+ messages in thread
From: tip-bot for Jiri Olsa @ 2016-04-27 15:31 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: a.p.zijlstra, linux-kernel, linux, acme, mingo, dsahern, hpa,
	tglx, jolsa, namhyung

Commit-ID:  6404436a63a463d03ef9b5d7cd5edd371e711a95
Gitweb:     http://git.kernel.org/tip/6404436a63a463d03ef9b5d7cd5edd371e711a95
Author:     Jiri Olsa <jolsa@kernel.org>
AuthorDate: Mon, 25 Apr 2016 22:17:17 +0200
Committer:  Arnaldo Carvalho de Melo <acme@redhat.com>
CommitDate: Mon, 25 Apr 2016 17:56:15 -0300

perf tools: Make the x86 clean quiet

Turn current clean output:

  $ make clean
  rm -f arch/x86/include/generated/asm/syscalls_64.c
    CLEAN    libbpf
    CLEAN    libapi

into:

  $ make clean
    CLEAN    x86
    CLEAN    libapi
    CLEAN    libbpf

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: TJ <linux@iam.tj>
Link: http://lkml.kernel.org/r/1461615438-27894-1-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
 tools/perf/arch/x86/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/perf/arch/x86/Makefile b/tools/perf/arch/x86/Makefile
index a337291..6c9211b 100644
--- a/tools/perf/arch/x86/Makefile
+++ b/tools/perf/arch/x86/Makefile
@@ -24,6 +24,6 @@ $(header): $(sys)/syscall_64.tbl $(systbl)
 	$(Q)$(SHELL) '$(systbl)' $(sys)/syscall_64.tbl 'x86_64' > $@
 
 clean::
-	rm -f $(header)
+	$(call QUIET_CLEAN, x86) $(RM) $(header)
 
 archheaders: $(header)

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

* [tip:perf/core] tools build: Fix perf_clean target
  2016-04-25 20:17 ` [PATCH 2/2] tools build: Fix perf_clean target Jiri Olsa
  2016-04-25 20:22   ` Arnaldo Carvalho de Melo
@ 2016-04-27 15:32   ` tip-bot for Jiri Olsa
  1 sibling, 0 replies; 5+ messages in thread
From: tip-bot for Jiri Olsa @ 2016-04-27 15:32 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: mingo, a.p.zijlstra, tglx, namhyung, jolsa, acme, linux-kernel,
	dsahern, linux, hpa

Commit-ID:  ab362f5a95ff72a895c446e9d5ef548cac2fea07
Gitweb:     http://git.kernel.org/tip/ab362f5a95ff72a895c446e9d5ef548cac2fea07
Author:     Jiri Olsa <jolsa@kernel.org>
AuthorDate: Mon, 25 Apr 2016 22:17:18 +0200
Committer:  Arnaldo Carvalho de Melo <acme@redhat.com>
CommitDate: Mon, 25 Apr 2016 17:59:36 -0300

tools build: Fix perf_clean target

Fix perf_clean target to follow the same logic as perf target.

Fixes the following make invokation:

  $ cd <kernelsrc> && make tools/perf_clean

Reported-by: TJ <linux@iam.tj>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=116411
Link: http://lkml.kernel.org/r/1461615438-27894-2-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
 tools/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/Makefile b/tools/Makefile
index 60c7e6c..6bf68fe 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -137,7 +137,8 @@ libsubcmd_clean:
 	$(call descend,lib/subcmd,clean)
 
 perf_clean:
-	$(call descend,$(@:_clean=),clean)
+	$(Q)mkdir -p $(PERF_O) .
+	$(Q)$(MAKE) --no-print-directory -C perf O=$(PERF_O) subdir= clean
 
 selftests_clean:
 	$(call descend,testing/$(@:_clean=),clean)

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

end of thread, other threads:[~2016-04-27 15:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-25 20:17 [PATCH 1/2] perf tools: Make the x86 clean quiet Jiri Olsa
2016-04-25 20:17 ` [PATCH 2/2] tools build: Fix perf_clean target Jiri Olsa
2016-04-25 20:22   ` Arnaldo Carvalho de Melo
2016-04-27 15:32   ` [tip:perf/core] " tip-bot for Jiri Olsa
2016-04-27 15:31 ` [tip:perf/core] perf tools: Make the x86 clean quiet tip-bot for Jiri Olsa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).