libvirt/src/libvirt_qemu_probes.d
Daniel P. Berrange a4e45a06c0 Split QEMU dtrace probes into separate file
When building as driver modules, it is not possible for the QEMU
driver module to reference the DTrace/SystemTAP probes linked into
the main libvirt.so. Thus we need to move the QEMU probes into a
separate file 'libvirt_qemu_probes.d'. Also rename the existing
file from 'probes.d' to 'libvirt_probes.d' while we're at it

* daemon/Makefile.am, src/internal.h: Include libvirt_probes.h
  instead of probes.h
* src/Makefile.am: Add rules for libvirt_qemu_probes.d
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor_json.c,
  src/qemu/qemu_monitor_text.c: Include libvirt_qemu_probes.h
* src/libvirt_probes.d: Rename from probes.d
* src/libvirt_qemu_probes.d: QEMU specific probes formerly
  in probes.d

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2012-05-24 13:18:01 +01:00

22 lines
1.0 KiB
D

provider libvirt {
# file: src/qemu/qemu_monitor.c
# prefix: qemu
# binary: libvirtd
# Monitor lifecycle
probe qemu_monitor_new(void *mon, int refs, int fd);
probe qemu_monitor_ref(void *mon, int refs);
probe qemu_monitor_unref(void *mon, int refs);
probe qemu_monitor_close(void *monm, int refs);
# High level monitor message processing
probe qemu_monitor_send_msg(void *mon, const char *msg, int fd);
probe qemu_monitor_recv_reply(void *mon, const char *reply);
probe qemu_monitor_recv_event(void *mon, const char *event);
# Low level monitor I/O processing
probe qemu_monitor_io_process(void *mon, const char *buf, unsigned int len);
probe qemu_monitor_io_read(void *mon, const char *buf, unsigned int len, int ret, int errno);
probe qemu_monitor_io_write(void *mon, const char *buf, unsigned int len, int ret, int errno);
probe qemu_monitor_io_send_fd(void *mon, int fd, int ret, int errno);
};