Received: by 2002:ab2:6f44:0:b0:1fd:c486:4f03 with SMTP id l4csp23410lqq; Wed, 12 Jun 2024 15:12:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVaRSvpe3Fte+eLxmK5KSXV0/6t+xg5PWJiKcW2zRa7JFfzi91JizDk2vq+mAsvp9h2OSi/tJYTWlzuAW06hjo5Ni9/u/3O/IGdoiWWqw== X-Google-Smtp-Source: AGHT+IF2Ah9RB3j2P+17Nl15zXHhmht/SCFXtWGOQtRrIn8JcaJ6FGnAeduUrNmFz+6F59QdepFQ X-Received: by 2002:a05:6a20:9785:b0:1b6:9c60:318e with SMTP id adf61e73a8af0-1b8a9ba5c7cmr2620843637.16.1718230359170; Wed, 12 Jun 2024 15:12:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718230359; cv=pass; d=google.com; s=arc-20160816; b=Q4qfP9ffFVHOfXD36hrC3gCcuMYv3KcS7OnbluP6Dm+m4I6F31tAP31XlpFmucGGlG zkEK2J3WS6k9HoRnRjNvJMO49day0dWWNwfG19CTIypufX9iNJTyKPO03QKB1N9HvcG8 nImA/rHOi6r/tOYd6Y15XMN1amg96eJXQ3C1WAsr6on1gnXmkQn4KOJP8Y6P3IhHymFS yRen05erhqKhBjsSeskvFEAWgu8uzfWg/1ENsUBYe2dPA/Reb+I2VwqqUDuAZ8m7xPue Qvc6nmwHzMexDAdKplCFCAaCDl2vj+hNtFkJA1x2XgwFYcd3m6ycQUOUTK8rH/45Qi2m ZXqA== 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:message-id:date :subject:cc:to:from:dkim-signature; bh=nbOlXyHIbkj6IFz4ywp1tyPReVfigz5nLbJhJ/jFkGU=; fh=d2uWUuVlSG/Jut3a8o5WJsQvvcD6qfwUArp/NFKQOG4=; b=FKCAINaxy5rf3ddI8P6yitV5TJXrtdE2xs/EPypdjO4B2wRG2g933pWWlSAhe6zyi8 Bo4uQqzyPubz5GAhIErtW+Nbsj+qmIVAryH5e3x/IbNTQkQjPWhY2gr72NGSJ7jEUCB+ zhmBQkNSaucuCkX77apxhUFmZIgoupA7quub+mXLhs8t35JjyF5J1Wy/mGFpxWSLbsmW 8VFy/9FG0YS3eMW3OISLwT2VcLFYe9qjeXtkWL83PQ6JZ7lIncckvT2dbv9nH9zXa+ts O+rZ0fSeX9WsGoP9nXbboyK6vbH5KyhLs4Lkus0PqfIO7v48lNthUextRskKWuu+/f8W tR8Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eaSDEKGh; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-212308-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212308-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c4a76a5bfdsi2303828a91.110.2024.06.12.15.12.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 15:12:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212308-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eaSDEKGh; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-212308-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212308-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 90F3E283AC3 for ; Wed, 12 Jun 2024 22:12:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B0BCD12C49E; Wed, 12 Jun 2024 22:12:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eaSDEKGh" 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 CFED11C14; Wed, 12 Jun 2024 22:12: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=1718230334; cv=none; b=djZjmpp1MmBBqe1o7oS0yZ7axeJFmrznpnYAlxB6LP/n+3BEU0RN7L04NNrnnUbSRLxOiqyPCSbJjcqFdu/PxhWcREWpP1nEw1X2tG1eO432Hyb4Dyacv1O1e6YONYFXwM4iEmYF8Kb475o2U7JhwYdkH/B3if/aBZ96heiGArE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718230334; c=relaxed/simple; bh=u7GHi5Z1GZsq+IxhBO/WJI3EakrV1PcZZ0OzD6obEbQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=HyPKwZdUnSo3zbtb/XE5Qbt0otBLiwmpjRBHIxIjkA8nKh0feOJto6t60Q8U2qsIdF2HJz/A052tEU98JKvn/X8psMsvvILdDvdT/5BuofPWcaZgih1K8a4rge+7npWoTacvERPXKemJxKbEF1na8P34hTa+o1I1/5WSZnU+WS0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eaSDEKGh; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2575C116B1; Wed, 12 Jun 2024 22:12:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718230334; bh=u7GHi5Z1GZsq+IxhBO/WJI3EakrV1PcZZ0OzD6obEbQ=; h=From:To:Cc:Subject:Date:From; b=eaSDEKGhkM2xrA4E0ZxP7iIKy4aKLWT9Si877cXaIg6KBLgbkH5EkaK658PolKZ1L gtYDPLyGifDB3P8tgWQIH1mFdMHWLjcH/6VOSlSrRC9WwWzRzFipLeO2TbquXUA/PA 4gzsRE1f1n+TeqCg6LaxGLDXF5crzPp52nmQxDnfLQ6MOKiGb9siOhsZOCi4T7cXOI dabEUinztOrM14elcnjXRD5q13tGc5JuwBuSfQdz4TblWEVUhtoRMVKHruDp1pw+1k Gbr5XmC2v48+mu1kijPM5DXdR6dZz8OwhKlQ1DRuVaob9gqKciRPE86gJB7MCBxUGM jkcP4qr1DwfxQ== From: "Masami Hiramatsu (Google)" To: Steven Rostedt , Shuah Khan Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, mhiramat@kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH] selftests/ftrace: Add required dependency for kprobe tests Date: Thu, 13 Jun 2024 07:12:10 +0900 Message-Id: <171823033048.152840.662759412433336839.stgit@devnote2> X-Mailer: git-send-email 2.34.1 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) kprobe_args_{char,string}.tc are using available_filter_functions file which is provided by function tracer. Thus if function tracer is disabled, these tests are failed on recent kernels because tracefs_create_dir is not raised events by adding a dynamic event. Add available_filter_functions to requires line. Fixes: 7c1130ea5cae ("test: ftrace: Fix kprobe test for eventfs") Signed-off-by: Masami Hiramatsu (Google) --- .../ftrace/test.d/kprobe/kprobe_args_char.tc | 2 +- .../ftrace/test.d/kprobe/kprobe_args_string.tc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_char.tc b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_char.tc index e21c9c27ece4..77f4c07cdcb8 100644 --- a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_char.tc +++ b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_char.tc @@ -1,7 +1,7 @@ #!/bin/sh # SPDX-License-Identifier: GPL-2.0 # description: Kprobe event char type argument -# requires: kprobe_events +# requires: kprobe_events available_filter_functions case `uname -m` in x86_64) diff --git a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_string.tc b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_string.tc index 93217d459556..39001073f7ed 100644 --- a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_string.tc +++ b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_string.tc @@ -1,7 +1,7 @@ #!/bin/sh # SPDX-License-Identifier: GPL-2.0 # description: Kprobe event string type argument -# requires: kprobe_events +# requires: kprobe_events available_filter_functions case `uname -m` in x86_64)