perf record: Fix the profiling of existing pid or whole box
authorMike Galbraith <efault@gmx.de>
Wed, 27 May 2009 08:10:51 +0000 (10:10 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 27 May 2009 10:31:03 +0000 (12:31 +0200)
commitef65b2a0b3a2f82850144df6e6a7796f6d66da6b
tree14ad25a63330c8f43d91f9f211188b0e5baa9e72
parenta930d2c0d0a685ab955472b08baad041cc5edb4a
perf record: Fix the profiling of existing pid or whole box

Perf record bails if no command argument is provided, so you can't use
naked -a or -p to profile a running task or the whole box.

Allow foreground profiling of an existing pid or the entire system.

[ Impact: fix command option handling bug ]

Signed-off-by: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: John Kacur <jkacur@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Documentation/perf_counter/builtin-record.c