Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2503493imm; Mon, 24 Sep 2018 05:34:40 -0700 (PDT) X-Google-Smtp-Source: ACcGV60c+27LmWFfPS/3dpehjj7zleFFa35MJnryfaAQVnKgKlCnfLWccQ2OgrI7wtLPUaR8P6jF X-Received: by 2002:a17:902:1c5:: with SMTP id b63-v6mr10694842plb.82.1537792480360; Mon, 24 Sep 2018 05:34:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537792480; cv=none; d=google.com; s=arc-20160816; b=TrABsUi/tQKCCXaovbLdTIHMrJf8BNFzBql6I8aJbhZ4vD1CENGsS2CGpl7aiGcpN4 GKjv3uxG/rPWRALr6UXI0xx1WDMD0y63QE7MSDVYx9hd9p8bMh74enRAn3RmpfLfVF3T AlYHIutI/fwkal1rcumEne92WBqcCIBzPqXGRU4tnyBW1otKBJ7zhV60A3VZ/O4g2rQd yggYuNErt3hcnIXib9VmrbgGC1c/naswVLJDc8X4xmoPdhx9Rdp/LH7VmcdpJWlnK9iz 9Vj6wCqm6PGUmw06P68eU3htnQi+xf9HnHHIbvNvraWho/D20GG+9sygG5Gvyw7ckz36 nQCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=L2hXEgmXXlDnT8viqFwV70goM2+y9uddJpj8ct3lKKM=; b=wMyc9ZRE2mzktMN1dE94NRQt7a1BfJ219UjK/CgVyHGQbUAEKR5mtA+ZGombVp36V2 jqtJy258jGCA39nUc+UZv7gLggU9PgJjqDAuSnOfcGp7ZKYJhOwYhKo7ZQwdPhSOU+vD P6EUc9fHm7vhBTT20PYOxK40zoWUnAP4zW0lgG3OU+b5lAQK9lpRXxIFpVqN8ILdQfTS hYRbMNH5ugc2VCB4iAo0d+WuXMi46GW4+9yAm0USxdqDg7CCGPXIOIdDHyDgSIWGAkcx vfgDA4Bh3h7tq8Rhq+plMZljFdnrqjYUuAFbT70OFH6ZGHjKtfIR5O23zMKqdMMmhQRf fi/g== 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 cf16-v6si37120834plb.254.2018.09.24.05.34.24; Mon, 24 Sep 2018 05:34:40 -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 S2388107AbeIXSeD (ORCPT + 99 others); Mon, 24 Sep 2018 14:34:03 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:58078 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730184AbeIXSeC (ORCPT ); Mon, 24 Sep 2018 14:34:02 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id DD315109A; Mon, 24 Sep 2018 12:32:06 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sandipan Das , Jiri Olsa , Kim Phillips , Maynard Johnson , "Naveen N. Rao" , Ravi Bangoria , Sukadev Bhattiprolu , Arnaldo Carvalho de Melo , Sasha Levin Subject: [PATCH 4.18 048/235] perf tests: Fix record+probe_libc_inet_pton.sh for powerpc64 Date: Mon, 24 Sep 2018 13:50:34 +0200 Message-Id: <20180924113110.026098187@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180924113103.999624566@linuxfoundation.org> References: <20180924113103.999624566@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Sandipan Das [ Upstream commit 3eae52f842329a95f8549124079518231c0daba8 ] 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 Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- tools/perf/tests/shell/record+probe_libc_inet_pton.sh | 6 ++++++ 1 file changed, 6 insertions(+) --- 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