]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
kdump: decode pollfd struct arrays coming from poll(2)
authorKyle Evans <kevans@FreeBSD.org>
Tue, 5 Mar 2024 04:14:06 +0000 (22:14 -0600)
committerKyle Evans <kevans@FreeBSD.org>
Tue, 5 Mar 2024 05:44:09 +0000 (23:44 -0600)
commit02c57f7b48772c5ec4e3a0a3405273b387b9bb08
treefa50faa5ca0424a610efb67dc13ad823113300f2
parentbd23e71f91ceec5dfdffc28bbd0020849fdd20b4
kdump: decode pollfd struct arrays coming from poll(2)

We'll handle these just as we do kevents, one per line with subsequent
lines indented sufficiently to distinguish them from the upcoming
return value.

Sample, with indentation stripped and revents changed to '...' in the
first one to keep the line length down:

CALL  poll(0x820610560,0x3,0)
STRU  struct pollfd[] = { { fd=0, events=0x1<POLLIN>, revents=0x11<...>
 { fd=1, events=0x4<POLLOUT>, revents=0x4<POLLOUT>}
 { fd=-1, events=0x4<POLLOUT>, revents=0} }
RET   poll 2

Reviewed by: bapt, jhb
Differential Revision: https://reviews.freebsd.org/D44160
usr.bin/kdump/kdump.c