{"id":2227987,"url":"http://patchwork.ozlabs.org/api/patches/2227987/?format=json","web_url":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260424172435.91725-1-atrajeev@linux.ibm.com/","project":{"id":2,"url":"http://patchwork.ozlabs.org/api/projects/2/?format=json","name":"Linux PPC development","link_name":"linuxppc-dev","list_id":"linuxppc-dev.lists.ozlabs.org","list_email":"linuxppc-dev@lists.ozlabs.org","web_url":"https://github.com/linuxppc/wiki/wiki","scm_url":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git","webscm_url":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/","list_archive_url":"https://lore.kernel.org/linuxppc-dev/","list_archive_url_format":"https://lore.kernel.org/linuxppc-dev/{}/","commit_url_format":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}"},"msgid":"<20260424172435.91725-1-atrajeev@linux.ibm.com>","list_archive_url":"https://lore.kernel.org/linuxppc-dev/20260424172435.91725-1-atrajeev@linux.ibm.com/","date":"2026-04-24T17:24:35","name":"[V3] tools/perf/tests: Update test_adding_kernel.sh to handle proper debuginfo check","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"02bef7323a076824c0981007daf0dece034a2ec5","submitter":{"id":90290,"url":"http://patchwork.ozlabs.org/api/people/90290/?format=json","name":"Athira Rajeev","email":"atrajeev@linux.ibm.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260424172435.91725-1-atrajeev@linux.ibm.com/mbox/","series":[{"id":501395,"url":"http://patchwork.ozlabs.org/api/series/501395/?format=json","web_url":"http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=501395","date":"2026-04-24T17:24:35","name":"[V3] tools/perf/tests: Update test_adding_kernel.sh to handle proper debuginfo check","version":3,"mbox":"http://patchwork.ozlabs.org/series/501395/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2227987/comments/","check":"success","checks":"http://patchwork.ozlabs.org/api/patches/2227987/checks/","tags":{},"related":[],"headers":{"Return-Path":"\n <linuxppc-dev+bounces-20091-incoming=patchwork.ozlabs.org@lists.ozlabs.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256\n header.s=pp1 header.b=fvYNBsz1;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=2404:9400:21b9:f100::1; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-20091-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)","lists.ozlabs.org;\n arc=none smtp.remote-ip=148.163.156.1","lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=linux.ibm.com","lists.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256\n header.s=pp1 header.b=fvYNBsz1;\n\tdkim-atps=neutral","lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=linux.ibm.com\n (client-ip=148.163.156.1; helo=mx0a-001b2d01.pphosted.com;\n envelope-from=atrajeev@linux.ibm.com; receiver=lists.ozlabs.org)"],"Received":["from lists.ozlabs.org (lists.ozlabs.org\n [IPv6:2404:9400:21b9:f100::1])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1 raw public key)\n server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g2KbL41p5z1yDD\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 25 Apr 2026 03:25:02 +1000 (AEST)","from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4g2KbC5zdxz2yYs;\n\tSat, 25 Apr 2026 03:24:55 +1000 (AEST)","from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com\n [148.163.156.1])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 4g2KbB6C3kz2xnl\n\tfor <linuxppc-dev@lists.ozlabs.org>; Sat, 25 Apr 2026 03:24:54 +1000 (AEST)","from pps.filterd (m0353729.ppops.net [127.0.0.1])\n\tby mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 63O6Z2Fp365114;\n\tFri, 24 Apr 2026 17:24:47 GMT","from ppma23.wdc07v.mail.ibm.com\n (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93])\n\tby mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4dphfrpexp-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tFri, 24 Apr 2026 17:24:47 +0000 (GMT)","from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1])\n\tby ppma23.wdc07v.mail.ibm.com (8.18.1.7/8.18.1.7) with ESMTP id\n 63OHKMIo008912;\n\tFri, 24 Apr 2026 17:24:46 GMT","from smtprelay01.fra02v.mail.ibm.com ([9.218.2.227])\n\tby ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 4dpjkyus5w-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tFri, 24 Apr 2026 17:24:45 +0000 (GMT)","from smtpav05.fra02v.mail.ibm.com (smtpav05.fra02v.mail.ibm.com\n [10.20.54.104])\n\tby smtprelay01.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n 63OHOgcA51839234\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);\n\tFri, 24 Apr 2026 17:24:42 GMT","from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id 381212004D;\n\tFri, 24 Apr 2026 17:24:42 +0000 (GMT)","from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id ABEA020040;\n\tFri, 24 Apr 2026 17:24:38 +0000 (GMT)","from localhost.localdomain (unknown [9.124.219.242])\n\tby smtpav05.fra02v.mail.ibm.com (Postfix) with ESMTP;\n\tFri, 24 Apr 2026 17:24:38 +0000 (GMT)"],"ARC-Seal":"i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1777051495;\n\tcv=none;\n b=Lj5lIxjhO70tViaqjmGq5lH93ChGBffKK8s31yJsuWkcRJ+vD26nHwxTHRZBKSn1NM5wDfP2OmYsX8cZ9tqrdXeLUs78Qf535tnN/tXQTvBBuIeIri2rEeQ9rcx+JM7MnxrL6MKGmaR1rCGjTXDWtP01bkw3hKscRd9TCTBOm3vHykbbJ0Q0gsx5n+b9Sdmg3Zic6frVXBIxLYJskP9pb8Y2zDEHJ02VMuVdUFEo92BKpfcVLUxCtkwPrhEBeN0xcibrAeNmhfqkO6ERGS8d9uaeeP7w9se7qjFyNETcPbkHcxW5fCkdVfYXO/pZuI9HI/0PCdGcNxycYwMCfPRw+g==","ARC-Message-Signature":"i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1777051495; c=relaxed/relaxed;\n\tbh=/cB85TzxeRYGL5Odl5N8QteFy9OAAU3sdsj9rYuH1O8=;\n\th=From:To:Cc:Subject:Date:Message-Id:MIME-Version;\n b=NPEQ8aEzDraFbkRvuI8VM5iltfSSRiwmOoCvu5sHWLU4LiWyZWUiBonVvrJB+w7esiNZrpEQBwwk4ZORroqazLa1S6E7SdEUzgK7EPcMnF7f1N9l521aM+bPHJ6D0ptXbycTpoq/sWzXuUfhhKZ60ZQLoE4Vgl6aIiG+XWlC/6nylg3CVwVzPWNTun6OOkYy/ki+SwNrNwousBammu3xATf8+1VIpwUtFH4oufmVlqVIkyD5sfle9F5tns3wFx0wcih8VnCV8vJ868ekvDIrMhIaqE+cSaXPGKYsqTwlA++rvlTNciCGaoh82a1bkLY7g9esjLqNqaLKAbdVBXqZyw==","ARC-Authentication-Results":"i=1; lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=linux.ibm.com;\n dkim=pass (2048-bit key;\n unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256\n header.s=pp1 header.b=fvYNBsz1; dkim-atps=neutral;\n spf=pass (client-ip=148.163.156.1; helo=mx0a-001b2d01.pphosted.com;\n envelope-from=atrajeev@linux.ibm.com;\n receiver=lists.ozlabs.org) smtp.mailfrom=linux.ibm.com","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc\n\t:content-transfer-encoding:date:from:message-id:mime-version\n\t:subject:to; s=pp1; bh=/cB85TzxeRYGL5Odl5N8QteFy9OAAU3sdsj9rYuH1\n\tO8=; b=fvYNBsz144WBDQgkTM88ctT9ssOJrjNs5Gt7KHng5egoiYha8Wnx5zHJE\n\tFMm85o9VkzuisY/7QWRTwEwzedfDJ0MAYdPkTlhWBSOvrhUjUDRzkDOkkOtZDwzI\n\tICCIdjAXP0uShhhk1ixe9tJg36rRYc6P9tWVwOi/mmZgu1GqTdPeK5kqPbfYWb3c\n\tjbwCnjaIsNDoSNHLUjwnPPfH3MQYoEQBKVtnV4m+D0mnvWlCg/ZIbMIfJOKkJ5Ek\n\tqdU3ueRTh40HeuEKuAnmLy86xV4FFYLvgoIiZdNt9t9nCoX/kUlPwx5aOL6+CMgF\n\t6wFPQnf7iQhRDzyKFMTeM2tIEX1Kw==","From":"Athira Rajeev <atrajeev@linux.ibm.com>","To":"acme@kernel.org, jolsa@kernel.org, adrian.hunter@intel.com,\n        mpetlan@redhat.com, tmricht@linux.ibm.com, maddy@linux.ibm.com,\n        irogers@google.com, namhyung@kernel.org","Cc":"linux-perf-users@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,\n        atrajeev@linux.ibm.com, hbathini@linux.vnet.ibm.com,\n        Tejas.Manhas1@ibm.com, Tanushree.Shah@ibm.com, Shivani.Nittor@ibm.com","Subject":"[PATCH V3] tools/perf/tests: Update test_adding_kernel.sh to handle\n proper debuginfo check","Date":"Fri, 24 Apr 2026 22:54:35 +0530","Message-Id":"<20260424172435.91725-1-atrajeev@linux.ibm.com>","X-Mailer":"git-send-email 2.39.5 (Apple Git-154)","X-Mailing-List":"linuxppc-dev@lists.ozlabs.org","List-Id":"<linuxppc-dev.lists.ozlabs.org>","List-Help":"<mailto:linuxppc-dev+help@lists.ozlabs.org>","List-Owner":"<mailto:linuxppc-dev+owner@lists.ozlabs.org>","List-Post":"<mailto:linuxppc-dev@lists.ozlabs.org>","List-Archive":"<https://lore.kernel.org/linuxppc-dev/>,\n  <https://lists.ozlabs.org/pipermail/linuxppc-dev/>","List-Subscribe":"<mailto:linuxppc-dev+subscribe@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-digest@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-nomail@lists.ozlabs.org>","List-Unsubscribe":"<mailto:linuxppc-dev+unsubscribe@lists.ozlabs.org>","Precedence":"list","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-TM-AS-GCONF":"00","X-Proofpoint-Reinject":"loops=2 maxloops=12","X-Proofpoint-GUID":"YjCa_2gnaxastfQMauDVt-2uALpe3MT1","X-Proofpoint-ORIG-GUID":"SNk5dnMaD0qg3b5xw5IHv1twqOHt33c-","X-Proofpoint-Spam-Details-Enc":"AW1haW4tMjYwNDI0MDE2OCBTYWx0ZWRfXy2vPscDy0r2z\n wx6fyETH5tQmEqA0QMLcrpSs4llFo07WIZ5GJV5yFfucWbZ3KuAOnGRVXRWu011zhvNkQuUfQGj\n 3z+Sc5uApnyhICJEkAkI/+OPNMuxqGlUpYL01zBDFOxSmavaFK4h2DfXBhy2JI9sTKD/tUzPQ0A\n PS0/+hBb/vIfMPGGmbn9YbUwewJo64dm9K19OZ7b+2uY2sxk2QoGfAuYVJAJxOg0LPf2CdxjXzw\n +ZbuGcUfk+f/4rHxj+j3+mS4AdilGv3U+IkmC83gF71/zF1t8BZUCaGXsZvJPTdI/DykEqGfe8Y\n Cdu6bMV3O4N19AJPXg74e661YJ50jrvPBOBymdgdS+3kRpDRwPuSC48frHpWRt0P5AH+1k/6mW+\n J5kaXgmPcggTn+ZIyLlvbFH0ZHCj5ONV2Xa2AWQ0ZOumBdJOOs1FxdNf2t+pOiNzq5hyhFhBlqB\n zl1wTsZ1cLrxuVA8WGg==","X-Authority-Analysis":"v=2.4 cv=SJxykuvH c=1 sm=1 tr=0 ts=69eba75f cx=c_pps\n a=3Bg1Hr4SwmMryq2xdFQyZA==:117 a=3Bg1Hr4SwmMryq2xdFQyZA==:17\n a=A5OVakUREuEA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22\n a=uAbxVGIbfxUO_5tXvNgY:22 a=VnNF1IyMAAAA:8 a=1XWaLZrsAAAA:8\n a=E34RJTyr9ZXJz0s_rhIA:9","X-Proofpoint-Virus-Version":"vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-04-24_02,2026-04-21_02,2025-10-01_01","X-Proofpoint-Spam-Details":"rule=outbound_notspam policy=outbound score=0\n priorityscore=1501 suspectscore=0 malwarescore=0 impostorscore=0 bulkscore=0\n lowpriorityscore=0 phishscore=0 clxscore=1015 adultscore=0 spamscore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2604200000 definitions=main-2604240168","X-Spam-Status":"No, score=-0.7 required=3.0 tests=DKIM_SIGNED,DKIM_VALID,\n\tRCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,\n\tSPF_PASS autolearn=disabled version=4.0.1 OzLabs 8","X-Spam-Checker-Version":"SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org"},"content":"Perf test perftool-testsuite_probe fails as below:\n\n Regexp not found: \"\\s*probe:inode_permission(?:_\\d+)?\\s+\\(on inode_permission(?:[:\\+][0-9A-Fa-f]+)?@.+\\)\"\n -- [ FAIL ] -- perf_probe :: test_adding_kernel :: listing added probe :: perf probe -l (output regexp parsing)\n -- [ PASS ] -- perf_probe :: test_adding_kernel :: removing multiple probes\n Regexp not found: \"probe:vfs_mknod\"\n Regexp not found: \"probe:vfs_create\"\n Regexp not found: \"probe:vfs_rmdir\"\n Regexp not found: \"probe:vfs_link\"\n Regexp not found: \"probe:vfs_write\"\n -- [ FAIL ] -- perf_probe :: test_adding_kernel :: wildcard adding support (command exitcode + output regexp parsing)\n Regexp not found: \"somenonexistingrandomstuffwhichisalsoprettylongorevenlongertoexceed64\"\n Regexp not found: \"in this function|at this address\"\n -- [ FAIL ] -- perf_probe :: test_adding_kernel :: non-existing variable (output regexp parsing)\n ## [ FAIL ] ## perf_probe :: test_adding_kernel SUMMARY :: 3 failures found\n\nFurther analysing, the failed testcase is for \"test_adding_kernel\".\nIf the kernel debuginfo is missing, perf probe fails as below:\n\nperf probe -nf --max-probes=512 -a 'vfs_* $params'\nFailed to find the path for the kernel: No such file or directory\n  Error: Failed to add events.\n\nskip_if_no_debuginfo has check to handle whether debuginfo is present\nand the testcase checks for debuginfo since this :\ncommit 90d32e92011e (\"tools/perf: Handle perftool-testsuite_probe\ntestcases fail when kernel debuginfo is not present\")\n\nRecently a change got added in \"tests/shell/lib/probe_vfs_getname.sh\"\nvia this another fix:\ncommit 92b664dcefab (\"perf test probe_vfs_getname: Skip if no suitable\nline detected\")\nSince this commit, first add_probe_vfs_getname is used to prevent false\nfailures. And based on return code of add_probe_vfs_getname, skip_if_no_debuginfo\nis used to skip testcase if debuginfo is present. And this modified other\ntestcases to call add_probe_vfs_getname first and invoke\nskip_if_no_debuginfo based on return value.\n\nThe tests in test_adding_kernel.sh which depends on presence of\ndebuginfo are:\n1. probe add for inode_permission\n2. probe max-probes option using 'vfs_* $params'\n3. non-existing variable probing\n\nFor these tests, probe check for specific line is not required.\nSo call skip_if_no_debuginfo with argument to say if line check is\nneeded. This is to convey to skip_if_no_debuginfo() function\nthat test only needs to check for debuginfo, and not specifically\nline number. Update skip_if_no_debuginfo to use simple \"perf probe\"\ncheck if test only needs to check for debuginfo. And for other\ntests which rely on line number, use add_probe_vfs_getname()\nUpdate other places which uses skip_if_no_debuginfo to use argument\nas zero.\n\nWith the change, verified that only three which required debuginfo only\nis skipped and others ran successfully. Also tested with debuginfo\nto make sure tests are not skipped.\n\nReported-by: Tejas Manhas <Tejas.Manhas1@ibm.com>\nReviewed-by: Ian Rogers <irogers@google.com>\nSigned-off-by: Athira Rajeev <atrajeev@linux.ibm.com>\n---\nChangelog:\nv2 -> v3:\n- Update other callsites to use \"skip_if_no_debuginfo 0\"\n- Use \"perf probe -vn --add inode_permission $params\"\n\nv1 -> v2:\n- First version used \"perf probe -v -L getname_flags\" for debuginfo\n  check. This will not catch fail string \"Debuginfo-analysis is not\nsupported\" which is used in cases when perf is built without dwarf.\n So use \"perf probe -vn add inode_permission\" to capture cases when\n tools built with NO_LIBDWARF=1. This will capture debuginfo missing as\nwell as tool built without dwarf case.\n\n .../tests/shell/base_probe/test_adding_kernel.sh  | 15 ++++++++++++++-\n tools/perf/tests/shell/lib/probe_vfs_getname.sh   | 13 ++++++++++++-\n tools/perf/tests/shell/probe_vfs_getname.sh       |  7 ++++++-\n .../shell/record+script_probe_vfs_getname.sh      |  7 ++++++-\n tools/perf/tests/shell/trace+probe_vfs_getname.sh |  7 ++++++-\n 5 files changed, 44 insertions(+), 5 deletions(-)","diff":"diff --git a/tools/perf/tests/shell/base_probe/test_adding_kernel.sh b/tools/perf/tests/shell/base_probe/test_adding_kernel.sh\nindex 555a825d55f2..f3db125c8669 100755\n--- a/tools/perf/tests/shell/base_probe/test_adding_kernel.sh\n+++ b/tools/perf/tests/shell/base_probe/test_adding_kernel.sh\n@@ -23,10 +23,23 @@ TEST_RESULT=0\n . \"$DIR_PATH/../lib/probe_vfs_getname.sh\"\n \n TEST_PROBE=${TEST_PROBE:-\"inode_permission\"}\n+PROBE_NO_LINE_CHECK=1\n \n # set NO_DEBUGINFO to skip testcase if debuginfo is not present\n # skip_if_no_debuginfo returns 2 if debuginfo is not present\n-skip_if_no_debuginfo\n+#\n+# The perf probe checks which depends on presence of debuginfo and\n+# used in this testcase are:\n+# 1. probe add for inode_permission\n+# 2. probe max-probes option using 'vfs_* $params'\n+# 3. non-existing variable probing\n+#\n+# For these tests, probe check for specific line is not\n+# required ( add_probe_vfs_getname does that ). So call\n+# skip_if_no_debuginfo with argument as 1. This is to convey\n+# that test only needs to check for debuginfo, and not specifically\n+# line number\n+skip_if_no_debuginfo $PROBE_NO_LINE_CHECK\n if [ $? -eq 2 ]; then\n \tNO_DEBUGINFO=1\n fi\ndiff --git a/tools/perf/tests/shell/lib/probe_vfs_getname.sh b/tools/perf/tests/shell/lib/probe_vfs_getname.sh\nindex 88cd0e26d5f6..2c5252a38ea1 100644\n--- a/tools/perf/tests/shell/lib/probe_vfs_getname.sh\n+++ b/tools/perf/tests/shell/lib/probe_vfs_getname.sh\n@@ -39,7 +39,18 @@ add_probe_vfs_getname() {\n }\n \n skip_if_no_debuginfo() {\n-\tadd_probe_vfs_getname -v 2>&1 | grep -E -q \"^(Failed to find the path for the kernel|Debuginfo-analysis is not supported)|(file has no debug information)\" && return 2\n+\tno_line_check=$1\n+\tdebug_str=\"^(Failed to find the path for the kernel|Debuginfo-analysis is not supported)|(file has no debug information)\"\n+\n+\t# search for debug_str using simple perf probe if the\n+\t# test only needs to check for debuginfo, and not specifically\n+\t# line number.\n+\tif [ $no_line_check -eq 1 ]; then\n+\t\tperf probe -vn --add 'inode_permission $params' 2>&1 | grep -E -q \"$debug_str\" && return 2\n+\telse\n+\t\tadd_probe_vfs_getname -v 2>&1 | grep -E -q \"$debug_str\" && return 2\n+\tfi\n+\n \treturn 1\n }\n \ndiff --git a/tools/perf/tests/shell/probe_vfs_getname.sh b/tools/perf/tests/shell/probe_vfs_getname.sh\nindex 5fe5682c28ce..b0878f571449 100755\n--- a/tools/perf/tests/shell/probe_vfs_getname.sh\n+++ b/tools/perf/tests/shell/probe_vfs_getname.sh\n@@ -16,8 +16,13 @@ skip_if_no_perf_probe || exit 2\n add_probe_vfs_getname\n err=$?\n \n+# Invoke skip_if_no_debuginfo with argument as 0,\n+# since the test needs suitable line number for getname\n+# along with debuginfo check.\n+# Argument \"1\" is used when to convey that test only needs to\n+# check for debuginfo, and not specifically line number.\n if [ $err -eq 1 ] ; then\n-\tskip_if_no_debuginfo\n+\tskip_if_no_debuginfo 0\n \terr=$?\n fi\n \ndiff --git a/tools/perf/tests/shell/record+script_probe_vfs_getname.sh b/tools/perf/tests/shell/record+script_probe_vfs_getname.sh\nindex 002f7037f182..48063fc2b221 100755\n--- a/tools/perf/tests/shell/record+script_probe_vfs_getname.sh\n+++ b/tools/perf/tests/shell/record+script_probe_vfs_getname.sh\n@@ -38,8 +38,13 @@ perf_script_filenames() {\n add_probe_vfs_getname\n err=$?\n \n+# Invoke skip_if_no_debuginfo with argument as 0,\n+# since the test needs suitable line number for getname\n+# along with debuginfo check.\n+# Argument \"1\" is used when to convey that test only needs to\n+# check for debuginfo, and not specifically line number.\n if [ $err -eq 1 ] ; then\n-        skip_if_no_debuginfo\n+        skip_if_no_debuginfo 0\n         err=$?\n fi\n \ndiff --git a/tools/perf/tests/shell/trace+probe_vfs_getname.sh b/tools/perf/tests/shell/trace+probe_vfs_getname.sh\nindex 7a0b1145d0cd..6833fba12086 100755\n--- a/tools/perf/tests/shell/trace+probe_vfs_getname.sh\n+++ b/tools/perf/tests/shell/trace+probe_vfs_getname.sh\n@@ -28,8 +28,13 @@ trace_open_vfs_getname() {\n add_probe_vfs_getname\n err=$?\n \n+# Invoke skip_if_no_debuginfo with argument as 0,\n+# since the test needs suitable line number for getname\n+# along with debuginfo check.\n+# Argument \"1\" is used when to convey that test only needs to\n+# check for debuginfo, and not specifically line number.\n if [ $err -eq 1 ] ; then\n-        skip_if_no_debuginfo\n+        skip_if_no_debuginfo 0\n         err=$?\n fi\n \n","prefixes":["V3"]}