summaryrefslogtreecommitdiff
path: root/vswitchd
diff options
context:
space:
mode:
authorEelco Chaudron <echaudro@redhat.com>2021-12-22 10:17:12 +0100
committerIlya Maximets <i.maximets@ovn.org>2022-01-18 00:46:30 +0100
commit512fab8f21ebd336a0be983b7ba5a62114592c03 (patch)
tree5ac1c599d6e602a7e728aa3842d64f9c0167b87d /vswitchd
parent191013cae99e146292b7ea34bf3c4aaa3bb54832 (diff)
downloadopenvswitch-512fab8f21ebd336a0be983b7ba5a62114592c03.tar.gz
openvswitch: Define the OVS_STATIC_TRACE() macro.
This patch defines the OVS_STATIC_TRACE() macro, and as an example, adds two of them in the bridge run loop. Signed-off-by: Eelco Chaudron <echaudro@redhat.com> Acked-by: Paolo Valerio <pvalerio@redhat.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'vswitchd')
-rw-r--r--vswitchd/ovs-vswitchd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/vswitchd/ovs-vswitchd.c b/vswitchd/ovs-vswitchd.c
index f007f9c0b..407bfc60e 100644
--- a/vswitchd/ovs-vswitchd.c
+++ b/vswitchd/ovs-vswitchd.c
@@ -48,6 +48,7 @@
#include "timeval.h"
#include "unixctl.h"
#include "util.h"
+#include "openvswitch/usdt-probes.h"
#include "openvswitch/vconn.h"
#include "openvswitch/vlog.h"
#include "lib/vswitch-idl.h"
@@ -115,6 +116,7 @@ main(int argc, char *argv[])
exiting = false;
cleanup = false;
while (!exiting) {
+ OVS_USDT_PROBE(main, run_start);
memory_run();
if (memory_should_report()) {
struct simap usage;
@@ -135,6 +137,7 @@ main(int argc, char *argv[])
if (exiting) {
poll_immediate_wake();
}
+ OVS_USDT_PROBE(main, poll_block);
poll_block();
if (should_service_stop()) {
exiting = true;