Last active
August 9, 2016 05:30
-
-
Save groundwater/c0fda11aeb037cbde9b80f295c8935d0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct kevent { | |
uintptr_t ident; /* identifier for this event */ | |
int16_t filter; /* filter for event */ | |
uint16_t flags; /* general flags */ | |
uint32_t fflags; /* filter-specific flags */ | |
intptr_t data; /* filter-specific data */ | |
void *udata; /* opaque user data identifier */ | |
} kevent; | |
::kevent:entry | |
/pid == $target && arg3 != NULL/ | |
{ | |
k = arg3; | |
} | |
::kevent:return | |
/pid == $target && k != NULL/ | |
{ | |
x = (struct kevent *) copyin(k, sizeof(kevent)); | |
printf("FD: %d, Size: %d, Flags: %d, PTR: %d", x->ident, x->data, x->flags, x->filter); | |
k = NULL; | |
} | |
/* | |
::kevent:entry | |
/pid == $target && arg1 != NULL/ | |
{ | |
x = (struct kevent *) copyin(arg1, sizeof(kevent)); | |
printf("> Sock: %d, Flags: %d", x->ident, x->flags); | |
} | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment