Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp158379lqh; Fri, 3 May 2024 17:34:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUJcUKm1JwC8nMm3Q3Y3g6SjUm2jopDUJZNHgCmrkwxg+eeUiN00yQThgWa98bPeLthW4BFxFtVhTpDDZX6P3VMzZ19hQYYkHJg+vp6/g== X-Google-Smtp-Source: AGHT+IG+HcXp8W4l9QnCqgCBnoDjH9iDO0+or1vHJfd3i2akBK4Cs5gxZfnJALKFFXJOjDEjaz1N X-Received: by 2002:a05:6359:5a8f:b0:18f:81e1:c6b6 with SMTP id mx15-20020a0563595a8f00b0018f81e1c6b6mr3775919rwb.1.1714782856298; Fri, 03 May 2024 17:34:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714782856; cv=pass; d=google.com; s=arc-20160816; b=ursHweQYQfDf+SdQL6NGVcxxonDt9Zvqbd4EvwC5rnR2lAAFJul4qBib3OlvA7fSAA zPIffdOfhM4vVNTRLDtMSGYOeM2DmIxD6UHTtBmLLSBOaCbnywKlSG4+vhdKR/oCGwCb D326dofyp5X+Xn6xVGNZoBbPp9a3H6e0/j8cDuhzsZp9ZxXnPt+eG4/Cz5NEqQtALdC3 KhMSfbt8Bd7UTCQhMbUFiO+13qqNaT0SibvbecUFIOS/xXJpCz3p78sG7mi+9XQ/a7WE rR/AWhv4IsydPXY+ALB4zQthVtDkpWoKiFrNtsuTcDa1M6FyHu5w5dDfhaLGJQEBx6Hg 0S6g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Fy6nrz46bTEtfIAi4cM3/b1baFaKWSdyvXGBydaAsPA=; fh=pD+UgTAO/RWppWpSif5h/IKJ01rvqP7veuP5+bvLFCU=; b=imbHJ3PrjaBfuPqG9F2y1Q46vq3uWM2kPl0Y4cS0blvsd52k3gY+hBSZgjxKEj14Fr IlfDcMVkbR5+TSCex9wYzf4aaIS/KgOwJiMAv7iR5q01EuSXritnPo1jz9zvduil91XC HaoLR1ru1gnbJL7xrU2I6oMD7KIc0nT/QAJgDoq0ssxN5HvNMmnPbmiNMiigNzB5uW9K sXXNlO1umOHydA3Rp9Rd1TR7Z+mqqYeY//o2wLS7FA8vYL7z/vp2K+RcRmjpiq5yHabz obVcGXtUZhYbGGg9FQejFf/SOJuBz/R1gTvkIw3fyaHdXReE4lf6Lek1dwo6sjBBh/8A yAvA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gr8bi6Mh; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-168455-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168455-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id s124-20020a637782000000b0061adbc8e3e6si3331305pgc.108.2024.05.03.17.34.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 17:34:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168455-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gr8bi6Mh; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-168455-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168455-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 062E1B20918 for ; Sat, 4 May 2024 00:33:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4F90B17C9; Sat, 4 May 2024 00:33:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gr8bi6Mh" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 73ECC6AB9; Sat, 4 May 2024 00:33:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714782794; cv=none; b=DAcFbFgrqaFk6SkumRUFBs9nStnFUv1aPutmj0ON9AIXc6LU88QWxwG+f/gk3LR4pzABk9zK21l7rhUBtYuaRkmJ2cHVCvEc8sm39gJvjSIoXxPLfsSjSlRecoro7LM6DjTwZyynIYnfgWf7ygCE5GQ/4Bd+ocJaDZV/bePfiaE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714782794; c=relaxed/simple; bh=l/mKd3Tz3NUZlmQupCqAk03v+/7KAwnTs3xvrc0YAWM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=aNsTLYoudi6juuSpPmdToJWwIb5FWUBrd/8aAJ4c2S0B4zCbvJLWR9vOzcYM7Ws9g0Fip/Y4sR5F42I1aMaDhoRQZdTXrBrYM/RkYvivCI/uXgyArKt8ypEhI7/1LwlzqNGRb1RVDhXpGdyIi57EuRvy2gochREozysqys7iLL8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gr8bi6Mh; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81B2AC116B1; Sat, 4 May 2024 00:33:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714782794; bh=l/mKd3Tz3NUZlmQupCqAk03v+/7KAwnTs3xvrc0YAWM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gr8bi6Mhcg9xLL6FPZaVqvxubWa+K1C9apfuLoNG8/iwGhsG+JFlfqgh8HegQSfW7 5+HL45bC7+Z+q4YEo/iJI4gSDJ1e/OYIkxKhqXit5ssNs2EGPT+M9TwYzvw92cMtG0 7Nux+SUxp1e+a86K+93USw9HZh6Y5+y/jTD2qIn+EzuRGNLmRGd5YvWYf5qZ7Bl+OZ IQgtHDc6ShvbrA/cLcJmDDkYXHjzXkQpn/yNHSkNmblWwPpIxZAjYAfKnQgGGW9B4Y jKgWL6pSiPgkDojbo12y5AlvFPewKkXCGv/UsVN1UxRtzg15UKu9x+WaxyLfznvMFQ 8/BwjT/FIAtFQ== From: "Masami Hiramatsu (Google)" To: Steven Rostedt , Shuah Khan Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, mhiramat@kernel.org, Jiri Olsa , linux-kselftest@vger.kernel.org Subject: [PATCH 1/2] selftests/ftrace: Fix BTFARG testcase to check fprobe is enabled correctly Date: Sat, 4 May 2024 09:33:10 +0900 Message-Id: <171478279040.109670.8403406322028922001.stgit@devnote2> X-Mailer: git-send-email 2.34.1 In-Reply-To: <171478277880.109670.10932081511777701353.stgit@devnote2> References: <171478277880.109670.10932081511777701353.stgit@devnote2> User-Agent: StGit/0.19 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit From: Masami Hiramatsu (Google) Since the dynevent/add_remove_btfarg.tc test case forgets to ensure that fprobe is enabled for some structure field access tests which uses the fprobe, it fails if CONFIG_FPROBE=n or CONFIG_FPROBE_EVENTS=n. Fixes it to ensure the fprobe events are supported. Fixes: d892d3d3d885 ("selftests/ftrace: Add BTF fields access testcases") Cc: stable@vger.kernel.org Signed-off-by: Masami Hiramatsu (Google) --- .../ftrace/test.d/dynevent/add_remove_btfarg.tc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/ftrace/test.d/dynevent/add_remove_btfarg.tc b/tools/testing/selftests/ftrace/test.d/dynevent/add_remove_btfarg.tc index b9c21a81d248..c0cdad4c400e 100644 --- a/tools/testing/selftests/ftrace/test.d/dynevent/add_remove_btfarg.tc +++ b/tools/testing/selftests/ftrace/test.d/dynevent/add_remove_btfarg.tc @@ -53,7 +53,7 @@ fi echo > dynamic_events -if [ "$FIELDS" ] ; then +if [ "$FIELDS" -a "$FPROBES" ] ; then echo "t:tpevent ${TP2} obj_size=s->object_size" >> dynamic_events echo "f:fpevent ${TP3}%return path=\$retval->name:string" >> dynamic_events echo "t:tpevent2 ${TP4} p->se.group_node.next->prev" >> dynamic_events