diff options
author | David Sommerseth <davids@redhat.com> | 2013-05-02 21:13:25 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2013-05-02 21:13:25 +0200 |
commit | b19b3048de0075e08069b3f9e91776a3542f959b (patch) | |
tree | 9a51848f1f8f6ad87b68863b8d7df493683ae5fa /rteval/modules | |
parent | 01cf6ef60920c50df0de789f122a8f0a8b238fa2 (diff) | |
download | rteval-b19b3048de0075e08069b3f9e91776a3542f959b.tar.gz rteval-b19b3048de0075e08069b3f9e91776a3542f959b.tar.xz rteval-b19b3048de0075e08069b3f9e91776a3542f959b.zip |
cyclictest: Added trace-cmd extract when breaktrace aborts exection
This adds a dependency of the trace-cmd package as well, but it will
improve the ability to better understand what happened when this the
threshold broke.
Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'rteval/modules')
-rw-r--r-- | rteval/modules/measurement/cyclictest.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/rteval/modules/measurement/cyclictest.py b/rteval/modules/measurement/cyclictest.py index 1d6acdc..77acd22 100644 --- a/rteval/modules/measurement/cyclictest.py +++ b/rteval/modules/measurement/cyclictest.py @@ -317,6 +317,16 @@ class Cyclictest(rtevalModulePrototype): os.mkdir(cyclicdir) shutil.copyfile(trace, os.path.join(cyclicdir, 'breaktrace.log')) + # Call trace-cmd extract to save an exportable binary blob with trace data + # FIXME: For some odd reason, running trace-cmd outside a shell makes it fail on my test system + tracecmd = ['sh', '-c', 'trace-cmd extract -o %s' % os.path.join(cyclicdir,'trace.dat')] + self._log(Log.DEBUG, 'Executing: %s' % ' '.join(tracecmd)) + tracecmdproc = subprocess.Popen(tracecmd, + stdout=self.__nullfp, + stderr=self.__nullfp, + stdin=self.__nullfp) + tracecmdproc.wait() + self._setFinished() self.__started = False os.close(self.__nullfp) |