#!/usr/bin/stap

probe libvirt.daemon.client.connect {
      printf("Client fd=%d connected readonly=%d addr=%s\n", fd, readonly, addr);
}
probe libvirt.daemon.client.disconnect {
      printf("Client fd=%d disconnected addr=%s\n", fd, addr);
}

probe libvirt.daemon.client.tls_allow {
      printf("Client fd=%d tls allow %s\n", fd, x509dname);
}
probe libvirt.daemon.client.tls_deny {
      printf("Client fd=%d tls deny %s\n", fd, x509dname);
}
probe libvirt.daemon.client.tls_fail {
      printf("Client fd=%d tls fail\n", fd);
}

probe libvirt.daemon.client.auth_allow {
      printf("Client fd=%d auth %s allow %s\n", fd, authname, identity);
}
probe libvirt.daemon.client.auth_deny {
      printf("Client fd=%d auth %s deny %s\n", fd, authname, identity);
}
probe libvirt.daemon.client.auth_fail {
      printf("Client fd=%d auth %s fail\n", fd, authname);
}
