xref: /openbmc/phosphor-debug-collector/tools/dreport.d/plugins.d/dbusstats (revision 4456bbd96decd2d3810d63e93b0e0e96998232ba)
173cec52dSDeepak Kamat#!/bin/bash
273cec52dSDeepak Kamat#
373cec52dSDeepak Kamat# config: 2 50
4*4456bbd9SAmithash Prasad# @brief: Get the internal D-bus information.
573cec52dSDeepak Kamat#
673cec52dSDeepak Kamat
773cec52dSDeepak Kamat# shellcheck source=/dev/null
873cec52dSDeepak Kamat. "$DREPORT_INCLUDE"/functions
973cec52dSDeepak Kamat
10*4456bbd9SAmithash Prasaddesc="D-bus internal stats"
1173cec52dSDeepak Kamat
12*4456bbd9SAmithash Prasadcommand="busctl call org.freedesktop.DBus /org/freedesktop/DBus \
13*4456bbd9SAmithash Prasad        org.freedesktop.DBus.Debug.Stats GetStats \"\" a{sv} --verbose"
1473cec52dSDeepak Kamat
1573cec52dSDeepak Kamatfile_name="dbusstats.log"
1673cec52dSDeepak Kamat
1773cec52dSDeepak Kamatadd_cmd_output "$command" "$file_name" "$desc"
18