On Thu, Oct 13, 2016 at 05:06:00PM +0200, Julien Charbon wrote: > >> will give you that trace in the core, and without INVARIANT then it is > >> better to use dtrace: > >> > >> $ cat tcp-twstart-dropped.d > >> fbt::tcp_twstart:entry > >> /args[0]->t_inpcb->inp_flags & 0x04000000/ > >> { > >> stack(); > >> printf("INP_DROPPED in tcp_twstart: %x", args[0]->t_inpcb->inp_flags); > >> } > > > > Same code may be insert there too, IMHO. > > Hmm, I don't think so: > > - If you have INVARIANT, the kernel will panic in tcp_twstart() or > tcp_detach() and you will have everything you need to debug. > - If you don't, dtrace is the right tool to use in all cases anyway.
dtrace don't executed in may case w/ diagnostic "dtrace: processing aborted: Abort due to systemic unresponsiveness". This is for tcp_close. May be tcp_twstart will be more successuful, may be not. Also, using dtrace too complex in production (need complex startup under screen and capture output) and for many peoples. kdb_backtrace() have too less administrative overhead. _______________________________________________ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"