On 2021-12-17, Vladimir Nikishkin <lockyw...@gmail.com> wrote: > 78429 ifconfig 1639744429.761947 CALL ioctl(3,SIOCSIFFLAGS,0x7f7ffffbda80) > 78429 ifconfig 1639744660.684179 RET ioctl 0 > ``` > > I have no idea what this means, to be honest. > ioctl(3,SIOCSIFFLAGS,0x7f7ffffbda80) seems to be the one running for > 231 second.
Yes. > I looked at the code of if_vio.c, and it seems to be taking time at > calling vio_init (as there is not much more in this ioctl), however, I > do not know much about debugging kernel drivers, so suggestions welcome >:). > > Is there a way to recompile it with profiling/tracing information, or > maybe just putting printfs manually around the most interesting lines > would be more productive? Adding printf is pretty much perfect for this. General compile steps: cd /sys/arch/amd64/compile/GENERIC.MP make obj make config make sudo make install Recommend you save a known-good kernel e.g. in /bsd.ok, so you can"boot bsd.ok" at the boot loader prompt if you need it.