aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/perf_counter/builtin-top.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-05-26 03:17:18 -0400
committerIngo Molnar <mingo@elte.hu>2009-05-26 05:26:32 -0400
commit0e9b20b8a1cab6c6ab4f98f917a2d98783103969 (patch)
treefb294181846f82f1cd3dc96bcbd8a8506c3f8b27 /Documentation/perf_counter/builtin-top.c
parent4e97ddf09ee3ce715fc334399bae4cc0c0a13057 (diff)
perf record: Convert to Git option parsing
Remove getopt usage and use Git's much more advanced and more compact command option library. Git's library (util/parse-options.[ch]) constructs help texts and error messages automatically, and has a number of other convenience features as well. Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> 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>
Diffstat (limited to 'Documentation/perf_counter/builtin-top.c')
-rw-r--r--Documentation/perf_counter/builtin-top.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/perf_counter/builtin-top.c b/Documentation/perf_counter/builtin-top.c
index 4bed265926dd..626b32076499 100644
--- a/Documentation/perf_counter/builtin-top.c
+++ b/Documentation/perf_counter/builtin-top.c
@@ -42,13 +42,16 @@
42 * Released under the GPL v2. (and only v2, not any later version) 42 * Released under the GPL v2. (and only v2, not any later version)
43 */ 43 */
44 44
45
45#include "perf.h" 46#include "perf.h"
46#include "util/util.h" 47#include "util/util.h"
47 48
48#include <getopt.h> 49#include <getopt.h>
49#include <assert.h> 50#include <assert.h>
50#include <fcntl.h> 51#include <fcntl.h>
52
51#include <stdio.h> 53#include <stdio.h>
54
52#include <errno.h> 55#include <errno.h>
53#include <time.h> 56#include <time.h>
54#include <sched.h> 57#include <sched.h>