From f057c3af79962cfa953fe3f4b7464cec4a3ba74e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 14 May 2020 09:18:49 +0200 Subject: generate-{dfa-benchmark,dummy-class}: use relative paths --- bin/generate-dfa-benchmark.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'bin/generate-dfa-benchmark.py') diff --git a/bin/generate-dfa-benchmark.py b/bin/generate-dfa-benchmark.py index 1180ee9..fedd12b 100755 --- a/bin/generate-dfa-benchmark.py +++ b/bin/generate-dfa-benchmark.py @@ -14,7 +14,7 @@ arguments (so all argument combinations are present in the generated runs). It expects to be called from a multipass instance and writes data to ../data. Recommended setup: -> mkdir data +> mkdir -p data/cache > git clone .../dfatool > git clone .../multipass > cd multipass @@ -25,6 +25,9 @@ Options: Select accounting method for dummy driver generation. May be followed by a list of key=value driver options, e.g. energy_type=uint64_t +--data= + Directory in which the measurements will be stored. Default: ../data + --dummy= Generate and use a dummy driver for online energy model overhead evaluation @@ -319,6 +322,7 @@ if __name__ == '__main__': 'accounting= ' 'arch= ' 'app= ' + 'data= ' 'depth= ' 'dummy= ' 'energytrace= ' @@ -424,7 +428,7 @@ if __name__ == '__main__': run_flags = ['drivers=dummy'] - repo = Repo('/home/derf/var/projects/multipass/build/repo.acp') + repo = Repo('../multipass/build/repo.acp') if 'accounting' in opt and 'getEnergy' not in map(lambda x: x.name, pta.transitions): for state in pta.get_state_names(): @@ -443,9 +447,9 @@ if __name__ == '__main__': else: accounting_object = None drv = MultipassDriver(class_name, pta, repo.class_by_name[class_name], enum=enum, accounting=accounting_object) - with open('/home/derf/var/projects/multipass/src/driver/dummy.cc', 'w') as f: + with open('../multipass/src/driver/dummy.cc', 'w') as f: f.write(drv.impl) - with open('/home/derf/var/projects/multipass/include/driver/dummy.h', 'w') as f: + with open('../multipass/include/driver/dummy.h', 'w') as f: f.write(drv.header) if '.json' not in modelfile: -- cgit v1.2.3