Lines Matching refs:ovf
32 def parse_event(line,ovf):
39 ev(first[1] + "/events", ovf)
63 def ev(fname,ovf):
64 ''' read file, parse, generate C data struct to file ovf '''
69 eventlist = [parse_event(line,ovf) for line in lines]
71 ovf.write("// events from file %s\n" % fname)
74 ovf.write(' {%s, %s, %s, "%s",\n' % (d['event'], parse_ctr(d['counters']), d['um'], d['name']))
75 ovf.write(' "%s"},\n' % d['description'])
83 ovf = open(fname + ".h", "w")
84 ev(fname, ovf)