Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107379012
D31620.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D31620.diff
View Options
diff --git a/sys/dev/virtio/virtqueue.c b/sys/dev/virtio/virtqueue.c
--- a/sys/dev/virtio/virtqueue.c
+++ b/sys/dev/virtio/virtqueue.c
@@ -38,6 +38,7 @@
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
+#include <sys/sdt.h>
#include <sys/sglist.h>
#include <vm/vm.h>
#include <vm/pmap.h>
@@ -137,6 +138,11 @@
static void vq_ring_notify_host(struct virtqueue *);
static void vq_ring_free_chain(struct virtqueue *, uint16_t);
+SDT_PROVIDER_DEFINE(virtqueue);
+SDT_PROBE_DEFINE6(virtqueue, , enqueue_segments, entry, "struct virtqueue *",
+ "struct vring_desc *", "uint16_t", "struct sglist *", "int", "int");
+SDT_PROBE_DEFINE1(virtqueue, , enqueue_segments, return, "uint16_t");
+
#define vq_modern(_vq) (((_vq)->vq_flags & VIRTQUEUE_FLAG_MODERN) != 0)
#define vq_htog16(_vq, _val) virtio_htog16(vq_modern(_vq), _val)
#define vq_htog32(_vq, _val) virtio_htog32(vq_modern(_vq), _val)
@@ -703,6 +709,9 @@
int i, needed;
uint16_t idx;
+ SDT_PROBE6(virtqueue, , enqueue_segments, entry, vq, desc, head_idx,
+ sg, readable, writable);
+
needed = readable + writable;
for (i = 0, idx = head_idx, seg = sg->sg_segs;
@@ -722,6 +731,7 @@
dp->flags |= vq_gtoh16(vq, VRING_DESC_F_WRITE);
}
+ SDT_PROBE1(virtqueue, , enqueue_segments, return, idx);
return (idx);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 14, 7:37 AM (21 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15792339
Default Alt Text
D31620.diff (1 KB)
Attached To
Mode
D31620: Add SDT probes virtqueue::enqueue_segments:{entry,return}
Attached
Detach File
Event Timeline
Log In to Comment