Lines Matching refs:dtrace
59 def dtrace(args):
60 parser = argparse.ArgumentParser(prog='perf-helper dtrace',
61 description='dtrace wrapper for order file generation')
63 default=1, help='dtrace buffer size in MB (default 1)')
65 help='Use dtrace\'s oneshot probes')
67 help='Use dtrace\'s ustack to print function names')
73 # everything else through to dtrace
88 log_timestamp = 'printf("dtrace-TS: %d\\n", timestamp)'
92 action = 'printf("dtrace-Symbol: %s\\n", probefunc);'
99 + '%%admin ALL=(ALL) NOPASSWD: /usr/sbin/dtrace')
103 'dtrace', '-xevaltime=exec',
113 with open("%d.dtrace" % os.getpid(), "w") as f:
158 # everything else through to dtrace
190 # the output of a dtrace run logging either probefunc or ustack(1) and
191 # nothing else. The dtrace -xdemangle option needs to be used.
199 if not ln.startswith("dtrace-"):
203 if ln.startswith("dtrace-TS: "):
211 elif ln.startswith("dtrace-Symbol: "):
301 # first. This assumes the data files didn't use the oneshot dtrace method.
330 "%prog [options] <dtrace data file directories>]")
367 input_files.extend(findFilesWithExtension(dirname, "dtrace"))
409 'dtrace' : dtrace,