Received: by 10.192.165.156 with SMTP id m28csp1087161imm; Wed, 18 Apr 2018 04:00:41 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+y706IecKpDgiX9L4y/Td9DoCfa5Yu2AAoVO+3oz/zRpcEU6rAYC/4v/5BOK12BjfzV+Fa X-Received: by 2002:a17:902:f83:: with SMTP id 3-v6mr1636402plz.336.1524049241796; Wed, 18 Apr 2018 04:00:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524049241; cv=none; d=google.com; s=arc-20160816; b=Eo0Y/m4epb37vR5M+knwfndYHohJWYzkbJyjvJF2xtgI7hfs8JPhZkuLaUO3QiiHTl y9FY/fZhpsXVTHEYVSc/TosfjXzgBEKsKKHmWi3UIVTF+vtwXlPUr+Z8TmVNhCjMcVBC e3LFjhHmSjqChHspluDCJMlGrPbuM648p0BPU4pLvUR/jVqEVQ6jTFpsJzB7QWUKwdu7 rK36Xu1vdSOCdxYDDEQv8bozk24sDUU3zq6xHjTm717/JkjiqPUffUfIaFuLIzMmean1 HOadYiOXNJ/NYU8lAgP5dUnfudKmoA4rlrIugsajWCbiRiQ9SlcERNlJOEaqdZWWHfHW C66w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=9y5xlaavnGXBahiEIGEqA84O/otsKxEGoJsWlyIqti8=; b=UlaS20nM/muMl8u1ucOy2s3miDQ5dg0yc4yoSQXCu1tIDkgZNaw+AznkeYloqUiCQP wdSLtImignLohTZVR9XTGlc4xk6aKpaUu5Ffod0U3+TbUESGdY7OrY7t32citK4pRN6x aPmyDzAAFBTPjJeuD/E9y6nIHEU1llwI/FKO/gUueuPLunenztcRlYOfSW98BEoQ63zh BcQsLnMJp1o636fzYEydLYrmuduv6L+F1LJzbe4GT6MoDBuAfOrWbHv0Kwaeb0cX8CWT O2i1bZTgGY512gNupKC8KuW6WztqSl/ynXmMgjGQSxsFLHe3J+8QZD9kjRIhDJAlc21A 0/AA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a10si873822pgn.636.2018.04.18.04.00.27; Wed, 18 Apr 2018 04:00:41 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753170AbeDRK7I (ORCPT + 99 others); Wed, 18 Apr 2018 06:59:08 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:50912 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751940AbeDRK7H (ORCPT ); Wed, 18 Apr 2018 06:59:07 -0400 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3IAoCB1036771 for ; Wed, 18 Apr 2018 06:59:06 -0400 Received: from e06smtp13.uk.ibm.com (e06smtp13.uk.ibm.com [195.75.94.109]) by mx0b-001b2d01.pphosted.com with ESMTP id 2he21nr7r8-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Wed, 18 Apr 2018 06:59:06 -0400 Received: from localhost by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 18 Apr 2018 11:59:05 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp13.uk.ibm.com (192.168.101.143) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 18 Apr 2018 11:59:03 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w3IAx3u443057194; Wed, 18 Apr 2018 10:59:03 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B7FCD4C04E; Wed, 18 Apr 2018 11:51:32 +0100 (BST) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 99C814C059; Wed, 18 Apr 2018 11:51:31 +0100 (BST) Received: from localhost.localdomain (unknown [9.40.193.84]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 18 Apr 2018 11:51:31 +0100 (BST) From: Sandipan Das To: acme@kernel.org, jolsa@redhat.com Cc: linux-kernel@vger.kernel.org, naveen.n.rao@linux.vnet.ibm.com, ravi.bangoria@linux.vnet.ibm.com, sukadev@linux.vnet.ibm.com, maynard@us.ibm.com Subject: [PATCH v2 0/3] perf: Fixes for callchain ip handling on powerpc Date: Wed, 18 Apr 2018 16:28:57 +0530 X-Mailer: git-send-email 2.14.3 X-TM-AS-GCONF: 00 x-cbid: 18041810-0012-0000-0000-000005CC2ECC X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18041810-0013-0000-0000-000019487F64 Message-Id: <20180418105900.5899-1-sandipan@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-18_02:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1804180101 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Sandipan Das (3): perf tools powerpc: Fix callchain ip filtering perf tools powerpc: Fix crash if callchain is empty perf tests: Fix record+probe_libc_inet_pton.sh for powerpc64 tools/perf/arch/powerpc/util/skip-callchain-idx.c | 74 +++++++++++++--------- .../tests/shell/record+probe_libc_inet_pton.sh | 8 +++ 2 files changed, 53 insertions(+), 29 deletions(-) -- 2.14.3