path: root/tools/perf/perf.h
diff options
authorNamhyung Kim <>2014-10-23 00:15:46 +0900
committerArnaldo Carvalho de Melo <>2014-10-29 10:32:47 -0200
commite5b2c20755d37d781bb6e1e733faec5c39bd087a (patch)
tree061151a31fd446c0f9b786c25fa2c477447d1350 /tools/perf/perf.h
parentd152d1be5962ace0706066db71b4f05dff8764eb (diff)
perf tools: Export usage string and option table of perf record
Those are shared with other builtin commands like kvm, script. So make it accessable from them. This is a preparation of later change that limiting possible options. Signed-off-by: Namhyung Kim <> Acked-by: Hemant Kumar <> Cc: Alexander Yarygin <> Cc: David Ahern <> Cc: Hemant Kumar <> Cc: Ingo Molnar <> Cc: Jiri Olsa <> Cc: Masami Hiramatsu <> Cc: Peter Zijlstra <> Link: Signed-off-by: Arnaldo Carvalho de Melo <>
Diffstat (limited to 'tools/perf/perf.h')
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/perf.h b/tools/perf/perf.h
index 220d44e44c1b..511c2831aa81 100644
--- a/tools/perf/perf.h
+++ b/tools/perf/perf.h
@@ -62,4 +62,7 @@ struct record_opts {
unsigned initial_delay;
+struct option;
+extern const char * const *record_usage;
+extern struct option *record_options;