chiark / gitweb /
systemd-analyze: filter dot output
authorŁukasz Stelmach <stlman@poczta.fm>
Sat, 6 Apr 2013 13:40:56 +0000 (15:40 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 8 Apr 2013 18:35:25 +0000 (20:35 +0200)
commite55933db18d1037876e7a0962bcf6ef6c0bbbd68
treee9fdbdcc56942d66c32527c7e027b77242b6a343
parentb97caef538ae37bd2dc04fc15b448c12a2c9422b
systemd-analyze: filter dot output

Make "systemd-analyze dot" output only lines with units matching
given glob(7) patterns. Add --from-pattern and --to-pattern options.
Without any patterns all relationships are printed as before.

A relationship must match the follwing expression:

    (isempty(from) || from[0] || from[1] || .. || from[n]) &&
    (isempty(to) || to[0] || to[1] || .. || to[n]) &&
    (isempty(P) || P[0] || P[1] || ... || P[n])

where from[] and to[] are lists of patterns provided with subsequent
--from-pattern and --to-pattern respectively. P[] is a list of  additional
patterns provided after the "dot" subcommand.
man/systemd-analyze.xml
src/analyze/systemd-analyze.c