Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1762046pxj; Wed, 19 May 2021 13:19:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuZWcIeIHLIW23e0+IDt0cVYUyp7NSD2sorINZtZMrd4QpXOFLCj4JxXlEYKGzuWUCA6M3 X-Received: by 2002:a92:7510:: with SMTP id q16mr854732ilc.291.1621455585597; Wed, 19 May 2021 13:19:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621455585; cv=none; d=google.com; s=arc-20160816; b=00iadjPJdQY/opZP/aQzULAW7Zoz6im2Y+tO1fLSHHjIAB6NuClxIAibEpKMcjgDQy GPt9gnH7bZx9GH1/MymVranxv8QvdsMudxBNMX3+sdCB5BSYdW7/no2XRranvc99Ap9y 34ezXTeGSNLdmN/IUVBOuhCGEm5GRAVNdITBV+AnmEb2jadOXhPtL+RTvXe3ZfRRoWGp fNlS1d9HGbgz7qHTO0FtUJ1BBic/cpRw/kMJ8VH71Z6nMzcK+yD4YK7bEX2hDeo0Wuu9 DlWxW6nhkZ3VRWpkaB9T5NDCt/mampkfSx837ESSoJsTJVwpykcklyChxX/15g/Sd5ih p3mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=cliPZxmbguglFEJoeEstF9Rdtka6WrCxDhdLInm6eB8=; b=fHsbK5JF8U1i+z5yMX7Vy1pZQcQLZYvBtUQBCzsNqPUvNIADmsGFFoVBh8ThhNmUVm h7GZ5axyFolezbcw0jH8bdu5Q+3HO2KhN5jI/OICkt3UjoVsE6tSVVuibDNGaY9NldUK B6t8TEzgNbEkScVgmvhG931+A6iJ+8thNewgf5QEGeFaI6ex/BDXDhYZstjNnbHbg7ol OaYXJtjXtG3YF7B6Fl35levcj15wdouyg8fPVJKJjtECUyodPTmXcwUyGX+b/4LGm9JK jalSutW/9X9mHi+uJPRvTUeXd9IU1Zx3Qgy2hmCBNc4hjRr4Iz7vkRj6KHelLomN58M9 yFOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Du82p1XX; 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 x3si636287ilq.48.2021.05.19.13.19.33; Wed, 19 May 2021 13:19:45 -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=@infradead.org header.s=casper.20170209 header.b=Du82p1XX; 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 S231197AbhESSJh (ORCPT + 99 others); Wed, 19 May 2021 14:09:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230023AbhESSJf (ORCPT ); Wed, 19 May 2021 14:09:35 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE0E1C061760; Wed, 19 May 2021 11:08:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=cliPZxmbguglFEJoeEstF9Rdtka6WrCxDhdLInm6eB8=; b=Du82p1XXZevN9YM0/5DUHJqM0u +3ywcdpTiTXuGfr6WkC3hc27y1vsM1w1zl5OoVLRoiCrSjz/MY7aBW3euB1bKIwHYZ7fTE4czHNhL 0LMpi+iYom5d1Wp7vFd7sI16QtB0ZVp2v5rioPdsZJtbLxRSw4wb8Jwya7q+EpdVKQHEUViKmtqxG EzglKghk9k5wdM3b0khqSTdfr0I805wg04DCXWgu8w9r/92u2P9M/DT6fzmnZbVSzEMGZvLn8q9Ro gEISwEemqObDx9vObuzhH/ful4YpynRu9DpfW947JgQbs3izlgZ+cD8h8FV9bdfUacX6m6CpL2AFH Vldz1jMg==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1ljQbq-00FBgo-9l; Wed, 19 May 2021 18:08:00 +0000 Date: Wed, 19 May 2021 19:07:54 +0100 From: Matthew Wilcox To: Nicolas Saenz Julienne Cc: rostedt@goodmis.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, mingo@redhat.com, corbet@lwn.net, mtosatti@redhat.com Subject: Re: [RFC] trace: Add option for polling ring buffers Message-ID: References: <20210519175755.670876-1-nsaenzju@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210519175755.670876-1-nsaenzju@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 19, 2021 at 07:57:55PM +0200, Nicolas Saenz Julienne wrote: > To minimize trace's effect on isolated CPUs. That is, CPUs were only a > handful or a single, process are allowed to run. Introduce a new trace > option: 'poll-rb'. maybe this should take a parameter in ms (us?) saying how frequently to poll? it seems like a reasonable assumption that somebody running in this kind of RT environment would be able to judge how often their monitoring task needs to collect data. > [1] The IPI, in this case, an irq_work, is needed since trace might run > in NMI context. Which is not suitable for wake-ups. could we also consider a try-wakeup which would not succeed if in NMI context? or are there situations where we only gather data in NMI context, and so would never succeed in waking up? if so, maybe schedule the irq_work every 1000 failures to wake up.