From: "Jan Beulich" Subject: Re: [Patch v4 1/4] x86/stack: Refactor show_trace() Date: Wed, 20 Nov 2013 14:22:50 +0000 Message-ID: <528CD3CA020000780010514D@nat28.tlf.novell.com> References: <1384952982-1490-1-git-send-email-andrew.cooper3@citrix.com> <1384952982-1490-2-git-send-email-andrew.cooper3@citrix.com> <528CC9C902000078001050CF@nat28.tlf.novell.com> <528CC306.1090108@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Vj8gB-0003xD-61 for xen-devel@lists.xenproject.org; Wed, 20 Nov 2013 14:22:55 +0000 In-Reply-To: <528CC306.1090108@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: xen-devel , Tim Deegan List-Id: xen-devel@lists.xenproject.org >>> On 20.11.13 at 15:11, Andrew Cooper wrote: > I am not so certain about changing the _show_trace() prototype. The > naive algorithm wants everything as pointers, while the frame-pointer > algorithm wants everything as integers. Switching to passing by pointer > would require an equal amount of ugly casting back to an integer for > get_printable_stack_bottom() etc. > > Personally I would prefer to keep as integers to be in line with the > registers; I think it looks more natural to take sp as a resister value > and cast it to a pointer to look at the stack, than passing around a > pointer and casting it to an integer for bounds. Fine with me, this was just a suggestion. Jan