]> git.baikalelectronics.ru Git - kernel.git/commit
perf record: We should fork only if a program was specified to run
authorArnaldo Carvalho de Melo <acme@redhat.com>
Sun, 27 Dec 2009 23:36:57 +0000 (21:36 -0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 28 Dec 2009 08:02:50 +0000 (09:02 +0100)
commitf50ef6d1c68db5c12bd37b21db9c502a3956ff75
tree0198f14c37e86f88a7bc3443f93abc8cfbb266d4
parentf7fbf6c809fa46f35209cdac9359e7fa65584af8
perf record: We should fork only if a program was specified to run

IOW: Now 'perf record -a' works, this was a bug introduced in:

dab69907267d33af87ec51ef04e4900ec89b958d
"perf record: Properly synchronize child creation"

Also fix the -C usage, i.e. allow for profiling all the tasks in
one CPU.

Reported-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1261957026-15580-1-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-record.c