perf trace: Add -i option for choosing input file
authorHitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
Fri, 22 Jan 2010 13:45:29 +0000 (22:45 +0900)
committerIngo Molnar <mingo@elte.hu>
Wed, 27 Jan 2010 12:01:34 +0000 (13:01 +0100)
perf trace lacks -i option for choosing input file.
This patch adds it to perf trace.

Signed-off-by: Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <1264167929-6741-1-git-send-email-mitake@dcl.info.waseda.ac.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-trace.c

index 8e9cbfe..0b65779 100644 (file)
@@ -515,6 +515,8 @@ static const struct option options[] = {
                     parse_scriptname),
        OPT_STRING('g', "gen-script", &generate_script_lang, "lang",
                   "generate perf-trace.xx script in specified language"),
+       OPT_STRING('i', "input", &input_name, "file",
+                   "input file name"),
 
        OPT_END()
 };