Home | History | Annotate | Download | only in bench

Lines Matching defs:args

35     def __init__(self, thread, time, call, args, ret):
39 self.args = args
43 return "%s(%s)=%s" % (self.call, repr(self.args), self.ret)
75 args = []
98 args.append(arg.strip())
103 args.append(arg.strip())
104 return args
119 time, call, args, ret = line.groups()
121 if "/data/" not in args: continue
124 args = parse_args(args)
125 events.append(Event(thread, time, call, args, ret))
187 if 'O_CREAT' in e.args[2]:
188 assert len(e.args) > 3, 'File creation lacks a mode?'
189 create_mode = ', ' + e.args[3]
191 % (handle, f.ident, e.args[2], create_mode)
194 fd, f, handle = extract_file(e, e.args[0])
200 fd, f, handle = extract_file(e, e.args[0])
202 print >>bench, 'TEMP_FAILURE_RETRY(lseek(%s, %s, %s));' % (handle, e.args[1], e.args[2])
205 fd, f, handle = extract_file(e, e.args[0])
207 print >>bench, 'TEMP_FAILURE_RETRY(lseek(%s, %s, %s));' % (handle, e.args[1], e.args[3])
210 fd, f, handle = extract_file(e, e.args[0])
213 count = min(int(e.args[2]), bufsize)
219 fd, f, handle = extract_file(e, e.args[0])
222 count = min(int(e.args[2]), bufsize)
228 fd, f, handle = extract_file(e, e.args[0])
230 f.size = max(f.size, int(e.args[2]) + int(e.args[3]))
231 count = min(int(e.args[2]), bufsize)
232 print >>bench, 'TEMP_FAILURE_RETRY(pread(%s, buf, %d, %s));' % (handle, count, e.args[3])
236 fd, f, handle = extract_file(e, e.args[0])
238 f.size = max(f.size, int(e.args[2]) + int(e.args[3]))
239 count = min(int(e.args[2]), bufsize)
240 print >>bench, 'TEMP_FAILURE_RETRY(pwrite(%s, buf, %d, %s));' % (handle, count, e.args[3])
244 fd, f, handle = extract_file(e, e.args[0])
250 fd, f, handle = extract_file(e, e.args[0])
256 fd, f, handle = extract_file(e, e.args[4])
258 count = min(int(e.args[1]), bufsize)
259 offset = int(e.args[5], 0)