1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-26 03:21:44 +03:00
libvirt/daemon
Daniel P. Berrange 968eb4e5cd Add dtrace static probes in libvirtd
Adds initial support for dtrace static probes in libvirtd
daemon, assuming use of systemtap dtrace compat shim on
Linux. The probes are inserted for network client connect,
disconnect, TLS handshake states and authentication protocol
states.

This can be tested by running the xample program and then
attempting to connect with any libvirt client (virsh,
virt-manager, etc).

 # stap examples/systemtap/client.stp
  Client fd=44 connected readonly=0
  Client fd=44 auth polkit deny pid:24997,uid:500
  Client fd=44 disconnected
  Client fd=46 connected readonly=1
  Client fd=46 auth sasl allow test
  Client fd=46 disconnected

The libvirtd.stp file should also really not be required,
since it is duplicated info that is already available in
the main probes.d definition file. A script to autogenerate
the .stp file is needed, either in libvirtd tree, or better
as part of systemtap itself.

* Makefile.am: Add examples/systemtap subdir
* autobuild.sh: Disable dtrace for mingw32
* configure.ac: Add check for dtrace
* daemon/.gitignore: Ignore generated dtrace probe file
* daemon/Makefile.am: Build dtrace probe header & object
  files
* daemon/libvirtd.stp: SystemTAP convenience probeset
* daemon/libvirtd.c: Add connect/disconnect & TLS probes
* daemon/remote.c: Add SASL and PolicyKit auth probes
* daemon/probes.d: Master probe definition
* daemon/libvirtd.h: Add convenience macro for probes
  so that compilation is a no-op when dtrace is not available
* examples/systemtap/Makefile.am, examples/systemtap/client.stp
  Example systemtap script using dtrace probe markers
* libvirt.spec.in: Enable dtrace on F13/RHEL6
* mingw32-libvirt.spec.in: Force disable dtrace
2010-10-22 12:00:39 +01:00
..
.gitignore Add dtrace static probes in libvirtd 2010-10-22 12:00:39 +01:00
dispatch.c Try harder to send RPC error message back to client 2010-08-24 14:19:05 +01:00
dispatch.h Remote driver & daemon impl of new event API 2010-03-26 13:52:29 +00:00
event.c util: ensure safe{read,write,zero} return is checked 2010-04-15 11:40:08 -06:00
event.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
libvirtd.aug Basic framework for auditing integration 2010-10-19 17:31:31 +01:00
libvirtd.c Add dtrace static probes in libvirtd 2010-10-22 12:00:39 +01:00
libvirtd.conf Basic framework for auditing integration 2010-10-19 17:31:31 +01:00
libvirtd.h Add dtrace static probes in libvirtd 2010-10-22 12:00:39 +01:00
libvirtd.init.in daemon: Export SDL audio environment variables 2010-05-21 12:48:34 -04:00
libvirtd.lxc.logrotate.in Change logrotate to be per-hypervisor logs 2010-03-10 11:27:02 +01:00
libvirtd.pod.in man pages: update authors and copyright notice for libvirtd and virsh 2010-07-17 04:51:01 +10:00
libvirtd.policy-0 Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
libvirtd.policy-1 Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
libvirtd.qemu.logrotate.in Change logrotate to be per-hypervisor logs 2010-03-10 11:27:02 +01:00
libvirtd.sasl Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
libvirtd.stp Add dtrace static probes in libvirtd 2010-10-22 12:00:39 +01:00
libvirtd.sysconf daemon: sysconf: Update comment about VNC audio 2010-05-26 10:51:36 -04:00
libvirtd.uml.logrotate.in Change logrotate to be per-hypervisor logs 2010-03-10 11:27:02 +01:00
Makefile.am Add dtrace static probes in libvirtd 2010-10-22 12:00:39 +01:00
mdns.c Rename daemon main code 2009-09-21 14:41:45 +01:00
mdns.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
probes.d Add dtrace static probes in libvirtd 2010-10-22 12:00:39 +01:00
qemu_dispatch_args.h Qemu remote protocol. 2010-07-23 17:30:33 -04:00
qemu_dispatch_prototypes.h Qemu remote protocol. 2010-07-23 17:30:33 -04:00
qemu_dispatch_ret.h Qemu remote protocol. 2010-07-23 17:30:33 -04:00
qemu_dispatch_table.h Qemu remote protocol. 2010-07-23 17:30:33 -04:00
remote_dispatch_args.h vcpu: implement the remote protocol 2010-10-19 10:02:33 -06:00
remote_dispatch_prototypes.h vcpu: implement the remote protocol 2010-10-19 10:02:33 -06:00
remote_dispatch_ret.h vcpu: implement the remote protocol 2010-10-19 10:02:33 -06:00
remote_dispatch_table.h vcpu: implement the remote protocol 2010-10-19 10:02:33 -06:00
remote_generate_stubs.pl Qemu remote protocol. 2010-07-23 17:30:33 -04:00
remote.c Add dtrace static probes in libvirtd 2010-10-22 12:00:39 +01:00
remote.h Ensure remote daemon unions are always non-zero length 2010-09-10 11:14:51 +01:00
stream.c Let remoteClientStream only do RX if requested. 2009-09-30 14:05:41 +02:00
stream.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
test_libvirtd.aug Basic framework for auditing integration 2010-10-19 17:31:31 +01:00
THREADING.txt Move libvirtd event loop into background thread 2009-11-03 14:45:43 -05:00