From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3qzCdS1qvLzDqBW for ; Tue, 3 May 2016 04:34:36 +1000 (AEST) Received: by mail-wm0-x241.google.com with SMTP id n129so29262wmn.1 for ; Mon, 02 May 2016 11:34:36 -0700 (PDT) Sender: Ingo Molnar Date: Mon, 2 May 2016 20:34:29 +0200 From: Ingo Molnar To: Andy Lutomirski Cc: Josh Poimboeuf , Jiri Kosina , Ingo Molnar , X86 ML , Heiko Carstens , "linux-s390@vger.kernel.org" , live-patching@vger.kernel.org, Michael Ellerman , Chris J Arges , linuxppc-dev@lists.ozlabs.org, Jessica Yu , Petr Mladek , Jiri Slaby , Vojtech Pavlik , "linux-kernel@vger.kernel.org" , Miroslav Benes , Peter Zijlstra , =?iso-8859-1?Q?Fr=E9d=E9ric?= Weisbecker Subject: Re: [RFC PATCH v2 05/18] sched: add task flag for preempt IRQ tracking Message-ID: <20160502183429.GB16100@gmail.com> References: <20160429202701.yijrohqdsurdxv2a@treble> <20160429212546.t26mvthtvh7543ff@treble> <20160429224112.kl3jlk7ccvfceg2r@treble> <20160502135243.jkbnonaesv7zfios@treble> <20160502173148.zsg6alhknczzozb5@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , * Andy Lutomirski wrote: > > Another idea to detect missing frames: for each return address on the stack, > > ensure there's a corresponding "call " instruction immediately preceding > > the return location, where matches what's on the stack. > > Hmm, interesting. > > I hope your plans include rewriting the current stack unwinder completely. The > thing in print_context_stack is (a) hard-to-understand and hard-to-modify crap > and (b) is called in a loop from another file using totally ridiculous > conventions. So we had several attempts at making it better, any further improvements (including radical rewrites) are more than welcome! The generalization between the various stack walking methods certainly didn't make things easier to read - we might want to eliminate that by using better primitives to iterate over the stack frame. Thanks, Ingo