Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2307386rdb; Tue, 3 Oct 2023 18:02:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGCKm4URn1m0DgHpBMnPkxzRwq2L07VZMd33ow0AkAa5WIGDNTwZmGS7HF+FL6EFtbVP3Z2 X-Received: by 2002:a0d:f245:0:b0:595:89b0:6b41 with SMTP id b66-20020a0df245000000b0059589b06b41mr1182054ywf.38.1696381336861; Tue, 03 Oct 2023 18:02:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696381336; cv=none; d=google.com; s=arc-20160816; b=uOcv2AGbmRTCTUme77Fk0EcM3bM9RX9ryw9x8sRnrN414pnJOKRcfwozxiEQfWm6JX DxypU6QgHts2xYI0eCju4AUBSQ/xHLOKxCt5KHP4woX1yBmlQctsl/A/x8TpVDk8SbkC /2ftohjBAKG8QX5Rx6seHoW9lyZA97EzpgTRysB40Sihnur8i8onIRCeixqxuYMKqsCX r5VWpp+3rEq9SWDw1ZiYUN/KdVZ+FeJKoDkuiWcjccLZBKWuTHXGT5KiIIevafiH6D5r 9pTrppputTho+q+kb98RSDwRF2mXSyB3zhMlgYHdEbI/GEyTigi9tjhxXxsjv+KRicRx PXHQ== 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=9iqWXlxyHoB2NcSEtqsqxC1tBCSgUf7hO+mRSFY888I=; fh=gcuVzvMGobho87TxJZXBeN0BpNqQVzs1RjAXQu7nTN0=; b=tuoFL2AMYzwSHFVFLXmRePdXM5sAAZ4lB7Eloas81qTX9C4K7LhV1OHYWo2S6P2hHK FahzZCvb0psZ9Y1pHG3hBEmJZKfSESJWFs4FPBReY5jZvb6FiS/o6CPSfvK7CXaB4zTa vZWZeVEhezFJASOJj8Do6oksS8/K4Rt7RtQxppFCwb6iLSiqPGb8GteqityxB0GD5d/8 2ZgwtNUHkEM7kqcENbyGtVy65aLcuyQVCkfn1p4JMtJiFrAXGLID+ASu1sr61vHYW8ba Yfd3VYPAUcN4kDczArFFN6dq6r3KJ8AF9w2QZIt+y1vJWVzwL3x/M1Z4vw/QHWuoJK1v U6mA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id n188-20020a6340c5000000b00578c9144913si2555395pga.364.2023.10.03.18.02.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 18:02:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 3F12381BB3F3; Tue, 3 Oct 2023 18:02:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232482AbjJDBCI (ORCPT + 99 others); Tue, 3 Oct 2023 21:02:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229794AbjJDBCH (ORCPT ); Tue, 3 Oct 2023 21:02:07 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B443A9 for ; Tue, 3 Oct 2023 18:02:04 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 38633C433C8; Wed, 4 Oct 2023 01:02:03 +0000 (UTC) Date: Tue, 3 Oct 2023 21:03:09 -0400 From: Steven Rostedt To: Daniel Bristot de Oliveira Cc: Masami Hiramatsu , linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V3] tracing/timerlat: Hotplug support for the user-space interface Message-ID: <20231003210309.4335307d@gandalf.local.home> In-Reply-To: References: X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 03 Oct 2023 18:02:14 -0700 (PDT) On Fri, 29 Sep 2023 17:02:46 +0200 Daniel Bristot de Oliveira wrote: > The osnoise/per_cpu/CPU$/timerlat_fd is create for each possible > CPU, but it might create confusion if the CPU is not online. > > Create the file only for online CPUs, also follow hotplug by > creating and deleting as CPUs come and go. > > Fixes: e88ed227f639 ("tracing/timerlat: Add user-space interface") Is this a fix that needs to go in now and Cc'd to stable? Or is this something that can wait till the next merge window? -- Steve > Signed-off-by: Daniel Bristot de Oliveira > --- > > Changes from V2: > - Better split the code into the generic (per_cpu/cpu$) > and timerlat (/timerlat_fd) specific function (Daniel) > - Fixed a cpus_read_lock/unlock() usage (kbuild test) > Link: https://lore.kernel.org/lkml/6b9a5f306e488bc77bf8521faeade420a0adf3e4.1695224204.git.bristot@kernel.org/ > > Changes from V1: > - Fix compilation issue when !HOTPLUG > - Fix init interface | hotplug race > Link: https://lore.kernel.org/lkml/b619d9fd08a3bb47018cf40afa95783844a3c1fd.1694789910.git.bristot@kernel.org/ > > kernel/trace/trace_osnoise.c | 149 ++++++++++++++++++++++++++++------- > 1 file changed, 121 insertions(+), 28 deletions(-) > >