How can I monitor the interactions of an application with dbus?
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
add a comment |
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
1
I'm unclear how what you're asking for is different than, e.g.,dbus-monitor
with asender='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 indbus-monitor
), doesn't that monitor your app's interaction with dbus?
– derobert
Apr 16 '15 at 15:55
There is also theDBUS_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
add a comment |
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
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
logs monitoring debugging d-bus
edited 12 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 asender='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 indbus-monitor
), doesn't that monitor your app's interaction with dbus?
– derobert
Apr 16 '15 at 15:55
There is also theDBUS_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
add a comment |
1
I'm unclear how what you're asking for is different than, e.g.,dbus-monitor
with asender='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 indbus-monitor
), doesn't that monitor your app's interaction with dbus?
– derobert
Apr 16 '15 at 15:55
There is also theDBUS_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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
1
I'm unclear how what you're asking for is different than, e.g.,
dbus-monitor
with asender='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