Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp195980pxb; Tue, 23 Feb 2021 22:55:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJxHW6V8xVoamHl3T6jytiVATxRQICc7iY7LGgvN5M0pey779BdHHshDmsyflK4vXsLMtNmW X-Received: by 2002:aa7:c5d6:: with SMTP id h22mr1960145eds.64.1614149716654; Tue, 23 Feb 2021 22:55:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614149716; cv=none; d=google.com; s=arc-20160816; b=UstoD9kTHUaAiCiM/zvXDSPe1V8d8gR9yPxSUb/1gniuqWJ4rX5hMrY1e18siSggz/ 9jHl5IIRlLsTZVfCHvVD8ophCef09y3Ba11lA4tBK6GYKGsoyRnIfCDiO5Uu9m01KXxv 0DgaUZEDuaGPP8CMypJ96cJrOp1tPdzvBIEhc2X/9Srp+YiMMm6OR1oVI2Sm5sPdn6Z7 ghzHU798XstAyLbncsewkBEjtSJjBQM5CsUBZcDIen7m1iPrJpXsaulJwCHaJkS4QDDV nFSH2AoY4JJ8RMNAzk3FlK1CAOhHegmt1NsG8FHUOLsyBJRbMZcRqTRNk9E8ixPWgADk jQzw== 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=W94HL6UivHCo3ph6nz2O9CfTmd5vnb2SRvMy/IWBVww=; b=BCyjQp40WbyIblVkcJlQB+GV75Js5mAa4Ln16dmRTEVt++44qAL994QEEKgGxj/Ne3 2cNMP+GP/pUxlBvY09HHaFhzcpgmY9ahYpYuxMg5BITFlVRBXq5/bk5EPdrJqo5fluUP bbClPxti/H3IhZggrHX9MS1Z62UieYMajw/PUcuCPdNOUl7tJnb7aM907torPb2kV704 WYXp2Degj4vA6fCOh1SeqpReOzXkCozVJqGTWSQNRAuzR6VmwMU7jMxVRZBYZUT93haS KY09rI4jK8vUEVVdqcDJ6GMeBFd3auPCPSdDH1JxrUNI7IA4dgqHGwa3cCpNAuDHxARb 23MA== 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 q18si826671eji.611.2021.02.23.22.54.51; Tue, 23 Feb 2021 22:55:16 -0800 (PST) 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 S231942AbhBXCRX (ORCPT + 99 others); Tue, 23 Feb 2021 21:17:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:55888 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229961AbhBXCRX (ORCPT ); Tue, 23 Feb 2021 21:17:23 -0500 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 465A564E7A; Wed, 24 Feb 2021 02:16:41 +0000 (UTC) Date: Tue, 23 Feb 2021 21:16:39 -0500 From: Steven Rostedt To: Michael Jeanson Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Alexei Starovoitov , Yonghong Song , "Paul E . McKenney" , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Joel Fernandes , bpf@vger.kernel.org Subject: Re: [RFC PATCH 0/6] [RFC] Faultable tracepoints (v2) Message-ID: <20210223211639.670db85c@gandalf.local.home> In-Reply-To: <20210218222125.46565-1-mjeanson@efficios.com> References: <20210218222125.46565-1-mjeanson@efficios.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; 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 Thu, 18 Feb 2021 17:21:19 -0500 Michael Jeanson wrote: > This series only implements the tracepoint infrastructure required to > allow tracers to handle page faults. Modifying each tracer to handle > those page faults would be a next step after we all agree on this piece > of instrumentation infrastructure. I started taking a quick look at this, and came up with the question: how do you allow preemption when dealing with per-cpu buffers or storage to record the data? That is, perf, bpf and ftrace are all using some kind of per-cpu data, and this is the reason for the need to disable preemption. What's the solution that LTTng is using for this? I know it has a per cpu buffers too, but does it have some kind of "per task" buffer that is being used to extract the data that can fault? -- Steve