From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.openvz.org (unknown [69.168.225.77]) by lore.virtuozzo.com (Postfix) with ESMTPS id B5D648015C for ; Tue, 8 Sep 2026 21:33:15 +0000 (UTC) Received: from mail.openvz.org (localhost [127.0.0.1]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 688LW0dN011805; Wed, 9 Sep 2026 00:32:01 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 688LW0dN011805 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="e3gmKZF4" Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 688LVrhs011790 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Wed, 9 Sep 2026 00:31:54 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 688LVrhs011790 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-484357599a4so3496083f8f.3 for ; Tue, 08 Sep 2026 14:31:54 -0700 (PDT) X-Gm-Message-State: AFuF++mfyXlh8s6VGMbzMCKy3xTpNEyspfk2NV8WYa2Kc4+yC3Ji0yHs 30wF37JE8jbemvp7SY8t3vESkJmQrQ7Kk1/AeuvqbZKGdvq0UEUgIlGPtnywkI7u4JxnsUT9z5p CyOz9v9+e/HxE9MACd35UyrAgdKqzEiQeFLH9/xvEwZipCMzfv8jlmg== X-Gm-Gg: AYBFou2l7gpDdTwukimOrcc9l2DqniddKmWg7v/yY7t21xFJXhXzrg2eO5y8QTw64AO 757ZO7qCUCaZtmEKI1OJhnwMoENkgjJtWD6l2pnd5pNr4HVGRM6jyKgqWAIUC3fsFVCEU1zXgBp 8qzsFjbxLgkibvjGyFF3bus00h+4x7q9nUpA7GX2l0ZMyxJjpbco0qcThc5l4mgs1rC14erYgfn tFhEF1Y6Gt3Q4C7Xv05pY0vi+XLMtOV/rTk7eDcbhX0OSt7IFp2VM4oRjnVNH3u8zI/hqehy0fg w9b2efrS8ugxYPHBaeu3uBS1URhhnm7fLfwW4v8LKBys8dN6G9GNeihNnJ1KtbJGg25Ysb3XUkR LNxpWS2sKdyi4gcgSSyZ8abo2Ig== X-Received: by 2002:a05:6000:4b0c:b0:482:dac8:cd0d with SMTP id ffacd0b85a97d-485aaddef7amr3732005f8f.21.1788903113600; Tue, 08 Sep 2026 14:31:53 -0700 (PDT) X-Received: by 2002:a05:6000:4b0c:b0:482:dac8:cd0d with SMTP id ffacd0b85a97d-485aaddef7amr3731943f8f.21.1788903113106; Tue, 08 Sep 2026 14:31:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1788903113; cv=none; d=google.com; s=arc-20260327; b=M0IQgbQOFRcM1kbtMv9eQHSFQhFefEq0MdIM/1gXUSQdFiva8fYfbK4uvu+6o1vkRL oSV8hKLl7NZwapR5cWBS7v7Ig37smoxA2sIVG8HdBG0sD9HOFkmQEbbz9xt6dFY9Wd98 bGEXRrTGScBUnhKAuA102pgy7HwGRyu1pp7j9EbrsCXIQCxi7pOXxFz20jWKDt4yWyOk PHEX52AL62m/DSYrtrCnm3n6JUVkp3lyo/UcF2wT1/k7QLvUohigOiYSx0eoFr48Ir4n oYIyxSyduphFBHhqfy5SnSKDhTjpr5yGRLfaxyyF+0ZCfLN4l4nD2wr3gFtAHEn6VVJ+ U71w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=4p2kH3nNkGZUWnnCfRDsJsUF3/dBj3nfVLCQV/OsRXw=; fh=WpT6aB7RBAGHZeWZzqAr71yzRFbPTYkPWKsRagLn48Q=; b=L2xoRfRNv1Xtjs5/uN3AkPFCuWZlRP8h7uqxwMeWgw2eGfPmbNlHGJFY4Oa43nTfl8 Pth9p81d35apVOkRoXKdvdrUq0iddiVYDvtp0VwF1wzRFu9Lsu/vb4QPv/j+pKmeT9lF Oi40ylk+80Z6BbkOXZSC/8gLeqtwzULt6zKNucVfGcI+1yyNE98R6t9nkTHExIg1KWs4 7vru5qXItFB8BeAO0Y+C1VM+cDr0aPQugyZPFUMipe9pVJuTt0cTzV5sbIErJ9Xmj+TM c6vTIxH0uwx5+I4fWzPJ+/apXcd7uv0xzK6I5u94yRogieIPcNRjjdNpxlC/RUvKmXdy KMfw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=e3gmKZF4; spf=pass (google.com: domain of eva.kurchatova@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=eva.kurchatova@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: from relay.virtuozzo.com (relay.virtuozzo.com. [130.117.225.111]) by mx.google.com with ESMTPS id ffacd0b85a97d-485883b8f6fsi31723822f8f.109.2026.09.08.14.31.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2026 14:31:53 -0700 (PDT) Received-SPF: pass (google.com: domain of eva.kurchatova@virtuozzo.com designates 130.117.225.111 as permitted sender) client-ip=130.117.225.111; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=e3gmKZF4; spf=pass (google.com: domain of eva.kurchatova@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=eva.kurchatova@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=MIME-Version:Message-ID:Date:Subject:From: Content-Type; bh=4p2kH3nNkGZUWnnCfRDsJsUF3/dBj3nfVLCQV/OsRXw=; b=e3gmKZF4IwNv hostPSXiYinIOavMJiXyxm5MIk768OJb0J1xLELWivIDQZyI43gU4yIy5q9EsFFSvt31q0lDdXejS nPRovfoxFR878tQGhQG9G+dw2Wh0lcdsn9XUtHYKFCXzA0FA/WDXE8ubbn1ae0bazzVgYIqG6GnGZ rYxvKI9YHIUgau+quEeFUUzsnbtf+quXDnHo48xW5nTTiOFoaWs0jFUIXBixsUc0YCH08OPeTbdJW gGxfJacFqgfZCamMtMfb7/AbW+8E+iXnDvuVE+On2iNKcBjJsGMowBhSQRqMq+Ez4c0McPUFwEwEd gSTRWiO3mP78Y1YiOlQfeg==; Received: from ch-vpn.virtuozzo.com ([130.117.225.6] helo=LekKit-T14) by relay.virtuozzo.com with esmtp (Exim 4.96) (envelope-from ) id 1x43NS-002VTt-04; Tue, 08 Sep 2026 23:31:42 +0200 From: Eva Kurchatova To: khorenko@virtuozzo.com Date: Wed, 9 Sep 2026 00:31:48 +0300 Message-ID: <20260908213150.2677032-2-eva.kurchatova@virtuozzo.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260908213150.2677032-1-eva.kurchatova@virtuozzo.com> References: <20260908213150.2677032-1-eva.kurchatova@virtuozzo.com> MIME-Version: 1.0 X-OZ-Fwd: true Cc: devel@openvz.org Subject: [Devel] [PATCH vz10 2/2] selftests/ftrace: skip gcov symbols when picking a function to probe X-BeenThere: devel@openvz.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: OpenVZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: devel-bounces@openvz.org Errors-To: devel-bounces@openvz.org kprobe_eventname.tc takes the last kallsyms entry whose name ends in vfs_read and puts a probe on it. On a kernel built with CONFIG_GCOV_PROFILE_ALL=y the counter symbol gcc emits for the function sorts after it: ffffffff819bd1e0 T vfs_read ffffffff845013e0 t __gcov_.vfs_read so the test picks __gcov_.vfs_read, which is not a function entry, and the write fails: kprobe_eventname.tc: line 10: echo: write error: Invalid argument Leave those symbols out of the choice. The test then picks vfs_read and passes; without a coverage build nothing changes, as no such symbol exists there. This is the same class of problem as commit 23a4b108accc ("tracing/selftests: Fix kprobe event name test for .isra. functions"), where a compiler-generated symbol was picked instead of a real function. https://virtuozzo.atlassian.net/browse/VSTOR-144622 Feature: fix selftests Signed-off-by: Eva Kurchatova --- .../testing/selftests/ftrace/test.d/kprobe/kprobe_eventname.tc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_eventname.tc b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_eventname.tc index ba19b81cef39..0688a5c47d1e 100644 --- a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_eventname.tc +++ b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_eventname.tc @@ -5,7 +5,7 @@ :;: "Add an event on function without name" ;: -FUNC=`grep " [tT] .*vfs_read$" /proc/kallsyms | tail -n 1 | cut -f 3 -d " "` +FUNC=`grep " [tT] .*vfs_read$" /proc/kallsyms | grep -v __gcov | tail -n 1 | cut -f 3 -d " "` [ "x" != "x$FUNC" ] || exit_unresolved echo "p $FUNC" > kprobe_events PROBE_NAME=`echo $FUNC | tr ".:" "_"` -- 2.55.0 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel