Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1221895imm; Tue, 5 Jun 2018 10:55:35 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLgLgS7n+Bv/7/zxa4eplye3sRauLBXHvt2tG79E/fGy9kmVTlrsNZRypAkaF4/1K1pk86H X-Received: by 2002:a63:740d:: with SMTP id p13-v6mr21577147pgc.327.1528221335679; Tue, 05 Jun 2018 10:55:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528221335; cv=none; d=google.com; s=arc-20160816; b=SK+HBehKSPTQp0ojKJxhDX+sYm3sVsQqw5hPwMjrFsGQVW3e+PByD5p/km88rAGGnf cBXB1UcVzUaV7Ej/H8EaaKBBrgiGTAJT/4N+Ks9co8KkWMvzrYLb7Vg095hkJPdjdE3k gJLhsUIA7AJexGaNtN/PgBlSnaA4YBDWzb6wA5hmUM84Bm/iTA10pErvGtY9RAkYFax7 KHdlIDPrmuAxHR9fh7wdLABk2g3+qejv64cgcNPRr7tvK7Lrezibkq9/PMPmJEcSpjLd +K643XI/AByqHLUGGTi7gMFK2AEs7vlSxO4H1lfw8qxQJ8qnUFsDTrdlNNkhzHsCi6Uf ox/w== 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:arc-authentication-results; bh=bvCkwvTjCOoWPpelK2xxWZlBIVZiMuAQ1lq2TQH8luI=; b=sV8a6gvjGh4cJgayViAU4hubA0/eFAebuRY1iVdKyM10DczJcXfdt9fZchYiHywMK7 kBrbkwj6Q8jvwEhIJMISixkxPO/gDWwecX+XO/WRfCrwKtf+g0VERFLhp0MWeB5kTD3Q IQ2wfI0dLl4zkYMqqxSy3UiF4k6uMg3zdMiq7PiS33zLCCOdvuQOUC2Mf/at519U0Wb8 BrXLCQtJ78cNS5Qk5Y1x+zj+u45Gi8RRzcRculLwL7yVESkZgMLdgzMcUGmtY3kUsWNK BLN6729e2t2OA3d20hWKJz1iaF+tI1A+s3FmIsesZMkn1uVl0nLENVjx9fL1MqEpFFfK X6xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AXDMWOHM; 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 k2-v6si48701965plt.374.2018.06.05.10.55.21; Tue, 05 Jun 2018 10:55:35 -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=AXDMWOHM; 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 S1753060AbeFERwp (ORCPT + 99 others); Tue, 5 Jun 2018 13:52:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:46672 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753043AbeFERwm (ORCPT ); Tue, 5 Jun 2018 13:52:42 -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 866C92083C; Tue, 5 Jun 2018 17:52:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1528221162; bh=tJ0M+NYLbu4nL0NRW18WNgMk3icbUxQ4CJwDaaUR/7g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AXDMWOHMQf2XifsGVVr2vWXdaD6ygB16Pm7cl3HUe2Kur5Kq7SCzyrQa5JGchfQDK aXlo0QkSOhCY7Txk82XQMTddD0KAe/UzrwShH+SpX44Muhor2YpA1ZkW9ljg7xzqvF 8Ac/oCWNITfXYyss7M2ZYH8ZvaHM/y97rap3CQtw= 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 , David Ahern , Heiko Carstens , Hendrik Brueckner , Jiri Olsa , Martin Schwidefsky , Namhyung Kim , "Naveen N . Rao" , Sandipan Das , Thomas Richter , Wang Nan Subject: [PATCH 41/46] perf test record+probe_libc_inet_pton: Ask 'nm' for dynamic symbols Date: Tue, 5 Jun 2018 14:50:25 -0300 Message-Id: <20180605175030.32549-42-acme@kernel.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180605175030.32549-1-acme@kernel.org> References: <20180605175030.32549-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 Adrian reported that this test fails in his system where: probe libc's inet_pton & backtrace it with ping: FAILED! root@kbl04:~/git/linux-perf# nm -g /lib/x86_64-linux-gnu/libc-2.19.so | grep inet_pton nm: /lib/x86_64-linux-gnu/libc-2.19.so: no symbols This fails on ubuntu systems, with Adrian's being kubuntu 14.04, I tested with ubuntu 14.04.4 and 18.04, and there we need to use the -D/--dynamic 'nm' option to have this test working. And it works as well with that on fedora 27, so use it. Reported-by: Adrian Hunter Cc: David Ahern Cc: Heiko Carstens Cc: Hendrik Brueckner Cc: Jiri Olsa Cc: Martin Schwidefsky Cc: Namhyung Kim Cc: Naveen N. Rao Cc: Sandipan Das Cc: Thomas Richter Cc: Wang Nan Link: https://lkml.kernel.org/n/tip-zlfnbauad3ljlmtjgo0v660u@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 650b208f700f..263057039693 100755 --- a/tools/perf/tests/shell/record+probe_libc_inet_pton.sh +++ b/tools/perf/tests/shell/record+probe_libc_inet_pton.sh @@ -11,7 +11,7 @@ . $(dirname $0)/lib/probe.sh libc=$(grep -w libc /proc/self/maps | head -1 | sed -r 's/.*[[:space:]](\/.*)/\1/g') -nm -g $libc 2>/dev/null | fgrep -q inet_pton || exit 254 +nm -Dg $libc 2>/dev/null | fgrep -q inet_pton || exit 254 trace_libc_inet_pton_backtrace() { idx=0 -- 2.14.3