Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp798055pxu; Fri, 23 Oct 2020 13:34:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKtJS5znpCVwjqSF3hxWhARtqJwr4XHVgTyvHkw1KSi9qVwr7NRTg9Mzf3HLT3jawDAg2a X-Received: by 2002:a17:906:c094:: with SMTP id f20mr3911896ejz.550.1603485269844; Fri, 23 Oct 2020 13:34:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603485269; cv=none; d=google.com; s=arc-20160816; b=ypHFLZ56PUJviGebtGfaJidKmVLUfhNAz4Qu4QBq4Y5oF/2az+LsYdim7YLhQE5mWQ +dDnl1rRVrE586EzLKnns/DlTQuUdif4PRlWCAB5DxRcFf3zFqoE1wX14wCxLEp1Zp8Q mVstqhgjlKcskd3rLZHGcsfT2IUsGWhOhqO4s56jE+5rU2eYBhDFtcOaxZA8m+D7lJcC 7dgq8p/KCc1e7LWTOyhm1/PORrQYM4sfLHxhouCCcgZxI7iSO/8bn0w15Nm30O+O1Bng b2ks637ymu+P3RCDnOfjw2dHYjTOccvYWkwlTOSJziFmSR2KoWvqdQXOyq2V9WTIVA/v icaA== 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=Lm0PCyx7T2zZrFG4Nt2d2Dy6IxUlHkZybSqakkol5lM=; b=u4DC1SK8PoB3MTy6gQWf7P7RMTdhatS7jhGV1iQ80eWMyI6ozgLS4z2ebFXGjv9jO6 b5VThlTVHlMJZY5ZlQ6uAHuwJjWrMN407JCw1aeSZMsf8iUnbCO6Qo+DjaEZF/FRW+ms rGLKPxc/Q+b4CQWgSiBTd8+PdH8qwhAPpcQ3+kAz6f3rcpyIN4RSWFD1Xo/5+bt4mr3o LaUqFEMW++zsJX0CIxQQO3fwZICHQ43VprGRpgAmT6+q+s9WbXnrx6se6UHxZwLMb8LK vL+YiqSjMC4QVolypRCFANDdyN2RZF5DllGU7lFPP6ls1H8A6XLMGh3sRaj228eJ4bhK sj5A== 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 g26si1251354edr.209.2020.10.23.13.34.08; Fri, 23 Oct 2020 13:34:29 -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 S464009AbgJWPvP (ORCPT + 99 others); Fri, 23 Oct 2020 11:51:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:39746 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S463836AbgJWPvP (ORCPT ); Fri, 23 Oct 2020 11:51:15 -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 F3D2420878; Fri, 23 Oct 2020 15:51:13 +0000 (UTC) Date: Fri, 23 Oct 2020 11:51:11 -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: <20201023115111.1c0e8768@gandalf.local.home> In-Reply-To: <20201023114948.6900aa68@gandalf.local.home> References: <1603443123-17457-1-git-send-email-agordeev@linux.ibm.com> <20201023093523.65c495f8@gandalf.local.home> <20201023151243.GA1537@oc3871087118.ibm.com> <20201023114948.6900aa68@gandalf.local.home> 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 11:49:48 -0400 Steven Rostedt wrote: > On Fri, 23 Oct 2020 17:12:44 +0200 > Alexander Gordeev wrote: > > > > 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 > > > > Would you suggest to do the same with all occurences in > > eea11285dab3 ("tracing: switch to kernel_clone()")? > > Otherwise it does not really make sense to just fix couple > > of tests out of dozens. > > Yes. I haven't pulled in the updated tests, so I haven't hit the errors yet > (nor have I merged my work with the switch to the new name yet). So those > will most definitely break my tests. > > But because it's a more generic issue, we should have a way to find what to > use. Perhaps add to the test.d/functions, something like: > > FUNCTION_FORK=`(if grep '\bkernel_clone\b' /proc/kallsyms > /dev/null; then > echo kernel_clone; else echo '_do_fork'; fi)` > > and use $FUNCTION_FORK everywhere that references it. > > Let me pull in the latest changes, and whip up a patch that works on both the older kernels as well as the newer ones. -- Steve