Lines Matching +full:system +full:- +full:trace
14 trace-cmd with configurable parameters.
16 @see: git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git
37 def setup(self, tarball='trace-cmd.tar.bz2', **kwargs):
39 Build and install trace-cmd from source.
41 The tarball was obtained by checking the git repo at 09-14-2010,
45 @param tarball: Path to trace-cmd tarball.
61 accepted by trace-cmd -e, eg "syscalls", or
63 trace-cmd -f, eg "((sig >= 10 && sig < 15) || sig == 17)"
67 self.trace_cmd_args = ['-b', str(buffer_size_kb)]
73 self.trace_cmd_args += ['-e', tracepoint]
75 self.trace_cmd_args += ['-f', event_filter]
80 self.trace_cmd = os.path.join(self.builddir, 'bin', 'trace-cmd')
90 utils.system('%s reset' % self.trace_cmd)
95 self.output = os.path.join(output_dir, 'trace.dat')
96 cmd = [self.trace_cmd, 'record', '-o', self.output]
101 # Wait for tracing to be enabled. If trace-cmd dies before enabling
111 'trace-cmd exited early.')
122 utils.system('%s reset -b 1' % self.trace_cmd)
125 utils.system('bzip2 %s' % self.output)
127 # if the compressed trace file is large (10MB), just delete it.
130 logging.warning('Deleting large trace file %s (%d bytes)',
133 # remove per-cpu files in case trace-cmd died.
134 utils.system('rm -f %s.cpu*' % self.output)