<feed xmlns='http://www.w3.org/2005/Atom'>
<title>allocbench/src/run_cmd.c, branch pgfplots</title>
<subtitle>benchmark tool for POSIX memory allocators</subtitle>
<link rel='alternate' type='text/html' href='https://git.muhq.space/allocbench/'/>
<entry>
<title>use LD_LIBRARY_PATH for glibc instead of calling its loader</title>
<updated>2019-08-12T09:10:15+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fl.fischer@fau.de</email>
</author>
<published>2019-08-12T09:10:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/allocbench/commit/?id=c6a768c12ce7e83631d08f53937a075c4f76e2d5'/>
<id>c6a768c12ce7e83631d08f53937a075c4f76e2d5</id>
<content type='text'>
Calling the loader fails on non ELF executables. Exec, formerly run_cmd,
now takes two options: -l LD_LIBRARY_PATH, -p LD_PRELOAD.
-p sets LD_PRELOAD and -l LD_LIBRARY_PATH before executing the rest of argv.

glibc no longer uses cmd_prefix in favor of LD_LIBRARY_PATH.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Calling the loader fails on non ELF executables. Exec, formerly run_cmd,
now takes two options: -l LD_LIBRARY_PATH, -p LD_PRELOAD.
-p sets LD_PRELOAD and -l LD_LIBRARY_PATH before executing the rest of argv.

glibc no longer uses cmd_prefix in favor of LD_LIBRARY_PATH.
</pre>
</div>
</content>
</entry>
<entry>
<title>Rework exec chain</title>
<updated>2019-08-11T20:40:06+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fl.fischer@fau.de</email>
</author>
<published>2019-08-11T20:28:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/allocbench/commit/?id=9d056ff64bf887e2c3479fe515bf7c95cb39e5b6'/>
<id>9d056ff64bf887e2c3479fe515bf7c95cb39e5b6</id>
<content type='text'>
Originally the structure of the executed cmd was
{measure cmd} {allocator cmd prefix} {cmd} with the parent environment
except LD_PRELOAD was modified for the whole command chain.
Unfortunatly perf causes segfaults with some allocators and measuring
allocators cmd prefixes doesnt seem fair. So the new cmd chain looks like:
{allocator cmd prefix} {measure cmd} run_cmd &lt;LD_PRELOAD&gt; {cmd} without
touching the environment in python.

run_cmd sets LD_PRELOAD to the value it received in argv[1] and executes
argv[2] with the rest of argv. This does also measure code not part of
the actual benchmark but in a equal manner and not only for some allocators.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Originally the structure of the executed cmd was
{measure cmd} {allocator cmd prefix} {cmd} with the parent environment
except LD_PRELOAD was modified for the whole command chain.
Unfortunatly perf causes segfaults with some allocators and measuring
allocators cmd prefixes doesnt seem fair. So the new cmd chain looks like:
{allocator cmd prefix} {measure cmd} run_cmd &lt;LD_PRELOAD&gt; {cmd} without
touching the environment in python.

run_cmd sets LD_PRELOAD to the value it received in argv[1] and executes
argv[2] with the rest of argv. This does also measure code not part of
the actual benchmark but in a equal manner and not only for some allocators.
</pre>
</div>
</content>
</entry>
</feed>
