-
Notifications
You must be signed in to change notification settings - Fork 29
Add DTrace script to monitor viona activity #1009
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
4a236a1 to
75373e0
Compare
75373e0 to
36c0c19
Compare
dancrossnyc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've been using this quite a bit for some time to debug the multiqueue implementation as we've been developing it. It's been very valuable, and works well.
iximeow
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! noticed a few things, but clearly this is useful as-is.
| } | ||
|
|
||
| viona_ioctl:entry/arg1 == VNA_IOC_GET_FEATURES/ { | ||
| self->pending = arg1;; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| self->pending = arg1;; | |
| self->pending = arg1; |
| viona_ioctl:return/self->pending == VNA_IOC_INTR_POLL_MQ/ { | ||
| self->pending = 0; | ||
| intrp = (vioc_intr_poll_mq_t *)copyin(self->dptr, | ||
| sizeof (vioc_intr_poll_mq_t)); | ||
| printf("INTR_POLL %x set (0x%08x)\n", *self->rvp, | ||
| intrp->vipm_status[0]); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the return code for VNA_IOC_INTR_POLL_MQ interesting? we've not set self->cmd so the blanket viona_ioctl/self->cmd && arg1/ at the bottom wouldn't say anything.
| viona_ioctl:return/self->cmd != 0 && arg1 != 0/ { | ||
| printf("ioctl(%s) returning 0x%x\n", self->cmd, arg1); | ||
| self->cmd = 0; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might be interesting to print errno if arg1 == -1 yeah? presumably you have not had to care about that in working on multiqueue :)
No description provided.