This trivial series of patches gives names to all the GSource instances that QEMU creates. These names are useful when debugging QEMU main loop problems, as they are emitted with GLib's built-in userspace probes for event loop dispatch.
NB, all QEMU level AIO handlers and IO handlers get hidden behind 2 global GSource objects, which means data from those 2 GSource's is not particularly useful. Mostly this series helps with anything backed by a QIOChannel object, and a few other misc bits of the chardev code. Addressing AIO problems requires giving names to the QEMU level objects associated with these, which I'm not attempting - I just wanted to fix the GSource stuff used with QIOChannel here. I'll leave it to Prashanth to look at naming of the QEMU specific event loop sources. Daniel P. Berrange (6): io: add ability to set a name for IO channels nbd: set name for all I/O channels created char: set name for all I/O channels created migration: set name for all I/O channels created vnc: set name for all I/O channels created main: set names for main loop sources created block/nbd.c | 1 + blockdev-nbd.c | 3 ++ include/io/channel.h | 13 +++++++++ io/channel.c | 24 ++++++++++++---- main-loop.c | 2 ++ migration/exec.c | 2 ++ migration/fd.c | 2 ++ migration/migration.c | 1 + migration/savevm.c | 3 ++ migration/socket.c | 5 ++++ migration/tls.c | 2 ++ nbd/client.c | 1 + nbd/server.c | 1 + qemu-char.c | 77 +++++++++++++++++++++++++++++++++++++++++++++----- ui/vnc-auth-vencrypt.c | 1 + ui/vnc-ws.c | 3 ++ ui/vnc.c | 7 +++++ 17 files changed, 136 insertions(+), 12 deletions(-) -- 2.7.4