Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1218076imm; Wed, 25 Jul 2018 13:48:12 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeObOyZNPtyCI3BN0GR1nH6BovjDMeaXiJUc0TnDBF7AhCU4ZbghahqltWp/nOmmlZMw8Rw X-Received: by 2002:a63:2dc1:: with SMTP id t184-v6mr21890459pgt.62.1532551692867; Wed, 25 Jul 2018 13:48:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532551692; cv=none; d=google.com; s=arc-20160816; b=PFcJHGT9uCSv+sWs+4gNqsXFj3Qosfps7KpsXhNNbEKfQPjcqks+e+UL9aM5QeDfcv jv53cZgj4MnGeCfjqkBGidTstCsJXB46Hzab3+xg6myeYdMhT1nVEAyfe6KkF1ErxVf9 nPgP1XlheQS9onUb/1ckom1hZgmTHWQlH+q5CrGqFz+2BZ9UAoS1Ny9HuHu1rVC49f0p ZQduWgrWjauqS4DMLm7Ubbciv+BhLI5G8Am1UbMCVzrwjJeBImz7wb7sIC+gfjRz5fem ET0sqoGhlHZkIbn8JnYC77KdOiwNhik6FhB5t6jrfVgdR6wSzOCCLzrQPdjbzmpxfTel 795A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=mq1x8tR5l4TPqsr3/UF77rr9H/B7t0nWqjrlJYe0Gok=; b=xDqS3AduHoQrLYapZj7mVrYKC6IUyojczXrAiHL8VirIu70hcW5aphWM8U6hRVBsQR vlrpeVdCV4b22ep6QrDLPZ4MGXG62gqov2KTzcaQymrRN/shhQezKobkrOk56NBd1fV6 XWiThkbBqAjr2dQagvYxwMli93fZcuXyFp8pno9cVV8/CyJ6QlfBZG/5/grBNH+0w63d 4GKjY50LhSme6me3CN8xxrJxeZg0e09pTE9FCOyfDkaVInWDoK2fW8AlY7Su7BZhP1L2 FllMuqICgJLs7UQodnJ4D5EPV//9bx6dmf3bU/DRhsy1RGQpDDaqjmUTbMwIPm/MQxB4 N1yQ== 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 j10-v6si12803552pgq.503.2018.07.25.13.47.58; Wed, 25 Jul 2018 13:48:12 -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 S1731486AbeGYV7p (ORCPT + 99 others); Wed, 25 Jul 2018 17:59:45 -0400 Received: from terminus.zytor.com ([198.137.202.136]:49825 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730535AbeGYV7p (ORCPT ); Wed, 25 Jul 2018 17:59:45 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w6PKkAhf500774 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 25 Jul 2018 13:46:10 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w6PKkAMA500768; Wed, 25 Jul 2018 13:46:10 -0700 Date: Wed, 25 Jul 2018 13:46:10 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Sandipan Das Message-ID: Cc: mingo@kernel.org, sandipan@linux.ibm.com, acme@redhat.com, linux-kernel@vger.kernel.org, jolsa@redhat.com, ravi.bangoria@linux.vnet.ibm.com, sukadev@linux.vnet.ibm.com, naveen.n.rao@linux.vnet.ibm.com, maynard@us.ibm.com, tglx@linutronix.de, kim.phillips@arm.com, hpa@zytor.com Reply-To: maynard@us.ibm.com, tglx@linutronix.de, kim.phillips@arm.com, hpa@zytor.com, mingo@kernel.org, sandipan@linux.ibm.com, acme@redhat.com, linux-kernel@vger.kernel.org, jolsa@redhat.com, sukadev@linux.vnet.ibm.com, ravi.bangoria@linux.vnet.ibm.com, naveen.n.rao@linux.vnet.ibm.com In-Reply-To: <49621ec5f37109f0655e5a8c32287ad68d85a1e5.1530724939.git.sandipan@linux.ibm.com> References: <49621ec5f37109f0655e5a8c32287ad68d85a1e5.1530724939.git.sandipan@linux.ibm.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf tests: Fix record+probe_libc_inet_pton.sh for powerpc64 Git-Commit-ID: 3eae52f842329a95f8549124079518231c0daba8 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-0.7 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_48_96 autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 3eae52f842329a95f8549124079518231c0daba8 Gitweb: https://git.kernel.org/tip/3eae52f842329a95f8549124079518231c0daba8 Author: Sandipan Das AuthorDate: Tue, 10 Jul 2018 19:28:15 +0530 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 24 Jul 2018 14:51:37 -0300 perf tests: Fix record+probe_libc_inet_pton.sh for powerpc64 For powerpc64, this test currently fails due to a mismatch in the expected output. This can be observed on a powerpc64le system running Fedora 27 as shown below. # perf test -v "probe libc's inet_pton & backtrace it with ping" Before: 62: probe libc's inet_pton & backtrace it with ping : --- start --- test child forked, pid 23948 ping 23965 [003] 71136.075084: probe_libc:inet_pton: (7fff996aaf28) 7fff996aaf28 __GI___inet_pton+0x8 (/usr/lib64/libc-2.26.so) 7fff9965fa54 gaih_inet.constprop.7+0xf44 (/usr/lib64/libc-2.26.so) FAIL: expected backtrace entry 2 "getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\(/usr/lib64/libc-2.26.so\)$" got "7fff9965fa54 gaih_inet.constprop.7+0xf44 (/usr/lib64/libc-2.26.so)" test child finished with -1 ---- end ---- probe libc's inet_pton & backtrace it with ping: FAILED! After: 62: probe libc's inet_pton & backtrace it with ping : --- start --- test child forked, pid 24638 ping 24655 [001] 71208.525396: probe_libc:inet_pton: (7fffa245af28) 7fffa245af28 __GI___inet_pton+0x8 (/usr/lib64/libc-2.26.so) 7fffa240fa54 gaih_inet.constprop.7+0xf44 (/usr/lib64/libc-2.26.so) 7fffa24105b4 getaddrinfo+0x164 (/usr/lib64/libc-2.26.so) 138d52d70 main+0x3e0 (/usr/bin/ping) test child finished with 0 ---- end ---- probe libc's inet_pton & backtrace it with ping: Ok Signed-off-by: Sandipan Das Cc: Jiri Olsa Cc: Kim Phillips Cc: Maynard Johnson Cc: Naveen N. Rao Cc: Ravi Bangoria Cc: Sukadev Bhattiprolu Fixes: e07d585e2454 ("perf tests: Switch trace+probe_libc_inet_pton to use record") Link: http://lkml.kernel.org/r/49621ec5f37109f0655e5a8c32287ad68d85a1e5.1530724939.git.sandipan@linux.ibm.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/tests/shell/record+probe_libc_inet_pton.sh | 6 ++++++ 1 file changed, 6 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 94e513e62b34..1220e5e052bb 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,12 @@ trace_libc_inet_pton_backtrace() { echo "(__GI_)?getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected echo "main\+0x[[:xdigit:]]+[[:space:]]\(.*/bin/ping.*\)$" >> $expected ;; + ppc64|ppc64le) + eventattr='max-stack=4' + echo "gaih_inet.*\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected + echo "getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected + echo ".*\+0x[[:xdigit:]]+[[:space:]]\(.*/bin/ping.*\)$" >> $expected + ;; *) eventattr='max-stack=3' echo "getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected