Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp708284pxu; Fri, 23 Oct 2020 11:14:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5PgbYOcdMfiu3yLvL2Bk0xFjZiZYgPGZ2IU1oxSBJMN2vU3q5adrt2bRESWJJFJ5VpwzX X-Received: by 2002:a17:906:5488:: with SMTP id r8mr3126086ejo.483.1603476898290; Fri, 23 Oct 2020 11:14:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603476898; cv=none; d=google.com; s=arc-20160816; b=xMIXwabnXmaocuaC9SdQFVzd3vRpO6bb6f8vGxuOVKotzarw/eznCHqeW812t3daHU ZSq88H4PtwHVAvoSTSwbV58/+Onlr+g/73NUaotV54tiivdcMVje7/VoikSNTJDMvlH0 kirFx8VIGjaZmY0WtGzSpLqm1D0qQFrTna3/PikwF631a7fnI4mRppEc5SJ1rafCEM4s Yyt3HjS/bXA2Ye17hueii0oxjEwPw7LgN/DFtrp2jzrQ0Hzl9viZKfcmRAhr1tYq2uTT Z3AfreLzQYOveDCCyCD1eHYMk3nfOWZ52oI9v39O02xuuwo0Q5G1ujF+rYUyNzsMAAsR 8XVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=+Mr4ExBPBLci8LLSjX7R6Gov05MAZU4o/ei0xm+LqAY=; b=gLxsio/0jgqYCU6W89UNGG8tcQIhvMsAt0TS1ojzQnptAWq3yvae4glVU/qZc+3WJH 5ojcixHom9uBX6zD2EVDNZ94f2u9U+EA30CqG2rQI7MswUjMYVEQmzvybkG+CA0nJEKt z9niXmcEMVxrUd8u9fXxlw3ibHJPM/rVCnSg25AP/fx87OBcjepexKjbpO4GEgO43bY4 bKoYFNYHQGg5YK1L+R6TLS9w5GsG64wglGA4RAt2mdqP9qTPd+N7SgSGF8sVh/tskgr6 UfhiNhldoL+TJVzOobl5iIVXWVSzlTpDv3mmo4aGIGPzgAgpYg4aPNvS08yYiLJbx6lZ qDsw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ck9si1364258ejb.445.2020.10.23.11.14.35; Fri, 23 Oct 2020 11:14:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S465043AbgJWNf0 (ORCPT + 99 others); Fri, 23 Oct 2020 09:35:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:46528 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725901AbgJWNf0 (ORCPT ); Fri, 23 Oct 2020 09:35:26 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 61CEE208E4; Fri, 23 Oct 2020 13:35:25 +0000 (UTC) Date: Fri, 23 Oct 2020 09:35:23 -0400 From: Steven Rostedt To: Alexander Gordeev Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Christian Brauner , Masami Hiramatsu Subject: Re: [PATCH] selftests/ftrace: remove _do_fork() leftovers Message-ID: <20201023093523.65c495f8@gandalf.local.home> In-Reply-To: <1603443123-17457-1-git-send-email-agordeev@linux.ibm.com> References: <1603443123-17457-1-git-send-email-agordeev@linux.ibm.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 23 Oct 2020 10:52:03 +0200 Alexander Gordeev wrote: > diff --git a/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-notrace-pid.tc b/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-notrace-pid.tc > index acb17ce..0ddb948 100644 > --- a/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-notrace-pid.tc > +++ b/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-notrace-pid.tc > @@ -39,7 +39,7 @@ do_test() { > disable_tracing > > echo do_execve* > set_ftrace_filter > - echo *do_fork >> set_ftrace_filter > + echo kernel_clone >> set_ftrace_filter > > echo $PID > set_ftrace_notrace_pid > echo function > current_tracer > diff --git a/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-pid.tc b/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-pid.tc > index 9f0a968..71319b3 100644 > --- a/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-pid.tc > +++ b/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-pid.tc > @@ -39,7 +39,7 @@ do_test() { > disable_tracing > > echo do_execve* > set_ftrace_filter > - echo *do_fork >> set_ftrace_filter > + echo kernel_clone >> set_ftrace_filter > > echo $PID > set_ftrace_pid > echo function > current_tracer The issue I have with this, is that I run these tests on older kernels too, and tests that use to work on older kernels should still work. In fact, this fails on the kernel I'm currently adding new changes to! Perhaps we should have: # older kernels have do_fork, but newer kernels have kernel_clone echo kernel_clone >> set_ftrace_filter || echo *do_fork >> set_ftrace_filter The above still seems to work for me. -- Steve