From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752423AbcHNIpr (ORCPT ); Sun, 14 Aug 2016 04:45:47 -0400 Received: from mail-ua0-f177.google.com ([209.85.217.177]:34018 "EHLO mail-ua0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750955AbcHNIpo (ORCPT ); Sun, 14 Aug 2016 04:45:44 -0400 MIME-Version: 1.0 In-Reply-To: References: From: Andy Lutomirski Date: Sun, 14 Aug 2016 01:13:54 -0700 Message-ID: Subject: Re: [PATCH v3 39/51] x86/dumpstack: convert show_trace_log_lvl() to use the new unwinder To: Josh Poimboeuf Cc: Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , X86 ML , "linux-kernel@vger.kernel.org" , Linus Torvalds , Steven Rostedt , Brian Gerst , Kees Cook , Peter Zijlstra , Frederic Weisbecker , Byungchul Park , Nilay Vaish Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 12, 2016 at 7:28 AM, Josh Poimboeuf wrote: > Convert show_trace_log_lvl() to use the new unwinder. dump_trace() has > been deprecated. > > Another change here is that callers of show_trace_log_lvl() don't need > to provide the 'bp' argument. The unwinder already finds the relevant > frame pointer by unwinding until it reaches the first frame after the > provided stack pointer. I still think that the best long-term solution is to change the sp and bp arguments to an optional state argument and to add a helper to capture the current state for future unwinding, but this is okay too. (If nothing else, this may improve DWARF's ability to recover function arguments and such that are available when the trace is requested but that are gone by the time the unwinder runs. But mainly because it seems simpler and more direct to me and therefore seems like it will be less likely to get confused and skip too many frames.) But I'm okay with this for now. --Andy