Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp7383711imm; Thu, 28 Jun 2018 02:53:51 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIRgc4qh+DvyvbeXpIbK7XjPodgGbEnoCMa33K0IatZHQ4C+VcYFzToiSDy1UN1k5tslQcB X-Received: by 2002:a17:902:e209:: with SMTP id ce9-v6mr9684293plb.233.1530179631117; Thu, 28 Jun 2018 02:53:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530179631; cv=none; d=google.com; s=arc-20160816; b=SQxsClG3JlTog/Hh20BFkLO6Bzj6yQs5VLePuhuOT3ZMlVxK9RP+FF9j214jtGNxes MWuMjroM+fj6RVK+cxWnPSGWKBF5nYNGesatAneAopJqwHeAJO+pYW4l/yAVGTJOy418 5iTFv5LPp/t9+DUJTkk1IVrM3CgOEz1VjVPE8rKPVeal8ImrCUJWxe5Z25Vlq1BtoH0M LMsQaKY8XOqkPGmHkvRzRLv00Y3g/w4k/D+mfgHib7TeP5VzjSoIKSvFEItcMEElDgei XldjPyPYMlvS2tAK7Ug4TxkXTsQp0+8vI01Kwn6DwD7FvdPbl72YDrA3C/X420U8D6qU 40eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=MoFMSz1+8rZHf/8Q+xkdmr6la6L639+DgFAaF5idaQY=; b=STCcRGIu5ZWl+AWwuFnE8VZvvTBGpP9KRd/hCq+i3Vw1waal0BHcglFOK6LSRZfw6J 5atY5f5D6/c2/QxGvW1RyAsdL17O4gQ/HPbF/tyHlChI8ckhhxq84vOI+u/weBqTxb2V aXE7SHtk6fL3JySFBPUfebeXFixq27XOcfOaSrJD4FanEhaspFVAPitEundqKzrU57WQ ROj/dAdGq62ZhDUn9rS8V2LfU9pLjzK9ssW1naHAkcRlB48yayjsQjQBsm6M18azg0ni FAXJ6ipz4ykjt0SzxdY7hCOwuc7d4r5pdfBZPtDanK2NIyGG+1wvORNjB6jt8hqDlduX qsiA== 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 a34-v6si5725418pld.281.2018.06.28.02.53.34; Thu, 28 Jun 2018 02:53:51 -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 S1753678AbeF1HQK (ORCPT + 99 others); Thu, 28 Jun 2018 03:16:10 -0400 Received: from mga03.intel.com ([134.134.136.65]:21208 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753262AbeF1HQJ (ORCPT ); Thu, 28 Jun 2018 03:16:09 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Jun 2018 00:16:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,282,1526367600"; d="scan'208";a="60773124" Received: from keunhyun-mobl1.amr.corp.intel.com (HELO haswell-OptiPlex-9020.ccr.corp.intel.com) ([10.255.29.56]) by FMSMGA003.fm.intel.com with ESMTP; 28 Jun 2018 00:16:06 -0700 From: Li Zhijian To: peterz@infradead.org, mingo@redhat.com, acme@kernel.org, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, linux-kernel@vger.kernel.org Cc: Li Zhijian , Sandipan Das , Thomas Richter Subject: [PATCH] perf test record+probe_libc_inet_pton: expect [unknown] for ping as well Date: Thu, 28 Jun 2018 15:16:00 +0800 Message-Id: <1530170160-4979-1-git-send-email-lizhijian@cn.fujitsu.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On system which has not installed debuginfo of iputils(ping) will fail like: ~/lkp/linux/tools/perf$ sudo ./perf test ping -v 63: probe libc's inet_pton & backtrace it with ping : --- start --- test child forked, pid 4207 ping 4224 [007] 3034121.295510: probe_libc:inet_pton: (7fedfccb2200) 7fedfccb2200 __GI___inet_pton+0x0 (/lib/x86_64-linux-gnu/libc-2.23.so) 7fedfcc7ad5e getaddrinfo+0xee (/lib/x86_64-linux-gnu/libc-2.23.so) 55e3239a9f4d [unknown] (/bin/ping) FAIL: expected backtrace entry 3 ".*\+0x[[:xdigit:]]+[[:space:]]\(.*/bin/ping.*\)$" got "55e3239a9f4d [unknown] (/bin/ping)" test child finished with -1 ---- end ---- probe libc's inet_pton & backtrace it with ping: FAILED! To be compatible with this system, expects [unknown] as well Fixes: 7903a7086723 ("perf script: Show symbol offsets by default") CC: Sandipan Das CC: Thomas Richter Reported-by: kernel test robot Signed-off-by: Li Zhijian --- tools/perf/tests/shell/record+probe_libc_inet_pton.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 2630570..ebb6549 100755 --- a/tools/perf/tests/shell/record+probe_libc_inet_pton.sh +++ b/tools/perf/tests/shell/record+probe_libc_inet_pton.sh @@ -22,12 +22,12 @@ trace_libc_inet_pton_backtrace() { eventattr='call-graph=dwarf,max-stack=4' expected[2]="gaih_inet.*\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" expected[3]="(__GI_)?getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" - expected[4]="main\+0x[[:xdigit:]]+[[:space:]]\(.*/bin/ping.*\)$" + expected[4]=".*(\+0x[[:xdigit:]]|\[unknown\])+[[:space:]]\(.*/bin/ping.*\)$" ;; *) eventattr='max-stack=3' expected[2]="getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" - expected[3]=".*\+0x[[:xdigit:]]+[[:space:]]\(.*/bin/ping.*\)$" + expected[3]=".*(\+0x[[:xdigit:]]|\[unknown\])+[[:space:]]\(.*/bin/ping.*\)$" ;; esac -- 2.7.4