Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp798031pxu; Fri, 23 Oct 2020 13:34:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkCuatjjJNU1v5cbj2VemsB0QLTRZktRRMVx/PY0/a1txtlKGuO3vgAx5liJYprD+p8hgp X-Received: by 2002:a17:906:1784:: with SMTP id t4mr3711761eje.489.1603485267348; Fri, 23 Oct 2020 13:34:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603485267; cv=none; d=google.com; s=arc-20160816; b=K1WBpArfFip1WY9nJbvLSqktO++0CBSprxYdwPAUNhHBZUAK5qOAiXWLgNT9+84yb+ yfQQXlGdJkR34tmn81EjBOg1RX4l2cmelGK/ymQoEyInsbkDwjEJXF5Wi8Z4rFYUxQNn ZFrli/KJPxjZspz3Uy13ryhnufXA6S/In3Aj9fA7fufis5zy9N1WeHoFeGdbL8gDGSm/ shPPXYR5jx/u8b1vAr2nIxEWO4CR/lAaJDSHXjsYdveIg/VVDNr7mnN0JQV9EKwyIWxw 2+btmRCZDkqo4PmwOMF5oWKqLo/cV7RIDKKkyQzFa5t8zPncw4dM/lCk8LvrMA5BKyCs 3u+g== 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=X9idcBKwYBc9b23E//F1/XntI79GGi4rxAhS27SJghM=; b=t7GhVbw/DjTPOdtiOA+3n0HCZdJ71wL5/4i7TBc2C034gQ7jBY1oWR8viODQ4VHoIV 1+Y5a4iPk5ddtdnBl4mfllSKi5mJpl30KsO+TOkVT6ce5OFeFvy5aLsARde/RMqBBVbk MbD6l77gYBx/4Vt3OmLg5SFFIM2v1AokThL80JZQepZshEpXIOkhAA0oZqbo/Bqb+AEn REFJlUnYhNAV2+Vuf55QbZ/okikTNvUUH9X3OXawWwTuDHPoEmwsw5DIKg1wN7hzex5o a59fi83tqQMct3GUydlEuoljV8Oh65r5GV7oW1y72MXgkXrHejYlxag1bGRpGCELG2it NYdw== 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 e18si1644469ejq.261.2020.10.23.13.34.05; Fri, 23 Oct 2020 13:34:27 -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 S463965AbgJWPtv (ORCPT + 99 others); Fri, 23 Oct 2020 11:49:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:38358 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S463832AbgJWPtv (ORCPT ); Fri, 23 Oct 2020 11:49:51 -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 4E25120878; Fri, 23 Oct 2020 15:49:50 +0000 (UTC) Date: Fri, 23 Oct 2020 11:49:48 -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: <20201023114948.6900aa68@gandalf.local.home> In-Reply-To: <20201023151243.GA1537@oc3871087118.ibm.com> References: <1603443123-17457-1-git-send-email-agordeev@linux.ibm.com> <20201023093523.65c495f8@gandalf.local.home> <20201023151243.GA1537@oc3871087118.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 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. -- Steve