From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759606AbaJDATD (ORCPT ); Fri, 3 Oct 2014 20:19:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54287 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756149AbaJCVox (ORCPT ); Fri, 3 Oct 2014 17:44:53 -0400 Date: Fri, 3 Oct 2014 23:41:24 +0200 From: Oleg Nesterov To: Chuck Ebbert Cc: Sasha Levin , mingo@kernel.org, hpa@zytor.com, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, peterz@infradead.org, luto@amacapital.net, dvlasenk@redhat.com, tglx@linutronix.de Subject: Re: [tip:x86/asm] x86: Speed up ___preempt_schedule*() by using THUNK helpers Message-ID: <20141003214124.GA31614@redhat.com> References: <20140921184153.GA23727@redhat.com> <542E2B05.5080607@oracle.com> <20141003083954.10a13a24@as> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141003083954.10a13a24@as> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/03, Chuck Ebbert wrote: > > > [ 921.917752] ? ___preempt_schedule_context (arch/x86/lib/thunk_64.S:44) > > [ 921.917752] ? preempt_schedule_context (kernel/context_tracking.c:145) > > [ 921.917752] ? ___preempt_schedule_context (arch/x86/lib/thunk_64.S:44) > > [ 921.917752] ? preempt_schedule_context (kernel/context_tracking.c:145) > > [ 921.917752] ? ___preempt_schedule_context (arch/x86/lib/thunk_64.S:44) > > [ 921.917752] ? preempt_schedule_context (kernel/context_tracking.c:145) > > [ 921.917752] ? ___preempt_schedule_context (arch/x86/lib/thunk_64.S:44) > > [ 921.917752] ? preempt_schedule_context (kernel/context_tracking.c:145) > > [ 921.917752] ? ___preempt_schedule_context (arch/x86/lib/thunk_64.S:44) > > [ 921.917752] ? preempt_schedule_context (kernel/context_tracking.c:145) > > > > I *think* this is because RBP isn't being saved across task switch > anymore? > > Without CONFIG_FRAME_POINTERS that night not be a problem... Could you please spell? I don't even understand "RBP isn't being saved", SAVE_CONTEXT/RESTORE_CONTEXT do push/pop %rbp? Thanks, Oleg.