Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp174232imd; Wed, 31 Oct 2018 16:49:02 -0700 (PDT) X-Google-Smtp-Source: AJdET5fY4S0z4ClZQ05OOaKEV9iEEAghtsICtTD6cXQJicsOlAnUSfpGGoSjKSPglsQqhNeMI5pe X-Received: by 2002:a17:902:650f:: with SMTP id b15-v6mr5330098plk.2.1541029742789; Wed, 31 Oct 2018 16:49:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541029742; cv=none; d=google.com; s=arc-20160816; b=oogNfMBe5khpYotmBIbsxfWZ/bq0aq/JqKeH43e3uL34xlj3C8RNXZccGpcHfJBy/4 U1lCeB1+iJQAKgD/0jZlpwmmY8vp+rHUb0wCbfIXGMSAJ8wKX2LD2fitc88ZClOJVdC4 RdOMA2tcsUTSxG5eFzMN0plunTzwh2tby1vTsltYcPemPDoMx73hmZF8c+kNQ+I0EMw9 uUSux9Re/xnAPPa/BbL8JrGd12Bdwg4ONyYcVjSAtEdsJXCueOeSubVM/Z1hWEzwFKi4 cxxDqXHBe4lHEqG9EexA+b5WDTFsfhFgyH21OSzyafz/McMGgLIecMTGGcWuIoExhyMY ckVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=3XEmUyVic5rAoNuogrRGA6QLoGr0WhvTl5KYi9fHRNs=; b=ebvir+UytT8l71dsNGahNHbUor0mixgM0dxuZTEmAW3+MldjQluMxD00PHdsKs9PV5 PPq/Us2TqhqEjhYHdt13AHAVar7VFzQlr2HdGbnzVSuEWaq+TOPE4WAtj5g0TlneNxnT pUcs2aExb6pxqUsDK1b1SUs4XF6FFhhUUgm3OCTh1WzI/dOd938loROr8jFv8EYjtJEu tWc3Jv/RL56iflW1hKSnAgImnwBwtipKiC5Kxi69YI7LWWjiRVyPHNmC85CcnpjvcMb1 hdmp8kFO6GAu1ZXjmCOtDCDZuZG8/boz7dgVAGD3g+JtCfZUfHdBArlyL9islOnn3/UM D1hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yqT5JcFt; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a10-v6si17061960pfi.222.2018.10.31.16.48.46; Wed, 31 Oct 2018 16:49:02 -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; dkim=pass header.i=@kernel.org header.s=default header.b=yqT5JcFt; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728450AbeKAIG4 (ORCPT + 99 others); Thu, 1 Nov 2018 04:06:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:54168 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728421AbeKAIGy (ORCPT ); Thu, 1 Nov 2018 04:06:54 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A95EF2081B; Wed, 31 Oct 2018 23:06:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541027203; bh=gyJvaYOlwKA2DpdXehhBLCPSxBw54Xo6effI/AIqTms=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yqT5JcFt1Bs3P48H0Zu9Y/RN1vb74VDA8pNLGbC9WByYHL9fYfrGc8nxihDpYL1jb 7+9IJ/iT+yZV3N6oh7MI5j8yLhOR0JTyi0kMqx4+3ek7WwxAMHuWLJsAshBlRJiTGq ZYK0fmqgHkP8LNiz8joliUo/zUlnjjJld8RssD/I= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Arnaldo Carvalho de Melo , 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 , Sasha Levin Subject: [PATCH AUTOSEL 4.19 066/146] perf tests: Fix record+probe_libc_inet_pton.sh without ping's debuginfo Date: Wed, 31 Oct 2018 19:04:21 -0400 Message-Id: <20181031230541.28822-66-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181031230541.28822-1-sashal@kernel.org> References: <20181031230541.28822-1-sashal@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- tools/perf/tests/shell/record+probe_libc_inet_pton.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 3013ac8f83d0..cab7b0aea6ea 100755 --- 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 -- 2.17.1