* [PATCH] perf: Skip running the feature tests for 'make install-doc'
@ 2016-08-10 8:49 Rui Teng
2016-08-15 16:39 ` Arnaldo Carvalho de Melo
2016-08-24 9:24 ` [tip:perf/core] perf tools: " tip-bot for Rui Teng
0 siblings, 2 replies; 3+ messages in thread
From: Rui Teng @ 2016-08-10 8:49 UTC (permalink / raw)
To: linux-kernel; +Cc: peterz, mingo, acme, alexander.shishkin, Rui Teng
It is a requirement from the perf todo list:
The feature tests should be performed only when a file that needs those tests,
or at least only when some .c or .h file will be rebuilt
An initial step would be for 'make install-doc' not to run the feature tests,
there it is not needed at all.
By adding 'install-doc' to the NON_CONFIG_TARGETS, it will skip running the
feature tests for such target. The Auto-detecting system features list will
not be displayed:
$ make install-doc
BUILD: Doing 'make -j2' parallel build
SUBDIR Documentation
make[2]: Nothing to be done for 'install'.
Signed-off-by: Rui Teng <rui.teng@linux.vnet.ibm.com>
---
tools/perf/Makefile.perf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf
index 2d90875..9c1dac6 100644
--- a/tools/perf/Makefile.perf
+++ b/tools/perf/Makefile.perf
@@ -165,7 +165,7 @@ SUBCMD_DIR = $(srctree)/tools/lib/subcmd/
# non-config cases
config := 1
-NON_CONFIG_TARGETS := clean TAGS tags cscope help
+NON_CONFIG_TARGETS := clean TAGS tags cscope help install-doc
ifdef MAKECMDGOALS
ifeq ($(filter-out $(NON_CONFIG_TARGETS),$(MAKECMDGOALS)),)
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] perf: Skip running the feature tests for 'make install-doc'
2016-08-10 8:49 [PATCH] perf: Skip running the feature tests for 'make install-doc' Rui Teng
@ 2016-08-15 16:39 ` Arnaldo Carvalho de Melo
2016-08-24 9:24 ` [tip:perf/core] perf tools: " tip-bot for Rui Teng
1 sibling, 0 replies; 3+ messages in thread
From: Arnaldo Carvalho de Melo @ 2016-08-15 16:39 UTC (permalink / raw)
To: Rui Teng; +Cc: linux-kernel, peterz, mingo, alexander.shishkin
Em Wed, Aug 10, 2016 at 04:49:08PM +0800, Rui Teng escreveu:
> It is a requirement from the perf todo list:
> The feature tests should be performed only when a file that needs those tests,
> or at least only when some .c or .h file will be rebuilt
> An initial step would be for 'make install-doc' not to run the feature tests,
> there it is not needed at all.
Thanks for working on that! As soon as I push this out to Ingo I'll move
that entry from the TODO to a DONE section, adding the URL to the cset
where it was done.
Now pick another one! :-)
- Arnaldo
> By adding 'install-doc' to the NON_CONFIG_TARGETS, it will skip running the
> feature tests for such target. The Auto-detecting system features list will
> not be displayed:
>
> $ make install-doc
> BUILD: Doing 'make -j2' parallel build
> SUBDIR Documentation
> make[2]: Nothing to be done for 'install'.
>
> Signed-off-by: Rui Teng <rui.teng@linux.vnet.ibm.com>
> ---
> tools/perf/Makefile.perf | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf
> index 2d90875..9c1dac6 100644
> --- a/tools/perf/Makefile.perf
> +++ b/tools/perf/Makefile.perf
> @@ -165,7 +165,7 @@ SUBCMD_DIR = $(srctree)/tools/lib/subcmd/
> # non-config cases
> config := 1
>
> -NON_CONFIG_TARGETS := clean TAGS tags cscope help
> +NON_CONFIG_TARGETS := clean TAGS tags cscope help install-doc
>
> ifdef MAKECMDGOALS
> ifeq ($(filter-out $(NON_CONFIG_TARGETS),$(MAKECMDGOALS)),)
> --
> 2.7.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* [tip:perf/core] perf tools: Skip running the feature tests for 'make install-doc'
2016-08-10 8:49 [PATCH] perf: Skip running the feature tests for 'make install-doc' Rui Teng
2016-08-15 16:39 ` Arnaldo Carvalho de Melo
@ 2016-08-24 9:24 ` tip-bot for Rui Teng
1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Rui Teng @ 2016-08-24 9:24 UTC (permalink / raw)
To: linux-tip-commits
Cc: rui.teng, alexander.shishkin, acme, mingo, tglx, peterz,
linux-kernel, hpa
Commit-ID: 11196b79164c95b8e5968ff63fa6b59536c9748f
Gitweb: http://git.kernel.org/tip/11196b79164c95b8e5968ff63fa6b59536c9748f
Author: Rui Teng <rui.teng@linux.vnet.ibm.com>
AuthorDate: Wed, 10 Aug 2016 16:49:08 +0800
Committer: Arnaldo Carvalho de Melo <acme@redhat.com>
CommitDate: Tue, 23 Aug 2016 15:37:33 -0300
perf tools: Skip running the feature tests for 'make install-doc'
It is a requirement from the perf TODO list[1]:
''The feature tests should be performed only when a file that needs those
tests, or at least only when some .c or .h file will be rebuilt. An
initial step would be for 'make install-doc' not to run the feature
tests, there it is not needed at all.''
By adding 'install-doc' to the NON_CONFIG_TARGETS, it will skip running
the feature tests for such target. The Auto-detecting system features
list will not be displayed:
$ make install-doc
BUILD: Doing 'make -j2' parallel build
SUBDIR Documentation
make[2]: Nothing to be done for 'install'.
[1] https://perf.wiki.kernel.org/index.php/Todo
Signed-off-by: Rui Teng <rui.teng@linux.vnet.ibm.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1470818948-17784-1-git-send-email-rui.teng@linux.vnet.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
tools/perf/Makefile.perf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf
index aa7ab23..828cfd7 100644
--- a/tools/perf/Makefile.perf
+++ b/tools/perf/Makefile.perf
@@ -165,7 +165,7 @@ SUBCMD_DIR = $(srctree)/tools/lib/subcmd/
# non-config cases
config := 1
-NON_CONFIG_TARGETS := clean TAGS tags cscope help
+NON_CONFIG_TARGETS := clean TAGS tags cscope help install-doc
ifdef MAKECMDGOALS
ifeq ($(filter-out $(NON_CONFIG_TARGETS),$(MAKECMDGOALS)),)
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-08-24 9:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-10 8:49 [PATCH] perf: Skip running the feature tests for 'make install-doc' Rui Teng
2016-08-15 16:39 ` Arnaldo Carvalho de Melo
2016-08-24 9:24 ` [tip:perf/core] perf tools: " tip-bot for Rui Teng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox