aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilosz Wasilewski <milosz.wasilewski@linaro.org>2014-03-21 15:57:21 +0000
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2014-03-21 15:57:21 +0000
commitd20e2c69281b12455351ce18e623552f7541c777 (patch)
tree2dea7dd14adb924c8ce4aa177994cde69ef6c0ae
parente10062dfb665232d19731ca2904f019917df52e3 (diff)
added GPL license to script files
-rwxr-xr-xpostprocessing.py28
-rwxr-xr-xprepare-agenda.py22
-rwxr-xr-xprepare-config.py22
-rwxr-xr-xprepare-device.sh21
-rwxr-xr-xrun-workload.sh21
5 files changed, 112 insertions, 2 deletions
diff --git a/postprocessing.py b/postprocessing.py
index d82e2bf..4995ea1 100755
--- a/postprocessing.py
+++ b/postprocessing.py
@@ -1,5 +1,28 @@
#!/usr/bin/env python
+#
+# Workload Automation v2 for LAVA
+#
+# Copyright (C) 2014, Linaro Limited.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# Author: Milosz Wasilewski <milosz.wasilewski@linaro.org>
+#
+
import sqlite3
+from copy import deepcopy
from numpy import array, mean
from optparse import OptionParser
@@ -30,9 +53,10 @@ if __name__ == '__main__':
conn = sqlite3.connect(SQLITE_DB_GLOBAL_PATH + options.job_name + ".db")
modes_cursor = conn.cursor()
for mode_row in modes_cursor.execute(modes_prepares_statement):
+ metrics_local = deepcopy(metrics_common)
if 'bbench' in mode_row[0]:
- metrics_common = metrics_common + metrics_bbench
- for metric in metrics_common:
+ metrics_local = metrics_local + metrics_bbench
+ for metric in metrics_local:
params = (metric, mode_row[0])
metric_values = []
metric_cursor = conn.cursor()
diff --git a/prepare-agenda.py b/prepare-agenda.py
index 1d3704a..061be7f 100755
--- a/prepare-agenda.py
+++ b/prepare-agenda.py
@@ -1,4 +1,26 @@
#!/usr/bin/env python
+#
+# Workload Automation v2 for LAVA
+#
+# Copyright (C) 2014, Linaro Limited.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# Author: Milosz Wasilewski <milosz.wasilewski@linaro.org>
+#
+
import yaml
from optparse import OptionParser
diff --git a/prepare-config.py b/prepare-config.py
index 13ae4e8..397c7f5 100755
--- a/prepare-config.py
+++ b/prepare-config.py
@@ -1,4 +1,26 @@
#!/usr/bin/env python
+#
+# Workload Automation v2 for LAVA
+#
+# Copyright (C) 2014, Linaro Limited.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# Author: Milosz Wasilewski <milosz.wasilewski@linaro.org>
+#
+
import re
import sys
from string import Template
diff --git a/prepare-device.sh b/prepare-device.sh
index abb30b7..0c479af 100755
--- a/prepare-device.sh
+++ b/prepare-device.sh
@@ -1,4 +1,25 @@
#!/bin/bash
+#
+# Workload Automation v2 for LAVA
+#
+# Copyright (C) 2014, Linaro Limited.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# Author: Milosz Wasilewski <milosz.wasilewski@linaro.org>
+#
set -e
echo "Preparing device for mode: $1"
diff --git a/run-workload.sh b/run-workload.sh
index 75a930a..342b268 100755
--- a/run-workload.sh
+++ b/run-workload.sh
@@ -1,4 +1,25 @@
#!/bin/bash
+#
+# Workload Automation v2 for LAVA
+#
+# Copyright (C) 2014, Linaro Limited.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# Author: Milosz Wasilewski <milosz.wasilewski@linaro.org>
+#
echo -e "PWD"
echo -e "**********************\n"