From caaf6963bad7186ebd0cd10912eddb83490d75d5 Mon Sep 17 00:00:00 2001 From: Adrian Szyndela Date: Thu, 9 Nov 2017 16:33:41 +0100 Subject: [PATCH] dbus-messages-sent: some messages were counted twice 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 | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/dbus-messages-sent.py b/tools/dbus-messages-sent.py index b2f9dbe5..8e913994 100755 --- a/tools/dbus-messages-sent.py +++ b/tools/dbus-messages-sent.py @@ -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: -- 2.34.1