Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

perf tools: Fix wrong message when running "make JOBS=1"

There is only one job when running "make JOBS=1", it should
print "sequential build" rather than "parallel build".

Before:

$ cd tools/perf && make JOBS=1
BUILD: Doing 'make -j1' parallel build

After:

$ cd tools/perf && make JOBS=1
BUILD: Doing 'make -j1' sequential build

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/lkml/20240730062301.23244-2-yangtiezhu@loongson.cn
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Tiezhu Yang and committed by
Arnaldo Carvalho de Melo
839b1832 d261f9eb

+7 -1
+7 -1
tools/perf/Makefile
··· 51 51 override DEBUG = 0 52 52 endif 53 53 54 + ifeq ($(JOBS),1) 55 + BUILD_TYPE := sequential 56 + else 57 + BUILD_TYPE := parallel 58 + endif 59 + 54 60 define print_msg 55 - @printf ' BUILD: Doing '\''make \033[33m-j'$(JOBS)'\033[m'\'' parallel build\n' 61 + @printf ' BUILD: Doing '\''make \033[33m-j'$(JOBS)'\033[m'\'' $(BUILD_TYPE) build\n' 56 62 endef 57 63 58 64 define make