From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Gleixner Subject: Re: [PATCHv8 02/34] lib/vdso: make do_hres and do_coarse as __always_inline Date: Fri, 10 Jan 2020 12:42:45 +0100 Message-ID: <878smfa66i.fsf@nanos.tec.linutronix.de> References: <20191112012724.250792-1-dima@arista.com> <20191112012724.250792-3-dima@arista.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Vincenzo Frascino , Dmitry Safonov , linux-kernel@vger.kernel.org Cc: Dmitry Safonov <0x7f454c46@gmail.com>, Andrei Vagin , Adrian Reber , Andrei Vagin , Andy Lutomirski , Arnd Bergmann , Christian Brauner , Cyrill Gorcunov , "Eric W. Biederman" , "H. Peter Anvin" , Ingo Molnar , Jann Horn , Jeff Dike , Oleg Nesterov , Pavel Emelyanov , Shuah Khan , containers@lists.linux-foundation.org, criu@openvz.org, linux-api@vger.kernel.org, x86@kernel.org List-Id: linux-api@vger.kernel.org Vincenzo Frascino writes: > On 11/12/19 1:26 AM, Dmitry Safonov wrote: >> +» » vd·=·&vd[CS_HRES_COARSE]; >> +out_hres: >> +» » return·do_hres(vd,·clock,·ts); >> » }·else·if·(msk·&·VDSO_COARSE)·{ >> » » do_coarse(&vd[CS_HRES_COARSE],·clock,·ts); >> » » return·0; >> » }·else·if·(msk·&·VDSO_RAW)·{ >> -» » return·do_hres(&vd[CS_RAW],·clock,·ts); >> +» » vd·=·&vd[CS_RAW]; >> +» » /*·goto·allows·to·avoid·extra·inlining·of·do_hres.·*/ >> +» » goto·out_hres; > > What is the performance impact of "goto out_hres"? On x86 it's invisible at least in my limited testing. Thanks, tglx