Products › lamco-dbus-tools › Docs
Read a D-Bus recording: Timing, stuck calls, names and errors
Read a D-Bus recording with dbustell: Call times at the bus, calls left waiting, who held which name, errors, signal storms, comparisons and a scrubbed bundle.
Describes version 0.4.1.
dbustell reads what dbussee wrote and touches no bus. Every command takes a capture file, or - for
standard input, prints text, and with --json prints JSON instead. A stream reads as a document does, and
so does a capture dbustell import made from a busctl or dbus-monitor file.
Start with health, which lists the findings, then follow what they point at.
dbussee record --all --duration 30 --out rec.json
dbustell health rec.json
How long calls take
dbustell timing rec.json
dbustell timing rec.json --by method --top 5
Each call is paired with its answer exactly, by the caller's name and serial. A row per destination and method gives the count, errors, minimum, median, 95th and 99th percentiles and maximum, the slowest at the 99th first. Read the lines above the table first: What each figure spans (the bus passing on the call to the bus passing on its answer, as the recorder read them), and the floor, the shortest call the bus answered itself. A figure near the floor says only that the answer came at once.
What's stuck
dbustell pending rec.json
The calls with no answer when the recording ended, how long each had waited, and who it waits on. Callers
waiting on a callee that's itself waiting are shown as a chain; callers waiting on each other in a ring,
where none can answer, as a ring. CALL-001 and CALL-002 in health point here.
Who held which name
dbustell names rec.json
Each name's owners over the recording, which changed hands, which were lost and never retaken, and how many connections joined and left. A service that crashed shows as a name lost.
Errors and signals
dbustell errors rec.json
dbustell signals rec.json --top 30
Errors come in three groups: Those the bus sent about calls to services, which mean it refused a call,
couldn't deliver it, or answered for a service that never did; those it sent about calls to itself; and
those services sent. Signals are counted per sender, signal and path, with their rate and the most in any
one second. 100 or more in a second is a storm, SIG-001.
What changed
dbussee observe --out monday.json
dbussee observe --out tuesday.json
dbustell compare monday.json tuesday.json
It compares what lasts: The bus, each well-known name and the program that owns it, who waits for it, the
names that can be started, and for two recordings the methods called and the errors seen. Unique names,
process ids, connection counts and timings differ between any two readings and aren't compared, except
medians with --timing. For CI, --junit diff.xml writes a failing case for each difference.
dbustell compare before.json after.json --timing --junit diff.xml
dbustell findings rec.json --junit findings.xml does the same for findings: A problem fails its case, a
notice doesn't.
For a bug report
dbustell bundle rec.json --out bug-report
tar czf bug-report.tar.gz bug-report
The bundle holds the capture, scrubbed, and every report of it, each written from the scrubbed capture.
Scrubbing removes every message body and byte string, replaces the host name, user names in home paths and
email addresses wherever they appear, and hashes the machine's and boot's ids. It can't find a person's
name written anywhere else, such as in a well-known name or an object path, so read the files before
sending them. dbustell scrub rec.json --out clean.json scrubs a capture alone.