Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3486833imu; Sun, 11 Nov 2018 16:12:01 -0800 (PST) X-Google-Smtp-Source: AJdET5c7TJfJDmARJwDuCg6t/ZMP6fwyzWSpD5xODZQzY2J9O1kHvjFwxupxBcd/okYRUpzl7dPV X-Received: by 2002:a63:4466:: with SMTP id t38mr15181025pgk.102.1541981521445; Sun, 11 Nov 2018 16:12:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541981521; cv=none; d=google.com; s=arc-20160816; b=q9rWH0WYsU9+6kSo5CIXwMWlQDNDSceYwVbGs62NU3U9KM/iw7ZdZeGk2dH/E5xAYr 9nHpBB312nw3eqnhsOniMUFnmcZbDP2Xvp/7Ub6yrRgFFKCxP3knC6vP+mEBq3FlCyES /LUoEPCocdwPmpF0xCx1p+NNaMx2+7nZPewQtrNh1p1lVj2L1wbL0MGqDoHcWt0RLnFP gqVezyhOCEZYcVpVhqWISa8oRIQU1gGaGhx38hcXHHaub7ZFLxvtrcrrxzZPMXUinTTO Rm4AKarQsH/TCHd/OdgR4J5va8tGRmj9ejrcQlNJ2Rvu/4uF1fEeT8MD6aINaQyijJb5 NHHw== 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:dkim-signature; bh=+YFFcsYi2S5qS2tXPXgSug4pblO3j2pYfZkYkUTo4zU=; b=CdbVCPJmjaAT0gUkeFAvEBdVP8gy+Ygq4g/6YLFT/bPDX+lssLrg54zTAzqt1laQ5u 4BFXdpK4iu4npDCwsyaBC3Pn3DjQMi+QfTBt2UbKrstDCQq5DV6+DQ18sIcHMiF7+htG 8cm7+eCOL9hk5gLuoVNReKpATtIVTzWs3ue4aZ2kHyb/iHvsXVkaWXlHWNwS58unrECV fnP1YoAnMfHG9QBkEmrNoPTn4hV5e0PmhdayDaPf7vPNzzESmfG+obdwgIYir1BIAl3u pdzuUTqoJlq9PIrwts3Czj1kj22yp91hzvtfxJI4K6bQFXMwA64yasfpvfg1PmyvB2qV gFuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=u7ozMbTp; 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 b4-v6si17280748pfa.25.2018.11.11.16.11.46; Sun, 11 Nov 2018 16:12:01 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=u7ozMbTp; 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 S1730939AbeKLIR0 (ORCPT + 99 others); Mon, 12 Nov 2018 03:17:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:60196 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730816AbeKLIRZ (ORCPT ); Mon, 12 Nov 2018 03:17:25 -0500 Received: from localhost (unknown [206.108.79.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 76F8C223C6; Sun, 11 Nov 2018 22:27:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975249; bh=zHHPzHciXOAn7uW91KDI7UVDt9Qy+tLzvxWeN9LRn50=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u7ozMbTpZU+w7Edyx2D279JAB1zHIK9MxxWG5g4tqeHEd6jaOggXsZYJi3tdT710O tP4OSwf3AZt1hrwGhBDWpaZsJfP69XOQ6LXiqSglF+WqOMvzc1mU+rFiuRFj8FYxN8 27FKTyftoYLbFi3+WXJdW0VqSBVheIm8C0Mn3oto= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Adrian Hunter , Alexander Shishkin , David Ahern , Hendrik Brueckner , Jiri Olsa , Kim Phillips , Michael Petlan , Namhyung Kim , "Naveen N. Rao" , Peter Zijlstra , Ravi Bangoria , Sandipan Das , Sukadev Bhattiprolu , Thomas Richter , Wang Nan , Arnaldo Carvalho de Melo , Sasha Levin Subject: [PATCH 4.19 111/361] perf tests: Fix record+probe_libc_inet_pton.sh without pings debuginfo Date: Sun, 11 Nov 2018 14:17:38 -0800 Message-Id: <20181111221635.305783879@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221619.915519183@linuxfoundation.org> References: <20181111221619.915519183@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.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnaldo Carvalho de Melo [ Upstream commit 1632936480a53d85ef3012cd9f290e247251cbb9 ] When we don't have the iputils-debuginfo package installed, i.e. when we don't have the DWARF information needed to resolve ping's samples, we end up failing this 'perf test' entry: # perf test ping 62: probe libc's inet_pton & backtrace it with ping : Ok # rpm -e iputils-debuginfo # perf test ping 62: probe libc's inet_pton & backtrace it with ping : FAILED! # Fix it to accept "[unknown]" where the symbol + offset, when resolved, is expected. I think this will fail in the other arches as well, but since I can't test now, I'm leaving s390x and ppc cases as-is. Cc: Adrian Hunter Cc: Alexander Shishkin Cc: David Ahern Cc: Hendrik Brueckner Cc: Jiri Olsa Cc: Kim Phillips Cc: Michael Petlan Cc: Namhyung Kim Cc: Naveen N. Rao Cc: Peter Zijlstra Cc: Ravi Bangoria Cc: Sandipan Das Cc: Sukadev Bhattiprolu Cc: Thomas Richter Cc: Wang Nan Fixes: 7903a7086723 ("perf script: Show symbol offsets by default") Link: https://lkml.kernel.org/n/tip-hnizqwqrs03vcq1b74yao0f6@git.kernel.org 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/perf/tests/shell/record+probe_libc_inet_pton.sh +++ b/tools/perf/tests/shell/record+probe_libc_inet_pton.sh @@ -48,7 +48,7 @@ trace_libc_inet_pton_backtrace() { *) eventattr='max-stack=3' echo "getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected - echo ".*\+0x[[:xdigit:]]+[[:space:]]\(.*/bin/ping.*\)$" >> $expected + echo ".*(\+0x[[:xdigit:]]+|\[unknown\])[[:space:]]\(.*/bin/ping.*\)$" >> $expected ;; esac