From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arun Sharma Subject: Re: [PATCH] perf, x86: Disable sanity check Date: Thu, 19 Apr 2012 10:33:32 -0700 Message-ID: <4F904C6C.7020407@fb.com> References: <1334791449-402-1-git-send-email-asharma@fb.com> <20120419052208.GA29875@somewhere.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:59977 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754630Ab2DSRes (ORCPT ); Thu, 19 Apr 2012 13:34:48 -0400 In-Reply-To: <20120419052208.GA29875@somewhere.redhat.com> Sender: linux-perf-users-owner@vger.kernel.org List-ID: To: Frederic Weisbecker Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Arnaldo Carvalho de Melo , Mike Galbraith , Paul Mackerras , Peter Zijlstra , Stephane Eranian , Namhyung Kim , Tom Zanussi , linux-perf-users@vger.kernel.org On 4/18/12 10:22 PM, Frederic Weisbecker wrote: > So rbp is part of the JIT stack but not rsp? > Do you have a practical example of that? I must confess I don't know > much about JIT stack. Nothing specific to JITs here. Any time an app has two stacks S1 and S2 (with S1 at a lower address and S2 at a higher address) and %rsp at the time of a perf event is pointing to S2, we don't get traces beyond S2. | | | | | 0x1000000 | <-- %rbp | | | | S2: 0x2000000 | | <-- %rsp | | | | | | | frame3 | | | | frame2 | | | S1: 0x1000000 | frame1 | | | | | | | | | gdb is able to show: (gdb) bt frame1 frame2 frame3 frame4 .. just fine. In our use case, there may be multiple transitions between S1 and S2. For eg: frame4 could be on S2 (i.e 0x2xxxxxx range). -Arun