Fix up profiling - add hooks to all appropriate tests, fix up profilers
for changed model



git-svn-id: http://test.kernel.org/svn/autotest/trunk@134 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/tests/unixbench/unixbench.py b/tests/unixbench/unixbench.py
index 72fabd0..10c3d9e 100755
--- a/tests/unixbench/unixbench.py
+++ b/tests/unixbench/unixbench.py
@@ -17,3 +17,11 @@
 			os.chdir(self.srcdir)
 			vars = 'TMPDIR=\"%s\" RESULTDIR=\"%s\"' % (self.tmpdir, self.resultsdir)
 			system(vars + ' ./Run ' + args)
+
+		# Do a profiling run if necessary
+		profilers = self.job.profilers
+		if profilers.present():
+			profilers.start(self)
+			system(vars + ' ./Run ' + args)
+			profilers.stop(self)
+			profilers.report(self)