Received: by 10.192.165.156 with SMTP id m28csp1087216imm; Wed, 18 Apr 2018 04:00:45 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+wa32e4Z0DQUzq4xZPLf1FZ0kwYI2pXeEHWFGlxIvwJtDU3BoYuyLKUZJYKm8F51aKYpRU X-Received: by 10.98.90.135 with SMTP id o129mr1585523pfb.38.1524049245420; Wed, 18 Apr 2018 04:00:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524049245; cv=none; d=google.com; s=arc-20160816; b=vhwcYUL7JVyD0cWZdJVEwzDHEPyOv6I0xJ9KJeBMrre8JA3D+HHasQF0keEhVP/q1w sSaxMbiV+y5fkHqkQXQA6SJbghd0sRwnjdrRi32nXmKoWA12k6B5aeREXO/R+WOHE446 iS4deF1ekAABO5PJ3jcZgeedwtW56x7gNeAwUPgQMv9wngnh7x8dB+VH9G76bNrHy5Md /itARmYeD7eXo6xP1nld304IaX8wIvNpK3hXTfQFjdEBEDAHdK0esBTzUjK27bvNNmXB S3JC6fThtKUphe9z9Tn92awszpaeu6c+p0UBJKTwi8fBB1ZAx4HpmWAtLoGKS6nIaJpQ ZEKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:references:in-reply-to:date :subject:cc:to:from:arc-authentication-results; bh=BvThUiSpyylC3AXk5mtm5/pwRw02i9bXOd8CCWBDqPU=; b=ntJzXv0Kc4n/CZ9St7WXE3PJ9+wVxM1/aie3rpHdYncy/cCVn/mNrPP7YslztzXaXJ rrJ+Lc1JE7CR/p74ou9TTJiWmiTRnrnznZllk8I3PncNEBLofemozZ8svfNJIHKESuW5 NIs8aquYee35jpzgilkuNOnOuiFD9RL5xx1/2v5TgkphICG/0DUhwn9OKvOaOw/Bbx6W l7DcDmjA80WD42Ej+Db/X6gks6uI6Qy28TVZVgr/ZiNeVlHFXM5RRkggPjidh7bOEnGF L3bgnGkBkzo4EGESBq2J5A7Wor44zh+kj0D0VzrQbnaViGZLHMI7SJLLgz8csMkU6k1r GF5A== 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 w22-v6si997196pll.122.2018.04.18.04.00.31; Wed, 18 Apr 2018 04:00:45 -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 S1753638AbeDRK7T (ORCPT + 99 others); Wed, 18 Apr 2018 06:59:19 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:39150 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753426AbeDRK7Q (ORCPT ); Wed, 18 Apr 2018 06:59:16 -0400 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3IAqjF0113269 for ; Wed, 18 Apr 2018 06:59:16 -0400 Received: from e06smtp11.uk.ibm.com (e06smtp11.uk.ibm.com [195.75.94.107]) by mx0a-001b2d01.pphosted.com with ESMTP id 2he2ur5kw9-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Wed, 18 Apr 2018 06:59:15 -0400 Received: from localhost by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 18 Apr 2018 11:59:13 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp11.uk.ibm.com (192.168.101.141) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 18 Apr 2018 11:59:10 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w3IAx9qn4653400; Wed, 18 Apr 2018 10:59:10 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E69864C052; Wed, 18 Apr 2018 11:51:39 +0100 (BST) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C88E84C04E; Wed, 18 Apr 2018 11:51:38 +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:38 +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 3/3] perf tests: Fix record+probe_libc_inet_pton.sh for powerpc64 Date: Wed, 18 Apr 2018 16:29:00 +0530 X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180418105900.5899-1-sandipan@linux.vnet.ibm.com> References: <20180418105900.5899-1-sandipan@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18041810-0040-0000-0000-0000044EDFD8 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18041810-0041-0000-0000-000020F32DDE Message-Id: <20180418105900.5899-4-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 For powerpc64, this test currently fails due to a mismatch in the expected output. Output before applying this patch: 62: probe libc's inet_pton & backtrace it with ping : --- start --- test child forked, pid 27723 ping 27740 [012] 607801.690493: probe_libc:inet_pton: (7fff936caf28) 15af28 __GI___inet_pton (/usr/lib64/libc-2.26.so) 10fa54 gaih_inet.constprop.7 (/usr/lib64/libc-2.26.so) FAIL: expected backtrace entry 2 "getaddrinfo[[:space:]]\(/usr/lib64/libc-2.26.so\)$" got "10fa54 gaih_inet.constprop.7 (/usr/lib64/libc-2.26.so)" test child finished with -1 ---- end ---- probe libc's inet_pton & backtrace it with ping: FAILED! Output after applying this patch: 62: probe libc's inet_pton & backtrace it with ping : --- start --- test child forked, pid 28782 ping 28799 [017] 608933.853323: probe_libc:inet_pton: (7fff891baf28) 15af28 __GI___inet_pton (/usr/lib64/libc-2.26.so) 10fa54 gaih_inet.constprop.7 (/usr/lib64/libc-2.26.so) 1105b4 getaddrinfo (/usr/lib64/libc-2.26.so) 2d70 _init (/usr/bin/ping) test child finished with 0 ---- end ---- probe libc's inet_pton & backtrace it with ping: Ok Fixes: e07d585e2454 ("perf tests: Switch trace+probe_libc_inet_pton to use record") Signed-off-by: Sandipan Das --- tools/perf/tests/shell/record+probe_libc_inet_pton.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/perf/tests/shell/record+probe_libc_inet_pton.sh b/tools/perf/tests/shell/record+probe_libc_inet_pton.sh index 1ecc1f0ff84a..b45afc59edc6 100755 --- a/tools/perf/tests/shell/record+probe_libc_inet_pton.sh +++ b/tools/perf/tests/shell/record+probe_libc_inet_pton.sh @@ -26,6 +26,14 @@ trace_libc_inet_pton_backtrace() { expected[5]="__libc_start_main[[:space:]]\($libc\)$" expected[6]="_start[[:space:]]\(.*/bin/ping.*\)$" ;; + ppc64) + ;& + ppc64le) + eventattr='max-stack=4' + expected[2]="gaih_inet.*[[:space:]]\($libc\)$" + expected[3]="getaddrinfo[[:space:]]\($libc\)$" + expected[4]=".*\(.*/bin/ping.*\)$" + ;; *) eventattr='max-stack=3' expected[2]="getaddrinfo[[:space:]]\($libc\)$" -- 2.14.3