Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 045C9C636CC for ; Tue, 7 Feb 2023 16:19:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232715AbjBGQTf (ORCPT ); Tue, 7 Feb 2023 11:19:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232678AbjBGQTb (ORCPT ); Tue, 7 Feb 2023 11:19:31 -0500 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B3C72684D for ; Tue, 7 Feb 2023 08:19:30 -0800 (PST) Received: by mail-pg1-x532.google.com with SMTP id 5so6839018pgd.3 for ; Tue, 07 Feb 2023 08:19:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=RlSiKVYitHXZrK+MPuhrh3DUz6tNwiqlJs7cik50spA=; b=hxkUF7IJQKTCWwX0hcn7zpX/5nQj+y+GbwSoUJNewmfW1dCYjU+zo8xNG2mW9a9Tv4 j1+c+GB7a2uk1a23oO0b0lYBFkK4+yUhGaSEw8VJ+chXhRvZbRuy6QzlV4GFowV4BfVi 5ZCCM2MoD9dRz+sdAwNO7SlUDjrgnzg3jCRyI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RlSiKVYitHXZrK+MPuhrh3DUz6tNwiqlJs7cik50spA=; b=XD5VRVZlaXFht5bICsG8S6UYcSwB99ORoFU/GODXB35YRC2j8wO/X2VXfuLlyjA31f OWoc1y43QPQndn2rIf69tYgntkX0SoCptnkiEp4YQzvGlG88V+mIvF1ydtgJPTBGz3Q1 UniPfU17mEXFzw0NFRsaVrqNsByYlO3hltdOxuN4YCIPY322VX97U8TUxCU3FXGNq8sa Bxm3LqosDVjgUuCOn7J7w3yc5odJY0BKSeQhIESzHOgbR89cQrpmEXmn4n2d6MTNN181 1Dssn+wovdvjPY+Me6oTNs+O/6OkUHcw86lIH3mFN9cimtv0Kq34Ed13TV59KFEHpabK h88g== X-Gm-Message-State: AO0yUKUbCJF9megf+kdxU6Lc0bvl41abGJO9gvvuhD8X1RCZ/b/y/3yJ F74ueJmRl9e2CNy8JSpD3qf1IEGOjpu1zIZTZhWxZQ== X-Google-Smtp-Source: AK7set8QApAe5LqnuLywRCcIgA1Kw2RoXeF3miD2dWA1oV2FQwTn96+upFkZJB415Y9E8hNLaCZRsXhbYygWyhc6oVU= X-Received: by 2002:a62:3808:0:b0:5a6:5841:6570 with SMTP id f8-20020a623808000000b005a658416570mr977619pfa.51.1675786769835; Tue, 07 Feb 2023 08:19:29 -0800 (PST) MIME-Version: 1.0 References: <20230201163420.1579014-1-revest@chromium.org> <20230201163420.1579014-2-revest@chromium.org> <20230207103519.1f0ef013@gandalf.local.home> In-Reply-To: <20230207103519.1f0ef013@gandalf.local.home> From: Florent Revest Date: Tue, 7 Feb 2023 17:19:18 +0100 Message-ID: Subject: Re: [PATCH 1/8] ftrace: Replace uses of _ftrace_direct APIs with _ftrace_direct_multi To: Steven Rostedt Cc: Mark Rutland , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, bpf@vger.kernel.org, catalin.marinas@arm.com, will@kernel.org, mhiramat@kernel.org, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, kpsingh@kernel.org, jolsa@kernel.org, xukuohai@huaweicloud.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 7, 2023 at 4:35 PM Steven Rostedt wrote: > > On Tue, 7 Feb 2023 16:21:49 +0100 > Florent Revest wrote: > > > Actually, I'm not sure anymore if we should delete the !multi samples... > > > > I realized that they are also used as part of the ftrace selftests in: > > - tools/testing/selftests/ftrace/test.d/direct/ftrace-direct.tc > > - tools/testing/selftests/ftrace/test.d/direct/kprobe-direct.tc > > > > It does not really make sense to use the ftrace-direct-muti sample as > > a drop-in replacement for the ftrace-direct sample there since they > > don't really do the same thing so we would either need to change the > > test a bit or the multi sample. > > Also, we would still need to adapt the ftrace-direct-too sample since > > it has no multi equivalent and is required there. > > Let's not delete the samples, and they do test slightly different use cases > (although the code may be somewhat the same). I rather still keep that test > coverage. > > -- Steve Ack :) Thanks Steve! I'll undo the work I've started to do on this and send a v2 shortly afterward.