Received: by 10.192.165.156 with SMTP id m28csp2202475imm; Thu, 12 Apr 2018 10:13:30 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+ozcwteg/8zwH+nRU9qY22hFTMFzvk0NUO2x7q0r1lEjIYN+vN/4Y4MV3VoKWuA4NI1Xhq X-Received: by 10.99.97.11 with SMTP id v11mr1346539pgb.172.1523553210696; Thu, 12 Apr 2018 10:13:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523553210; cv=none; d=google.com; s=arc-20160816; b=ZMs1x54sbu0G5u6GxpQiWXSGZvxsV4ngsg5d8Ddipbc8CM77tiYpbccs1wi/FAarvc UQhMLotp2AapxFQceY8yMJWT3BM7l7LA7HUXoFh0s8nVQkzo+XHTcnMJ7AQxTVAhovCN +svptjTQ3VHfV8Xj3gSGL32nW3fSGmt/lgjVbKUaKPHJwoHOufmonArixmQHTUabTjNm ZMY5WyuJR4F5inT7j0Z4aKdDXdwlscd+DY9s9899CqRlu7N/aia5LsUY8P0PLZ1ElEzu DE0x3HKxVsZk0uN5Vkkw2o3RSDl8OO8W5Z+9Pgb2OnYgvquTnAyiXv98z4MwR1LhTCBL K/4A== 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=pazq7tQ+lEJvQHnqcssr7RVgDI6lLHCOI0TyWVRd9pc=; b=Tmm33x5LRUO52Esn9GZynHFtnKsl6p2qn2+4HOW+3bxmZzsRElE04zHuau6/R3kvVr 8wg+4WvlTVvos6enpY0OPQfpZf4SRdQsCPJxK+GovmaMefMBG/QE3vWMhyI9cmNoxAoh iFhdxsdTfoYOfwrBS+nUogu7gmoQDqmuUMRF+ho9Fy3bnsLXj2b5ZajxSQykoWU0lwuW +thpP/3ZMDP3UVicT35SvY1CgsWSITWXD7NgdveypllKBi8WV9VMV0O4EcltpWEfH/ER 4rjvGR0jqQe7GV0uKE6+aCyzphvKoYgTkeVUBIDiiEcy1AKLoxvOPESMlxisSVfFdijh bV3g== 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 s3si2571969pgr.421.2018.04.12.10.13.15; Thu, 12 Apr 2018 10:13:30 -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 S1752917AbeDLRLn (ORCPT + 99 others); Thu, 12 Apr 2018 13:11:43 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:54012 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752389AbeDLRLk (ORCPT ); Thu, 12 Apr 2018 13:11:40 -0400 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3CH8WxE000657 for ; Thu, 12 Apr 2018 13:11:39 -0400 Received: from e06smtp15.uk.ibm.com (e06smtp15.uk.ibm.com [195.75.94.111]) by mx0b-001b2d01.pphosted.com with ESMTP id 2ha8c0jcpv-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Thu, 12 Apr 2018 13:11:39 -0400 Received: from localhost by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 12 Apr 2018 18:11:37 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp15.uk.ibm.com (192.168.101.145) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 12 Apr 2018 18:11:36 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w3CHBZCl16253188; Thu, 12 Apr 2018 17:11:35 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1F1F311C050; Thu, 12 Apr 2018 18:03:39 +0100 (BST) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2271A11C04A; Thu, 12 Apr 2018 18:03:38 +0100 (BST) Received: from localhost.localdomain (unknown [9.40.193.84]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 12 Apr 2018 18:03:37 +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 Subject: [PATCH 2/2] perf tests: Fix record+probe_libc_inet_pton.sh for powerpc64 Date: Thu, 12 Apr 2018 22:41:29 +0530 X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180412171129.4422-1-sandipan@linux.vnet.ibm.com> References: <20180412171129.4422-1-sandipan@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18041217-0020-0000-0000-0000041134CA X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18041217-0021-0000-0000-000042A564CE Message-Id: <20180412171129.4422-3-sandipan@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-12_09:,, 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-1804120168 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. Before applying 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! After applying 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