perf build: Set parallel making options build-test
authorWang Nan <wangnan0@huawei.com>
Wed, 13 Jan 2016 12:17:14 +0000 (12:17 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 15 Jan 2016 19:31:59 +0000 (16:31 -0300)
commit7be43dfb1e617b87bf2d936d82c026be39b43910
treeca3595a50c024aa1f26dfa5892867e8a1fbf8199
parent40c4a0f92aed570cc529a1e5c24c7e04a0ce8b85
perf build: Set parallel making options build-test

'make build-test' is painful because of time consuming. In a full test,
all test cases are built twice with tools/perf/Makefile and
tools/perf/Makefile.perf. 'Makefile' automatically computes parallel
options for make, but 'Makefile.perf' not, so all test cases is built
with one job. It is very slow.

This patch adds '-j' options to Makefile.perf testing. It computes
parallel building options like what tools/perf/Makefile does, and pass
'-j' option to Makefile.perf test.

Signed-off-by: Wang Nan <wangnan0@huawei.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Zefan Li <lizefan@huawei.com>
Cc: pi3orama@163.com
Link: http://lkml.kernel.org/r/1452687442-6186-2-git-send-email-wangnan0@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/make