From 7714046607622de1a9fe6282e8d8ea12824b27c3 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 12 Aug 2019 19:24:36 +0200 Subject: let the loader load the benchmark not exec If the loader calls build/exec the execvp from build/exec is handled by the system loader. --- src/benchmark.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/benchmark.py') diff --git a/src/benchmark.py b/src/benchmark.py index d8e7e81..25a2fa8 100644 --- a/src/benchmark.py +++ b/src/benchmark.py @@ -326,11 +326,12 @@ class Benchmark (object): measure_argv = src.util.prefix_cmd_with_abspath(measure_argv).split() argv.extend(measure_argv) - argv.extend(prefix_argv) argv.extend(["build/exec", "-p", env["LD_PRELOAD"]]) if alloc["LD_LIBRARY_PATH"] != "": argv.extend(["-l", env["LD_LIBRARY_PATH"]]) + argv.extend(prefix_argv) + argv.extend(cmd_argv) print_debug("\nCmd:", argv) -- cgit v1.2.3