Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp70718imm; Wed, 5 Sep 2018 15:10:31 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY7LNLBpFgPZuo5D4F8gCWP2x/34A/eK3lOnNJkTEvh8lmMByOWa3bEKZrB0/kWaJafVAUs X-Received: by 2002:a17:902:8a97:: with SMTP id p23-v6mr40515279plo.21.1536185431884; Wed, 05 Sep 2018 15:10:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536185431; cv=none; d=google.com; s=arc-20160816; b=UI82mI48qqEhm2HvCE+5KQMYlcH1n22RlWZqN9R53VbLza4cAfrCOqwd7HkdZsMcng fQvrriyg7eG4Sgl8W1jMK305SNIDWrdA03eDfhn8NgAYIRQfa1S/XsQgYLTsd9mRYEvI SWpORFGHWMOxW/3tEKc7XVf8MMyHwxAacgx2joWts2VKJAqFz+T4eSmAdV9/f+bwLqPn +eqLxz63zlUMpXziR7hJU25Vy74JWbOTC6yVEp2r4buQPul+h5qKELIOWA+iMeEEz8Rd y+3GkTAaletjx7akrnUApdhHZGqijZAlZY2nKyEWncFG4z3Kd+ULrzOvOFLhgfXTKgDe bMEg== 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=/c7A2RkHvErfv1Y4fzodHp6sAOk47aYkf09lvtCspwQ=; b=NDnSQjIXMEwo5OGXqikHIGsPl8HEakTtH3CYxIcFHKkY4Pa8rK1R0u5xfQCGQtcuXo rVHGndYbmv1uIkN97PyY8CFn012UqXPkZLINGnL9NAZvI/+A2fw6H3VWKTb8DlfxI/KZ nSoYSZta6Q7gEG5zvRJzh2zmlILhixbBucodw+Xz8NpVtudnnz1mnSiCwxM86PC1b4pM 4G22b2RIXufGe7eSdwYkZ2/njTmFXHlj8+6yqtPxBRhrR63Qkq0zAQn42Rd5uZW8PCiS Vwb+UQLWJ3tNX9TaHz+laR+da5haBG9qO4zdHwUEd8CLWtbsjfVanCuprlwMYkWd3Nu/ WjEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=S2fD192u; 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 f15-v6si3188072pgb.666.2018.09.05.15.10.15; Wed, 05 Sep 2018 15:10:31 -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=S2fD192u; 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 S1729103AbeIFCkm (ORCPT + 99 others); Wed, 5 Sep 2018 22:40:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:55902 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727575AbeIFCkl (ORCPT ); Wed, 5 Sep 2018 22:40:41 -0400 Received: from jouet.infradead.org (unknown [179.97.41.186]) (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 725CF2077C; Wed, 5 Sep 2018 22:08:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1536185309; bh=30VDouiCdpTM777xW1nu+ektYCUgByOK9QntCrZ23wQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S2fD192u0uu4NHPOd2zmjtgiMhFiI36MqVTuIBbfWfIqmAgVPAXGFFPrgqkeeh0i+ 3ggt1h+pAQGlm8/eheyX7Cgr4w+iT/WxPKq1FYh43/jtB7vEv6cHfrOq5hyJ/ihhgF DAbWRu2LW8nJL3s4a4xXcpTspJ+V1nawSNKt7o4U= From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: Clark Williams , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, 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 Subject: [PATCH 77/77] perf tests: Fix record+probe_libc_inet_pton.sh without ping's debuginfo Date: Wed, 5 Sep 2018 19:04:40 -0300 Message-Id: <20180905220440.20256-78-acme@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180905220440.20256-1-acme@kernel.org> References: <20180905220440.20256-1-acme@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 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 --- 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.14.4