Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp926480imj; Sat, 9 Feb 2019 10:58:51 -0800 (PST) X-Google-Smtp-Source: AHgI3IZWUGYi5uhtFdw1VOFm3rYn+JxAlHt+XmmYf35/oi6P3glOlf5b/QL8VGfhwUUXpgvxt0/r X-Received: by 2002:a17:902:a03:: with SMTP id 3mr29808452plo.112.1549738730976; Sat, 09 Feb 2019 10:58:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549738730; cv=none; d=google.com; s=arc-20160816; b=EgseuoHMezrUijRsbMJlndEaR+7ZbEiVgj+rs1bGxEhN+/19oKDK6lIl7SJk7ccPzu X0+N4dVMkWf58NkW2fx685fX2t6mDh8OZYegDDqFLK8yv/eM5s5PRaqeo31RCmLKBx7V HLpxVKMthEvES3+0IzU2VPyvPXnpIHX2PTaNdwBisVUHKYZZM7qUu7/rys9snzgetjzf M6oQhbPy1qfG47hPKYXSkrU430W+DrpUKIxd3QReB5+npTf00Eysny7KVQi7oO6whwQN BwmUODe2TC+k8VYWic5/VGQfiyx7sydL2dB7CNucGGAOQiWWkl3VMG5vHBY/3rAxel9b PPbQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xloVgrFshXRM0a+2f5IbtZV4AWkBzjh4hkWOMiNmgao=; b=tMOwOzadfV954pZJNlFHhvKifHVyImwYp0Fz9AWUBVF09SbKyHVzS4NkBfqg/qNvJ0 E702Md4/7u6wiWdrOx/dfD9n/dBSpOLBYiYC6PXd7IYJQWTTJTunCrlK6Si1HSsrf4de 2k/v64Y10N+A8pSSW3U7/itFs1rDCkAztZwbg/D0wA0trmCnN5LEnawy+d+aEVrfTxoR q64Ujmx4ienBtYqm0XyB3BhpxQXckMnlW6FVBDUkY5bXJMlitTsiqaT4x1VrQ/xgpCla wEwWAFpZOXaBFAK0y1OspS48gIOiP5BfVShQahLGUj1voLBgoS3oagiClZ7IfGVvYsK9 k01w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZrQVHAmz; 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 w24si1085679ply.166.2019.02.09.10.58.35; Sat, 09 Feb 2019 10:58:50 -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=ZrQVHAmz; 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 S1728415AbfBIS5s (ORCPT + 99 others); Sat, 9 Feb 2019 13:57:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:60268 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727236AbfBISrm (ORCPT ); Sat, 9 Feb 2019 13:47:42 -0500 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 935F82192B; Sat, 9 Feb 2019 18:47:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549738061; bh=Avq+VJtqu1toCmKDyZ6RnlAVYN5fXXym5aXu4isq1v0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZrQVHAmzG0d8v819htCVQ7UreTNEXCgOZxekk/1u1exXchq2/ghn06urIlVIvF+MP PH+Q8Rr3yCt0pKGkljhLoTYEKOyReXIPkKGN61vlD2MOguEMK9Owna4WX7Xnlqsp48 v28aWiyTd2344iyG0iQX9XXbMhCWsfHQy8gcdP8A= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Arnaldo Carvalho de Melo , Adrian Hunter , Jiri Olsa , Namhyung Kim , Sasha Levin Subject: [PATCH AUTOSEL 4.20 05/42] perf test shell: Use a fallback to get the pathname in vfs_getname Date: Sat, 9 Feb 2019 13:46:57 -0500 Message-Id: <20190209184734.125935-5-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190209184734.125935-1-sashal@kernel.org> References: <20190209184734.125935-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit 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 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 1c16e56cd93e..7cb99b433888 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