dbus-messages-sent: some messages were counted twice 56/159556/1
authorAdrian Szyndela <adrian.s@samsung.com>
Thu, 9 Nov 2017 15:33:41 +0000 (16:33 +0100)
committerAdrian Szyndela <adrian.s@samsung.com>
Thu, 9 Nov 2017 15:36:02 +0000 (16:36 +0100)
dbus-messages-sent set uprobes on functions:
dbus_connection_send
dbus_connection_send_preallocated
dbus_connection_send_with_reply
dbus_connection_send_with_reply_and_block

However, dbus_connection_send_with_reply_and block calls
dbus_connection_send_with_reply, so the messages were counted twice.
This commit removes uprobe from
dbus_connection_send_with_reply_and_block.

Change-Id: Id6774ed36016607db58c48ca613ba3cdd1e93db6

tools/dbus-messages-sent.py

index b2f9dbe..8e91399 100755 (executable)
@@ -40,8 +40,6 @@ b = BPF(text=bpf_text)
 b.attach_uprobe(name="dbus-1", sym="dbus_connection_send", fn_name="sending_message")
 b.attach_uprobe(name="dbus-1", sym="dbus_connection_send_preallocated", fn_name="sending_message")
 b.attach_uprobe(name="dbus-1", sym="dbus_connection_send_with_reply", fn_name="sending_message")
-b.attach_uprobe(name="dbus-1", sym="dbus_connection_send_with_reply_and_block", fn_name="sending_message")
-
 
 while (1):
        if count > 0: