* [PATCH] perf tool: Set JOBS based on CPU or processor
@ 2015-03-24 16:10 David Ahern
2015-03-25 11:27 ` Jiri Olsa
2015-03-27 7:40 ` [tip:perf/core] perf tools: " tip-bot for David Ahern
0 siblings, 2 replies; 3+ messages in thread
From: David Ahern @ 2015-03-24 16:10 UTC (permalink / raw)
To: acme; +Cc: linux-kernel, David Ahern, Ingo Molnar, Jiri Olsa, Namhyung Kim
Number of JOBS to use is set automatically to the number of processors found
in /proc/cpuinfo. SPARC uses 'CPU' lines rather than 'processor'. Update the
check in perf's Makefile to work for SPARC.
Signed-off-by: David Ahern <david.ahern@oracle.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
---
tools/perf/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index d5020aeb5626..c699dc35eef9 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -24,7 +24,7 @@ unexport MAKEFLAGS
# (To override it, run 'make JOBS=1' and similar.)
#
ifeq ($(JOBS),)
- JOBS := $(shell grep -c ^processor /proc/cpuinfo 2>/dev/null)
+ JOBS := $(shell egrep -c '^processor|^CPU' /proc/cpuinfo 2>/dev/null)
ifeq ($(JOBS),0)
JOBS := 1
endif
--
2.2.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] perf tool: Set JOBS based on CPU or processor
2015-03-24 16:10 [PATCH] perf tool: Set JOBS based on CPU or processor David Ahern
@ 2015-03-25 11:27 ` Jiri Olsa
2015-03-27 7:40 ` [tip:perf/core] perf tools: " tip-bot for David Ahern
1 sibling, 0 replies; 3+ messages in thread
From: Jiri Olsa @ 2015-03-25 11:27 UTC (permalink / raw)
To: David Ahern; +Cc: acme, linux-kernel, Ingo Molnar, Jiri Olsa, Namhyung Kim
On Tue, Mar 24, 2015 at 12:10:55PM -0400, David Ahern wrote:
> Number of JOBS to use is set automatically to the number of processors found
> in /proc/cpuinfo. SPARC uses 'CPU' lines rather than 'processor'. Update the
> check in perf's Makefile to work for SPARC.
>
> Signed-off-by: David Ahern <david.ahern@oracle.com>
> Cc: Ingo Molnar <mingo@kernel.org>
> Cc: Jiri Olsa <jolsa@kernel.org>
Acked-by: Jiri Olsa <jolsa@kernel.org>
jirka
^ permalink raw reply [flat|nested] 3+ messages in thread
* [tip:perf/core] perf tools: Set JOBS based on CPU or processor
2015-03-24 16:10 [PATCH] perf tool: Set JOBS based on CPU or processor David Ahern
2015-03-25 11:27 ` Jiri Olsa
@ 2015-03-27 7:40 ` tip-bot for David Ahern
1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for David Ahern @ 2015-03-27 7:40 UTC (permalink / raw)
To: linux-tip-commits
Cc: david.ahern, mingo, acme, linux-kernel, jolsa, hpa, tglx, namhyung
Commit-ID: 6428c59a97de7c3d88fc4e66317daea5e5008758
Gitweb: http://git.kernel.org/tip/6428c59a97de7c3d88fc4e66317daea5e5008758
Author: David Ahern <david.ahern@oracle.com>
AuthorDate: Tue, 24 Mar 2015 12:10:55 -0400
Committer: Arnaldo Carvalho de Melo <acme@redhat.com>
CommitDate: Thu, 26 Mar 2015 10:52:28 -0300
perf tools: Set JOBS based on CPU or processor
Number of JOBS to use is set automatically to the number of processors found
in /proc/cpuinfo. SPARC uses 'CPU' lines rather than 'processor'. Update the
check in perf's Makefile to work for SPARC.
Signed-off-by: David Ahern <david.ahern@oracle.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1427213455-127249-1-git-send-email-david.ahern@oracle.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
tools/perf/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index d5020ae..c699dc3 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -24,7 +24,7 @@ unexport MAKEFLAGS
# (To override it, run 'make JOBS=1' and similar.)
#
ifeq ($(JOBS),)
- JOBS := $(shell grep -c ^processor /proc/cpuinfo 2>/dev/null)
+ JOBS := $(shell egrep -c '^processor|^CPU' /proc/cpuinfo 2>/dev/null)
ifeq ($(JOBS),0)
JOBS := 1
endif
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-03-27 7:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-24 16:10 [PATCH] perf tool: Set JOBS based on CPU or processor David Ahern
2015-03-25 11:27 ` Jiri Olsa
2015-03-27 7:40 ` [tip:perf/core] perf tools: " tip-bot for David Ahern
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).