Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp976383pxu; Fri, 23 Oct 2020 19:19:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/80IRDMppX0JXfwwH59hPPvE3QiiGbxYP4+46uG+VD/j5vD5GFZq2YImaX7DsIQludKrm X-Received: by 2002:a05:6402:151a:: with SMTP id f26mr5274240edw.386.1603505956531; Fri, 23 Oct 2020 19:19:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603505956; cv=none; d=google.com; s=arc-20160816; b=oOssn9Pb9kk1TmdVtJI8pKQa2VSnRv6dWcgkkEKHb4/SjfpfJoeLrUgGFrM5AI4mqU 0Zc4BiLP/pNf4rluPQvfm2c/z63UqgIciwfhMEqcDZjk56HJN9kr8OjF0EGJldLwVCDS MXnmLibQijHry14/hJQwpKkJa1b50BI8rrZ0P3A70jAY7dWDL9FkTr0DTJxSaY46F7ao aByH6wt5yHUOUOcqcVxtCDhA98KvY55liy50mlRbHKvpp8vn0mHxM60O83njRw4x7ls0 ekp4/kZ+T+/y9/HfNvV5xUikW+TH/Vi8KKSE1VKFM4EvvvfatI8lZ730Y+l0XdYhV51d NrhA== 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 :dkim-signature; bh=cvylXyOcbmfn5SmDxxspcaMxwRf8ZWzEmwV/YjHhHrM=; b=uFRBUGUsMuYTRw8bsdAKegPeRup3BkVTnHjcLaOxWm3M25rKtEH7EPg5ejlbCPXXCh Uz42pl8s3o5WKILf5drqEsv2mc5v+QViADm5aDSs7Er5kC6QfshdSY1/3yFo6ClcZY4K 1skuRk1/ygldw+Cdc70m7feKKMwH1iqmNJH4U14hRimDZteVESai44SlwjzlHzTiNJ6s kPPvfty9P85Ea13qij8KDu6buBokzWK88QcNBaVjSv54UtG5bFhoQ5I6Oeo3d73d4k5w pi/lhMWPT4yJRPsTRk0rBax6V4LHcgL+GOx75iq93v0yUeZPVOlx/QQK46hkyIfYfC5Y 9itA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VJUuzDMy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n10si2028608eja.436.2020.10.23.19.18.53; Fri, 23 Oct 2020 19:19:16 -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; dkim=pass header.i=@kernel.org header.s=default header.b=VJUuzDMy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759115AbgJXBbC (ORCPT + 99 others); Fri, 23 Oct 2020 21:31:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:35110 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758421AbgJXBbC (ORCPT ); Fri, 23 Oct 2020 21:31:02 -0400 Received: from devnote2 (NE2965lan1.rev.em-net.ne.jp [210.141.244.193]) (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 3605924248; Sat, 24 Oct 2020 01:31:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603503077; bh=3bvdQpcDajIOAP+NZa60PaBpOWVSUIRRs73iCB/PJYg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=VJUuzDMyLzhSfjNDGnzhTiRlYAJygQ/WpGw+lktpMqgGFJ4vREbf0tzwRqvCNARyX RTQjhCmSQ2v7r0dRb4dSrUAZ3NHGoLu+81ygMn80B2WQYanEcxkOeuZd4blB8xwuxH 85GJL0KHhX2ffLQk/i048N6ieHn/9Z5XM8wAgnVo= Date: Sat, 24 Oct 2020 10:31:12 +0900 From: Masami Hiramatsu To: Steven Rostedt Cc: Alexander Gordeev , 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: <20201024103112.64372203e6729279e9ef92f5@kernel.org> In-Reply-To: <20201023093523.65c495f8@gandalf.local.home> References: <1603443123-17457-1-git-send-email-agordeev@linux.ibm.com> <20201023093523.65c495f8@gandalf.local.home> X-Mailer: Sylpheed 3.7.0 (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 09:35:23 -0400 Steven Rostedt wrote: > 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 Good catch. BTW, can we check the filter-bility by grep the pattern from set_ftrace_filter? Thank you, -- Masami Hiramatsu