]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
examples: Use GLib event loop impl in events.stp
authorHan Han <hhan@redhat.com>
Sun, 26 Jul 2020 11:33:12 +0000 (19:33 +0800)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 21 Aug 2020 10:34:23 +0000 (11:34 +0100)
Update the events stap example because the event loop impl is replaced by
GLib based event loop impl after commit 55fe8110.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Han Han <hhan@redhat.com>
examples/systemtap/events.stp

index fd4fe4664de6cb8e2b4c5a1c91e905d2e92d9345..5d64cc4875d08ce3282a899a2959fc96012e2213 100644 (file)
@@ -89,44 +89,33 @@ probe begin {
   print_ts("begin");
 }
 
-probe libvirt.event_poll.add_handle {
+probe libvirt.event_glib.add_handle {
   print_ts(sprintf("%d + handle %d %d %d", pid(), watch, fd, events));
 }
-probe libvirt.event_poll.remove_handle {
+probe libvirt.event_glib.remove_handle {
   print_ts(sprintf("%d - handle %d", pid(), watch));
 }
-probe libvirt.event_poll.update_handle {
+probe libvirt.event_glib.update_handle {
   if (showUpdates)
     print_ts(sprintf("%d * handle %d %d", pid(), watch, events));
 }
-probe libvirt.event_poll.purge_handle {
-  print_ts(sprintf("%d ! handle %d", pid(), watch));
-}
-probe libvirt.event_poll.dispatch_handle {
+probe libvirt.event_glib.dispatch_handle {
   if (showDispatch)
     print_ts(sprintf("%d > handle %d %d", pid(), watch, events));
 }
 
-probe libvirt.event_poll.add_timeout {
+probe libvirt.event_glib.add_timeout {
   print_ts(sprintf("%d + timeout %d %d", pid(), timer, frequency));
 }
-probe libvirt.event_poll.remove_timeout {
+probe libvirt.event_glib.remove_timeout {
   print_ts(sprintf("%d - timeout %d", pid(), timer));
 }
-probe libvirt.event_poll.update_timeout {
+probe libvirt.event_glib.update_timeout {
   if (showUpdates)
     print_ts(sprintf("%d * timeout %d %d", pid(), timer, frequency));
 }
-probe libvirt.event_poll.purge_timeout {
-  print_ts(sprintf("%d ! timeout %d", pid(), timer));
-}
 
-probe libvirt.event_poll.dispatch_timeout {
+probe libvirt.event_glib.dispatch_timeout {
   if (showDispatch)
     print_ts(sprintf("%d > timeout %d", pid(), timer));
 }
-
-probe libvirt.event_poll.run {
-  if (showIter)
-    print_ts(sprintf("%d ~ %d %d", pid(), nfds, timeout));
-}