Re: [systemd-devel] Analyzing and debugging userspace services (with e. g. Valgrind)

2015-04-02 Thread Lennart Poettering
On Thu, 02.04.15 11:27, Paul Menzel (paulepan...@users.sourceforge.net) wrote:

> Dear systemd folks,
> 
> 
> does systemd provide an option to debug userspace services with, for
> example, the instrumentation framework Valgrind [1] to find memory leaks
> or analyze the memory usage in more detail?
> 
> If it does not, should such a feature be added? Would it be useful, to
> just have a switch or option `Valgrind=true` or something like it? It’d
> also be nice to just have a global switch `systemd.valgrind=1` and
> systemd will run each service under Valgrind. Problems lie as always in
> the details, like if and how suppression files should be passed.
> 
> Or should just the unit/service file be edited?

Yeah, I think this is the best way to go. Use "systemctl edit --full
foobar.service" and prefix it's ExecStart= parameter with an
invocation of valgrind.

Lennart

-- 
Lennart Poettering, Red Hat
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] Analyzing and debugging userspace services (with e. g. Valgrind)

2015-04-02 Thread Paul Menzel
Dear systemd folks,


does systemd provide an option to debug userspace services with, for
example, the instrumentation framework Valgrind [1] to find memory leaks
or analyze the memory usage in more detail?

If it does not, should such a feature be added? Would it be useful, to
just have a switch or option `Valgrind=true` or something like it? It’d
also be nice to just have a global switch `systemd.valgrind=1` and
systemd will run each service under Valgrind. Problems lie as always in
the details, like if and how suppression files should be passed.

Or should just the unit/service file be edited?


Thanks,

Paul


[1] http://valgrind.org


signature.asc
Description: This is a digitally signed message part
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel