summaryrefslogtreecommitdiff
path: root/tools/trace/trace.py
diff options
context:
space:
mode:
authorNélio Laranjeiro2010-04-12 00:10:43 +0200
committerNélio Laranjeiro2010-04-12 00:10:43 +0200
commit3f9ec36bf414b08ac2ee0f62927997b8e0c127cb (patch)
tree17a6dfc9bb865081ed5a8b2b6d634b3e0d187720 /tools/trace/trace.py
parent0eb3874c27be75da36f39093ecfb603dc8fe7012 (diff)
{tools/trace, digital/avr/modules/trace}: print trace on host execution, closes #92
Diffstat (limited to 'tools/trace/trace.py')
-rw-r--r--tools/trace/trace.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/tools/trace/trace.py b/tools/trace/trace.py
index 4e252ddb..d3d2736c 100644
--- a/tools/trace/trace.py
+++ b/tools/trace/trace.py
@@ -12,11 +12,8 @@ print "Trace System by APBTeam\n"
usage = "usage: %prog [options] [host program]"
parser = OptionParser(usage=usage)
-parser.add_option("-e", "--enum-name", dest="enum_name",
- help="provide the enumerator name" + CREATE_MODE,
- metavar="ENUM")
-parser.add_option("-o", "--output", dest="outfile",
- help="Store the enumerator on the output file" + CREATE_MODE)
+parser.add_option("-o", "--output", dest="outfile", action="store_true",
+ help="generate events.h and events.c files" + CREATE_MODE)
parser.add_option("-i", "--infile", dest="infile",
help="Read the data from the file")
parser.add_option("-t", "--type", dest="type",
@@ -33,10 +30,10 @@ if options.type == "inter":
assert args
if options.type == 'create':
- cre = TCreator (options.infile, options.outfile, options.enum_name)
- cre.create ()
+ cre = TCreator (options.infile)
+ cre.create (options.outfile)
elif options.type == "inter":
- inter = TInter (options.infile, options.outfile, args[0], options.cb)
+ inter = TInter (options.infile, args[0], options.cb)
if options.list_trace:
inter.available_traces ()
elif options.trace != None: