Revision 49e3fdd7 hw/virtio-serial-bus.c

b/hw/virtio-serial-bus.c
19 19
#include "monitor.h"
20 20
#include "qemu-queue.h"
21 21
#include "sysbus.h"
22
#include "trace.h"
22 23
#include "virtio-serial.h"
23 24

  
24 25
/* The virtio-serial bus on top of which the ports will ride as devices */
......
221 222
    stw_p(&cpkt.event, event);
222 223
    stw_p(&cpkt.value, value);
223 224

  
225
    trace_virtio_serial_send_control_event(port->id, event, value);
224 226
    return send_control_msg(port, &cpkt, sizeof(cpkt));
225 227
}
226 228

  
......
302 304
        return;
303 305
    }
304 306

  
307
    trace_virtio_serial_throttle_port(port->id, throttle);
305 308
    port->throttled = throttle;
306 309
    if (throttle) {
307 310
        return;
......
328 331
    cpkt.event = lduw_p(&gcpkt->event);
329 332
    cpkt.value = lduw_p(&gcpkt->value);
330 333

  
334
    trace_virtio_serial_handle_control_message(cpkt.event, cpkt.value);
335

  
331 336
    if (cpkt.event == VIRTIO_CONSOLE_DEVICE_READY) {
332 337
        if (!cpkt.value) {
333 338
            error_report("virtio-serial-bus: Guest failure in adding device %s",
......
351 356
        return;
352 357
    }
353 358

  
359
    trace_virtio_serial_handle_control_message_port(port->id);
360

  
354 361
    info = DO_UPCAST(VirtIOSerialPortInfo, qdev, port->dev.info);
355 362

  
356 363
    switch(cpkt.event) {

Also available in: Unified diff