How can I monitor the interactions of an application with dbus?












2















I have a set of applications, I want to montior any and all interactions of the applications with dbus.

The things I've played with don't seem to have a way of focusing on just one application.



Addition



As an example consider two applications foo and bar that are trying to connect via dbus ( OK the language there is a bit off ). foo tries to setup a server as 'org.gnome.TypingMonitor' but bar tries to connect to 'org.gnome.TypignMonitor'.



I would like to monitor the connection attempts then the data transmitted to make sure handshaking afterwards is working right.



strace might work, but strace is too fine grained. An strace that traces dbus calls instead of system calls would fit the bill.










share|improve this question




















  • 1





    I'm unclear how what you're asking for is different than, e.g., dbus-monitor with a sender='whatever',interface='whatever' (like the example in the man page).

    – derobert
    Apr 15 '15 at 18:09











  • You are not really asking that are you? So I run the application foo. I want to get a list of all interactions of foo with dbus. How does dbus-monitor get that for me?

    – Mouse.The.Lucky.Dog
    Apr 15 '15 at 20:43











  • I may well be understanding wrong, but if you ask for messages with a sender of your app or being sent to your app (pretty sure that comma is an or in dbus-monitor), doesn't that monitor your app's interaction with dbus?

    – derobert
    Apr 16 '15 at 15:55











  • There is also the DBUS_VERBOSE=1 environment variable which might help. But I believe you need a debug build of the dbus libs for that to work. (This sounds better suited to after your addition)

    – derobert
    Apr 16 '15 at 15:58


















2















I have a set of applications, I want to montior any and all interactions of the applications with dbus.

The things I've played with don't seem to have a way of focusing on just one application.



Addition



As an example consider two applications foo and bar that are trying to connect via dbus ( OK the language there is a bit off ). foo tries to setup a server as 'org.gnome.TypingMonitor' but bar tries to connect to 'org.gnome.TypignMonitor'.



I would like to monitor the connection attempts then the data transmitted to make sure handshaking afterwards is working right.



strace might work, but strace is too fine grained. An strace that traces dbus calls instead of system calls would fit the bill.










share|improve this question




















  • 1





    I'm unclear how what you're asking for is different than, e.g., dbus-monitor with a sender='whatever',interface='whatever' (like the example in the man page).

    – derobert
    Apr 15 '15 at 18:09











  • You are not really asking that are you? So I run the application foo. I want to get a list of all interactions of foo with dbus. How does dbus-monitor get that for me?

    – Mouse.The.Lucky.Dog
    Apr 15 '15 at 20:43











  • I may well be understanding wrong, but if you ask for messages with a sender of your app or being sent to your app (pretty sure that comma is an or in dbus-monitor), doesn't that monitor your app's interaction with dbus?

    – derobert
    Apr 16 '15 at 15:55











  • There is also the DBUS_VERBOSE=1 environment variable which might help. But I believe you need a debug build of the dbus libs for that to work. (This sounds better suited to after your addition)

    – derobert
    Apr 16 '15 at 15:58
















2












2








2


1






I have a set of applications, I want to montior any and all interactions of the applications with dbus.

The things I've played with don't seem to have a way of focusing on just one application.



Addition



As an example consider two applications foo and bar that are trying to connect via dbus ( OK the language there is a bit off ). foo tries to setup a server as 'org.gnome.TypingMonitor' but bar tries to connect to 'org.gnome.TypignMonitor'.



I would like to monitor the connection attempts then the data transmitted to make sure handshaking afterwards is working right.



strace might work, but strace is too fine grained. An strace that traces dbus calls instead of system calls would fit the bill.










share|improve this question
















I have a set of applications, I want to montior any and all interactions of the applications with dbus.

The things I've played with don't seem to have a way of focusing on just one application.



Addition



As an example consider two applications foo and bar that are trying to connect via dbus ( OK the language there is a bit off ). foo tries to setup a server as 'org.gnome.TypingMonitor' but bar tries to connect to 'org.gnome.TypignMonitor'.



I would like to monitor the connection attempts then the data transmitted to make sure handshaking afterwards is working right.



strace might work, but strace is too fine grained. An strace that traces dbus calls instead of system calls would fit the bill.







logs monitoring debugging d-bus






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 21 mins ago









Rui F Ribeiro

40.1k1479135




40.1k1479135










asked Apr 15 '15 at 17:39









Mouse.The.Lucky.DogMouse.The.Lucky.Dog

1,00211530




1,00211530








  • 1





    I'm unclear how what you're asking for is different than, e.g., dbus-monitor with a sender='whatever',interface='whatever' (like the example in the man page).

    – derobert
    Apr 15 '15 at 18:09











  • You are not really asking that are you? So I run the application foo. I want to get a list of all interactions of foo with dbus. How does dbus-monitor get that for me?

    – Mouse.The.Lucky.Dog
    Apr 15 '15 at 20:43











  • I may well be understanding wrong, but if you ask for messages with a sender of your app or being sent to your app (pretty sure that comma is an or in dbus-monitor), doesn't that monitor your app's interaction with dbus?

    – derobert
    Apr 16 '15 at 15:55











  • There is also the DBUS_VERBOSE=1 environment variable which might help. But I believe you need a debug build of the dbus libs for that to work. (This sounds better suited to after your addition)

    – derobert
    Apr 16 '15 at 15:58
















  • 1





    I'm unclear how what you're asking for is different than, e.g., dbus-monitor with a sender='whatever',interface='whatever' (like the example in the man page).

    – derobert
    Apr 15 '15 at 18:09











  • You are not really asking that are you? So I run the application foo. I want to get a list of all interactions of foo with dbus. How does dbus-monitor get that for me?

    – Mouse.The.Lucky.Dog
    Apr 15 '15 at 20:43











  • I may well be understanding wrong, but if you ask for messages with a sender of your app or being sent to your app (pretty sure that comma is an or in dbus-monitor), doesn't that monitor your app's interaction with dbus?

    – derobert
    Apr 16 '15 at 15:55











  • There is also the DBUS_VERBOSE=1 environment variable which might help. But I believe you need a debug build of the dbus libs for that to work. (This sounds better suited to after your addition)

    – derobert
    Apr 16 '15 at 15:58










1




1





I'm unclear how what you're asking for is different than, e.g., dbus-monitor with a sender='whatever',interface='whatever' (like the example in the man page).

– derobert
Apr 15 '15 at 18:09





I'm unclear how what you're asking for is different than, e.g., dbus-monitor with a sender='whatever',interface='whatever' (like the example in the man page).

– derobert
Apr 15 '15 at 18:09













You are not really asking that are you? So I run the application foo. I want to get a list of all interactions of foo with dbus. How does dbus-monitor get that for me?

– Mouse.The.Lucky.Dog
Apr 15 '15 at 20:43





You are not really asking that are you? So I run the application foo. I want to get a list of all interactions of foo with dbus. How does dbus-monitor get that for me?

– Mouse.The.Lucky.Dog
Apr 15 '15 at 20:43













I may well be understanding wrong, but if you ask for messages with a sender of your app or being sent to your app (pretty sure that comma is an or in dbus-monitor), doesn't that monitor your app's interaction with dbus?

– derobert
Apr 16 '15 at 15:55





I may well be understanding wrong, but if you ask for messages with a sender of your app or being sent to your app (pretty sure that comma is an or in dbus-monitor), doesn't that monitor your app's interaction with dbus?

– derobert
Apr 16 '15 at 15:55













There is also the DBUS_VERBOSE=1 environment variable which might help. But I believe you need a debug build of the dbus libs for that to work. (This sounds better suited to after your addition)

– derobert
Apr 16 '15 at 15:58







There is also the DBUS_VERBOSE=1 environment variable which might help. But I believe you need a debug build of the dbus libs for that to work. (This sounds better suited to after your addition)

– derobert
Apr 16 '15 at 15:58












0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f196442%2fhow-can-i-monitor-the-interactions-of-an-application-with-dbus%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f196442%2fhow-can-i-monitor-the-interactions-of-an-application-with-dbus%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Loup dans la culture

How to solve the problem of ntp “Unable to contact time server” from KDE?

ASUS Zenbook UX433/UX333 — Configure Touchpad-embedded numpad on Linux