From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp33.i.mail.ru (smtp33.i.mail.ru [94.100.177.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id A05CF469719 for ; Tue, 29 Sep 2020 12:15:36 +0300 (MSK) Date: Tue, 29 Sep 2020 12:15:35 +0300 From: Sergey Ostanevich Message-ID: <20200929091535.GB35@tarantool.org> References: <12d3cc3577e45946a82c8d23b69508a4c5653346.1600862684.git.imun@tarantool.org> <20200928130658.GQ18920@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200928130658.GQ18920@tarantool.org> Subject: Re: [Tarantool-patches] [PATCH v2 1/2] fiber: introduce a callback for fibers switch-over List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Munkin Cc: tarantool-patches@dev.tarantool.org, Vladislav Shpilevoy Hi! Thanks for the patch, LGTM. Sergos On 28 сен 16:06, Igor Munkin wrote: > Sergos, > > Thanks for your review! > > On 24.09.20, sergos@tarantool.org wrote: > > Hi! > > > > Thank you for the patch, see my single comment below. > > > > Regards, > > Sergos > > > > > On 23 Sep 2020, at 22:06, Igor Munkin wrote: > > > > > > > > > > > > diff --git a/src/lib/core/fiber.c b/src/lib/core/fiber.c > > > index 483ae3ce1..1b7d255ff 100644 > > > --- a/src/lib/core/fiber.c > > > +++ b/src/lib/core/fiber.c > > > @@ -46,6 +46,8 @@ > > > #if ENABLE_FIBER_TOP > > > #include /* __rdtscp() */ > > > > > > > > +extern void cord_on_yield(void); > > > + > > > > The definition is under ENABLE_FIBER_TOP, while its use isn’t. > > The build will fail for ARM target for exmaple. > > AFAICS the changes are not releveant to the fiber top in any way. > > Crap... Thanks for noticing! Fixed: > > ================================================================================ > > diff --git a/src/lib/core/fiber.c b/src/lib/core/fiber.c > index 1b7d255..223c841 100644 > --- a/src/lib/core/fiber.c > +++ b/src/lib/core/fiber.c > @@ -43,11 +43,11 @@ > #include "trigger.h" > #include "errinj.h" > > +extern void cord_on_yield(void); > + > #if ENABLE_FIBER_TOP > #include /* __rdtscp() */ > > -extern void cord_on_yield(void); > - > static inline void > clock_stat_add_delta(struct clock_stat *stat, uint64_t clock_delta) > { > > ================================================================================ > > Side note: I guess we have to reprioritize ARM testing issue[1]. > > > > > > static inline void > > > clock_stat_add_delta(struct clock_stat *stat, uint64_t clock_delta) > > > { > > > > > > > > > > [1]: https://github.com/tarantool/tarantool/issues/4270 > > -- > Best regards, > IM