summaryrefslogtreecommitdiffstats
path: root/Documentation/perf_counter/builtin.h
diff options
context:
space:
mode:
authorIngo Molnar2009-04-20 15:00:56 +0200
committerIngo Molnar2009-04-20 17:36:48 +0200
commit0780060124011b94af55830939c86cc0916be0f5 (patch)
tree883a4d0ed69862ab49e6d4bf4e19debafeb5c48c /Documentation/perf_counter/builtin.h
parentperf_counter: copy in Git's top Makefile (diff)
downloadkernel-qcow2-linux-0780060124011b94af55830939c86cc0916be0f5.tar.gz
kernel-qcow2-linux-0780060124011b94af55830939c86cc0916be0f5.tar.xz
kernel-qcow2-linux-0780060124011b94af55830939c86cc0916be0f5.zip
perf_counter tools: add in basic glue from Git
First very raw version at having a central 'perf' command and a list of subcommands: perf top perf stat perf record perf report ... This is done by picking up Git's collection of utility functions, and hacking them to build fine in this new environment. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'Documentation/perf_counter/builtin.h')
-rw-r--r--Documentation/perf_counter/builtin.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/Documentation/perf_counter/builtin.h b/Documentation/perf_counter/builtin.h
new file mode 100644
index 000000000000..41637444ce2d
--- /dev/null
+++ b/Documentation/perf_counter/builtin.h
@@ -0,0 +1,18 @@
+#ifndef BUILTIN_H
+#define BUILTIN_H
+
+#include "util.h"
+#include "strbuf.h"
+
+extern const char perf_version_string[];
+extern const char perf_usage_string[];
+extern const char perf_more_info_string[];
+
+extern void list_common_cmds_help(void);
+extern const char *help_unknown_cmd(const char *cmd);
+extern void prune_packed_objects(int);
+extern int read_line_with_nul(char *buf, int size, FILE *file);
+extern int check_pager_config(const char *cmd);
+
+extern int cmd_top(int argc, const char **argv, const char *prefix);
+#endif