From: Arnaldo Carvalho de Melo Date: Sun, 27 Dec 2009 23:36:57 +0000 (-0200) Subject: perf record: We should fork only if a program was specified to run X-Git-Tag: v2.6.33-rc3~29^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4db3f164529013b11a171bb1bd38e8681ddaec8;p=pandora-kernel.git 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: 856e96608a72412d319e498a3a7c557571f811bd "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 Signed-off-by: Arnaldo Carvalho de Melo Cc: Frédéric Weisbecker Cc: Mike Galbraith Cc: Peter Zijlstra Cc: Paul Mackerras LKML-Reference: <1261957026-15580-1-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed