Skip to content

Commit 1c4eab4

Browse files
siwliu-kernelmstsirkin
authored andcommitted
vdpa: add trace event for vhost_vdpa_net_load_mq
For better debuggability and observability. Message-Id: <[email protected]> Reviewed-by: Eugenio Pérez <[email protected]> Signed-off-by: Si-Wei Liu <[email protected]> Reviewed-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent faed744 commit 1c4eab4

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

net/trace-events

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ colo_filter_rewriter_conn_offset(uint32_t offset) ": offset=%u"
2828
vhost_vdpa_set_address_space_id(void *v, unsigned vq_group, unsigned asid_num) "vhost_vdpa: %p vq_group: %u asid: %u"
2929
vhost_vdpa_net_load_cmd(void *s, uint8_t class, uint8_t cmd, int data_num, int data_size) "vdpa state: %p class: %u cmd: %u sg_num: %d size: %d"
3030
vhost_vdpa_net_load_cmd_retval(void *s, uint8_t class, uint8_t cmd, int r) "vdpa state: %p class: %u cmd: %u retval: %d"
31+
vhost_vdpa_net_load_mq(void *s, int ncurqps) "vdpa state: %p current_qpairs: %d"

net/vhost-vdpa.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -939,6 +939,8 @@ static int vhost_vdpa_net_load_mq(VhostVDPAState *s,
939939
return 0;
940940
}
941941

942+
trace_vhost_vdpa_net_load_mq(s, n->curr_queue_pairs);
943+
942944
mq.virtqueue_pairs = cpu_to_le16(n->curr_queue_pairs);
943945
const struct iovec data = {
944946
.iov_base = &mq,

0 commit comments

Comments
 (0)