Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2428480imj; Mon, 18 Feb 2019 05:57:21 -0800 (PST) X-Google-Smtp-Source: AHgI3IYQUCjY0mK05Lhd8aOgsoJl+w+YuIP1bl2JDhxOvM3nA4EQbalnofTwZfwf/5wGZjlmuQbk X-Received: by 2002:a63:1845:: with SMTP id 5mr19327215pgy.108.1550498241525; Mon, 18 Feb 2019 05:57:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550498241; cv=none; d=google.com; s=arc-20160816; b=AD6URnHQy7QjZzYP7sVim94yvNomUPx1Hpalm/l5PVRr0u2V1S0G2vpeIRR5n8oa8N fzzdGyqMjqmq004lpniI6xmCAxENLRlcmeMUgrTpRdmmMRPJHPs8HHmHWoBsUnyjSqWB 9/h8vzNJ1BuKq2FNWx4lz2us27O94p8bynGkz/YDMWBxau40x7ialWOC+pa9Ut5WT5X9 ZG3ScKSNwZPtXKNXbv5sdD1jdnVa4q+4vLTR8HsKp0JUrSN/ONg533aa3rB33RIwkmuB 6TrbKyuiKUGGehS2MGlzH7RvRt0TH1DsTcSSYY8qNsyyqlP9twu/n9tSZVUW0KHsHdCT aNHQ== 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=RmpT37oyd7ETcAnhmF2KrfmMwqKOfpdpmemOl6elJtw=; b=P2VWkHEGnI9z1OautRr+0yPe1WgS3NueGWamFJMuPPvQkkHyiPrUZ3I4k9OGTHk046 J5MMGO7G9+aVo/K2ZvylgIObWPlyHiOUIPl+lGJU+3lqTNOBHLkIcfkBqprxgBKFEVg2 m7me4XlteSeEdOaD1Dsc5nzPyC28Ari+a+86gCXYqFxeO0F0VdOnqV8OBc3y0/4SV1mF r5/pfbVeWc+VXh1wk8vc4YNwq8o7euuC04/N8lmUZFgby6Iwsp5R5xKnB/KQgEygebvn qlW4JeykmRGKwmm+mChwZCg8jPGv+2pMO1gZQYTLDQa7xZVKbtQNC5Q6s8SMYD3dprLF Lz8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yO0Ki8JI; 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 79si13415927pgb.351.2019.02.18.05.57.06; Mon, 18 Feb 2019 05:57:21 -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=yO0Ki8JI; 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 S2387727AbfBRN4P (ORCPT + 99 others); Mon, 18 Feb 2019 08:56:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:36356 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387662AbfBRN4L (ORCPT ); Mon, 18 Feb 2019 08:56:11 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (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 426492077B; Mon, 18 Feb 2019 13:56:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550498170; bh=kpej3P2pzh/2F3Pfw6fcp56MJFbeAzm/nqRjZUjUneg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yO0Ki8JI+3MT8KfLGwhNEk6cmWB1Ni/PcGOvDPAkqv2xVT2C/AwRDQQDF0QvcH8b4 Task2O0QDYlqEzFRns3/GOTKy8KNTSjqYiO+55NUaePIGlz5qcwxS9dGXi+A5R++P8 BMkkuGUkZvI9WEf5iK5KcMKvzaXhIBfRKEg6M+tQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Adrian Hunter , Jiri Olsa , Namhyung Kim , Arnaldo Carvalho de Melo , Sasha Levin Subject: [PATCH 4.14 25/62] perf test shell: Use a fallback to get the pathname in vfs_getname Date: Mon, 18 Feb 2019 14:43:31 +0100 Message-Id: <20190218133508.128802259@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190218133505.801423074@linuxfoundation.org> References: <20190218133505.801423074@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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.14-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 03fa483821c0b4db7c2b1453d3332f397d82313f ] Some kernels, like 4.19.13-300.fc29.x86_64 in fedora 29, fail with the existing probe definition asking for the contents of result->name, working when we ask for the 'filename' variable instead, so add a fallback to that. Now those tests are back working on fedora 29 systems with that kernel: # perf test vfs_getname 65: Use vfs_getname probe to get syscall args filenames : Ok 66: Add vfs_getname probe to get syscall args filenames : Ok 67: Check open filename arg using perf trace + vfs_getname: Ok # Cc: Adrian Hunter Cc: Jiri Olsa Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-klt3n0i58dfqttveti09q3fi@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Sasha Levin --- tools/perf/tests/shell/lib/probe_vfs_getname.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/perf/tests/shell/lib/probe_vfs_getname.sh b/tools/perf/tests/shell/lib/probe_vfs_getname.sh index 30a950c9d407..068d463e5cbf 100644 --- a/tools/perf/tests/shell/lib/probe_vfs_getname.sh +++ b/tools/perf/tests/shell/lib/probe_vfs_getname.sh @@ -13,7 +13,8 @@ add_probe_vfs_getname() { local verbose=$1 if [ $had_vfs_getname -eq 1 ] ; then line=$(perf probe -L getname_flags 2>&1 | egrep 'result.*=.*filename;' | sed -r 's/[[:space:]]+([[:digit:]]+)[[:space:]]+result->uptr.*/\1/') - perf probe $verbose "vfs_getname=getname_flags:${line} pathname=result->name:string" + perf probe -q "vfs_getname=getname_flags:${line} pathname=result->name:string" || \ + perf probe $verbose "vfs_getname=getname_flags:${line} pathname=filename:string" fi } -- 2.19.1