Received: by 10.192.165.156 with SMTP id m28csp1517864imm; Wed, 18 Apr 2018 10:55:11 -0700 (PDT) X-Google-Smtp-Source: AIpwx48dfbyKdWuVhZMKzgqp7BgbTy8c11G+ETsNDV1CZqtasjt00EAcDniCf9PorzeGvXAGtWHw X-Received: by 10.99.115.9 with SMTP id o9mr2488647pgc.332.1524074111267; Wed, 18 Apr 2018 10:55:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524074111; cv=none; d=google.com; s=arc-20160816; b=yVZne1fUHgFFJQnieTff8vXJEkauFMnft9X2DyKRXcAR41xqs5a+x/LcmSzfbqDhQY KUUlulNgnDUijxQXx1qHGdG5y5clhKUeUuMf++cadtY6xH9CO4rkQBT9XdxHW/48eMv3 B5bmDJu+U6lI3XID/f7MQwM1ipBrz3WVUfsOXtgytcy/mT+VFf3Z5x/OPIXOtzbt4T5G drW+oFpo+q4gSjxmnxszQGQRtxrbW+mLQ5m/AQKoHrJXnpOMVE81QZMhsYGVMWD8Dg2W 1sMNiUmzYidfQQ26BtaN355NkctptYoMhN/5aZ66qmH5w4Ar/VzZYshR3tUZzMNib4XV 9Lfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:arc-authentication-results; bh=OcrK2azJw4ummIUXJWpNblGJF87IuFpW9vd/eUS6OJI=; b=FMkZ3lBdmV/9wcxH0BxNnv5DBnBmLcSbgTHv6msCBT88pxaEKSPIxfxYb23IO7ukZb khfNzYOG0BD7aVmqasERpSnC356SNejIQsNGmuOHahfNBIS88jNEwjCIF8kG7+HDLeEL 2GPy8tvsXWBu3WEg9QHibWZStJTdBUM167/2pmMRhlq1uWYltunHtGUkP9Je5wzdO/6n jsKeAk9MYwUdIDxCgazjt2IuKhrvNu5J3sX3qXUyC/kkairM+/LEMjt014I34QtA7vsd OYw/Edr5BxiisZees+Wb39xn7sxQLzg790A+e+A4rPuUgDukI4x7GxkcaSvr523H7VEt /QdQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s4-v6si1591218plp.266.2018.04.18.10.54.56; Wed, 18 Apr 2018 10:55:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752762AbeDRRxr (ORCPT + 99 others); Wed, 18 Apr 2018 13:53:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:53100 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751692AbeDRRxq (ORCPT ); Wed, 18 Apr 2018 13:53:46 -0400 Received: from jouet.infradead.org (unknown [190.15.121.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C648420779; Wed, 18 Apr 2018 17:53:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C648420779 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=acme@kernel.org Received: by jouet.infradead.org (Postfix, from userid 1000) id 674A81450E7; Wed, 18 Apr 2018 14:53:43 -0300 (-03) Date: Wed, 18 Apr 2018 14:53:43 -0300 From: Arnaldo Carvalho de Melo To: Ravi Bangoria , Sandipan Das Cc: jolsa@redhat.com, linux-kernel@vger.kernel.org, naveen.n.rao@linux.vnet.ibm.com, sukadev@linux.vnet.ibm.com, maynard@us.ibm.com Subject: Re: [PATCH v2 0/3] perf: Fixes for callchain ip handling on powerpc Message-ID: <20180418175343.GB22762@kernel.org> References: <20180418105900.5899-1-sandipan@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180418105900.5899-1-sandipan@linux.vnet.ibm.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, Apr 18, 2018 at 04:28:57PM +0530, Sandipan Das escreveu: > The first patch fixes the callchain ip filtering mechanism for powerpc > from skipping entries in case the LR value is still valid and yet to > be written to the stack frame. This was previously posted as an RFC > here: https://lkml.org/lkml/2018/4/4/633 > > The second patch fixes a crash caused by attempting to access an empty > callchain. > > The third patch fixes a shell test which used to fail on powerpc as > the back trace from perf output did not match the expected pattern. > Also, because of the issue described in the first patch, some entries > from the callchain were incorrectly skipped. So, this has also been > readjusted to work with the fix in the first patch. > v2: > - Consider case when return address is in R0 as pointed out by Ravi. > - Add another patch to fix crash when callchain is empty. Ravi, can you please take a look at these? The other two patches too, please? - Arnaldo