Date: Wed, 24 Oct 2018 11:48:40 -0400 From: Ryan Stone <rysto32@gmail.com> To: lev@freebsd.org Cc: freebsd-hackers@freebsd.org, Conrad Meyer <cse.cem@gmail.com>, Alan Somers <asomers@freebsd.org> Subject: Re: What is wrong with dtrace's stack()? Message-ID: <CAFMmRNxbu=V6F9LW_6oWeQzws%2B1-UhETC%2BWWGMFGKAoH-5Ajjw@mail.gmail.com> In-Reply-To: <168122586.20181024003412@serebryakov.spb.ru> References: <170994671.20181021201021@serebryakov.spb.ru> <CAG6CVpVCe-8OVU%2BKEyAh8swFSAjRshNcNLN0tjAS3W8bZxyrTA@mail.gmail.com> <475670271.20181022003734@serebryakov.spb.ru> <CAOtMX2goztCYJXM72WNR711DEBEKAGk1zFHF=NpE4UiVAF2bAQ@mail.gmail.com> <234d745d-37a9-9610-15b9-0f5cd5af21bf@FreeBSD.org> <b30f2080-1037-1752-60fb-6d22e28ce90d@FreeBSD.org> <CAFMmRNz35Ay82NcMnUkSAvpyU5p2m9ykiji1xXcbEanH9A2H%2Bw@mail.gmail.com> <168122586.20181024003412@serebryakov.spb.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
sosend_generic+0x112c is the return address, so it's one instruction after the call instruction that called lock_delay. What's the line number of sosend_generic+0x112b? On Tue, Oct 23, 2018 at 5:34 PM Lev Serebryakov <lev@freebsd.org> wrote: > > Hello Ryan, > > Monday, October 22, 2018, 11:50:29 PM, you wrote: > > > Adding -fno-optimize-sibling-calls to the compiler flags will eliminate the TCO. > Stacks are better but still strange. For example I have such stack (which I > like better than previous): > > kernel`lock_delay+0x72 > kernel`sosend_generic+0x112c > kernel`sosend+0x79 > kernel`soo_write+0x6b > kernel`fo_write+0x4a > kernel`dofilewrite+0xcd > kernel`kern_writev+0x79 > kernel`sys_write+0x8f > kernel`syscallenter+0x774 > kernel`amd64_syscall+0x1b > kernel`0xffffffff80cebf6d > > According to addr2line `sosend_generic+0x112c' is > > https://svnweb.freebsd.org/base/head/sys/kern/uipc_socket.c?revision=339419&view=markup#l1579 > > Which is call to protocol-specific send function. Where is this function > (it should be tcp for sure)?! > > -- > Best regards, > Lev mailto:lev@FreeBSD.org >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFMmRNxbu=V6F9LW_6oWeQzws%2B1-UhETC%2BWWGMFGKAoH-5Ajjw>