Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp557682pxb; Thu, 20 Jan 2022 20:18:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJw7nJWrgm1TMbf9kqJQYuf3FyLzkWxXhqFO7tzXGt5NpJ4CafBQCc6mrt7vAE1O/gJ5Yr6c X-Received: by 2002:a05:6a00:134e:b0:4bf:5086:2332 with SMTP id k14-20020a056a00134e00b004bf50862332mr2070157pfu.9.1642738727789; Thu, 20 Jan 2022 20:18:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642738727; cv=none; d=google.com; s=arc-20160816; b=ug2n/miLBhFfRyAAxnhZo/gb3130WhUbzicfI6CBnjq+dYtoOh9JL2J8VJOvDV5xJ1 63BUrIffmxSlaHyujfT2qX9Ldby4mP36pZOlqzEET04eC87yh8e6RPCjYg6yzmqQzmB0 DNwwFE44hNdbSK7ENtf6w4cL4TuBKLASLeSpnqwxGdTu1rW9Ne7mDuR4nuJO+wdN7b0d qmVGLJVpBRl389k+7s+RJXdkldUFVP9g9CMNIyFMgkWh1fsGCfzpI+A/o3+wf+0bhkU0 npSiNSJE1tEeXwwNV9L56AaBpvydjO3us+7Kon/hBYy5CNDxUoqQh2dbWtseKYglU1tH 8WpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=RTtIokhsxNEKlwhkarhww6LL6UsgKRiayY8jPQeBEwY=; b=J4ZZeXgXFplmthSidWTWN8oaSPK5Kkp2D58cynW7v3ph4VjTRiH1LGXluhlhyzCL/3 G+tqxnaj0d+fgnzP02GA97UTlOlaBPTNZcBS1IVw1Es/F/3az8O3AZ6gOzCS4vwD3y9q 6eYk06Z32y+iBENifiKRTJAnjvihsnt3BKdAcR4Jq6xqZA9HyNFbP5xJiuOK1aup/PdU IJNqm8D1xuOynqUP+PwBG+iCwgfBPifPmRy5D91CCmEn4a2t+7M1OLaEyeF0QwRQExc4 zXxiWdnzel3eYdEmvabINlOPQ3hB+haQPcijaq3iRgPF0SzlcM0x2VF5aQv+vCMnmaZS LygQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=CTc9C58W; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n8si5677859plh.598.2022.01.20.20.18.35; Thu, 20 Jan 2022 20:18:47 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=CTc9C58W; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348671AbiARTTG (ORCPT + 99 others); Tue, 18 Jan 2022 14:19:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348572AbiARTTA (ORCPT ); Tue, 18 Jan 2022 14:19:00 -0500 Received: from mail-ua1-x92e.google.com (mail-ua1-x92e.google.com [IPv6:2607:f8b0:4864:20::92e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B512C061574; Tue, 18 Jan 2022 11:19:00 -0800 (PST) Received: by mail-ua1-x92e.google.com with SMTP id h11so49513uar.5; Tue, 18 Jan 2022 11:19:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RTtIokhsxNEKlwhkarhww6LL6UsgKRiayY8jPQeBEwY=; b=CTc9C58WpPdD8FXdGRlcnMWrMWNJpcK+y6Rj3zUyCWdwt9dQLqWVsqH1YHBewi6eXG TVXL54as5+fZwnP5csySA8G7bCIvcyKPvSiBUd+GrWLEV+MZfzm3C4f+itk1QZftidvg LJKU6yzS78/172cHFHccKLpzMhmscJwEjItec7F5xI6diRS+I880mydn8KGrrmaZceV3 OZpCa9+CVwLnOjxUXVk7D8b0ObU0FO6PXWZJzdcxd8vNgfrVV11NYRvHxRLgRlTLBo4O Q0GLzBjotcSVxS8uqcxrk7IdG3QZri13dV+SSWWoVMHq30Z5wrhXzlDreWg6/pjBsKOo 1Ffg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RTtIokhsxNEKlwhkarhww6LL6UsgKRiayY8jPQeBEwY=; b=SjiRieCy84PugHVrcx4HX8psPdu2wAC3Jpm/wt7SBgM9pMhKmSh9iyWiimIjpwDxrU Z8AI7Rd3LQvnaTmv4ItZElZFf/brBpZGqZy+zFSrfCEVB02snN6nI2CO+DV63EEGRivC ErbZ5NZXNJkroaBx0yrOvyTNh/7H7xR1/zMwJDZceRAZU1hwriyEsRfvjNbLofeYxCQh egHSIOKAarePtTNd+MWsPwIw5Cx7/siogAMKJqfKj9VdCYq3qqNmb7nlG5DwDz3zOTFy 5ddYxm8/nGUb2nA/9K1E8TpNYfYRiTGhahuJv749uQtMkpXKr5wcCmhwH5z4VAIAbqxn 62jg== X-Gm-Message-State: AOAM532CnIIRu4mYOXBh7rXlD0MoonQQ/krEVxV7j5+2x+uDLF2pVclE LeAb3WE6KV95N8tDvQjCG1p4xgwXekduOg5nuH0= X-Received: by 2002:a67:d903:: with SMTP id t3mr5929684vsj.42.1642533539591; Tue, 18 Jan 2022 11:18:59 -0800 (PST) MIME-Version: 1.0 References: <20220107052942.1349447-1-jim.cromie@gmail.com> <20220107052942.1349447-4-jim.cromie@gmail.com> <20220114114654.GA23983@axis.com> In-Reply-To: <20220114114654.GA23983@axis.com> From: jim.cromie@gmail.com Date: Tue, 18 Jan 2022 12:18:33 -0700 Message-ID: Subject: Re: [PATCH v11 03/19] dyndbg: add write-to-tracefs code To: Vincent Whitchurch Cc: "jbaron@akamai.com" , "gregkh@linuxfoundation.org" , "linux@rasmusvillemoes.dk" , "rostedt@goodmis.org" , "mathieu.desnoyers@efficios.com" , "daniel.vetter@ffwll.ch" , "seanpaul@chromium.org" , "robdclark@gmail.com" , "dri-devel@lists.freedesktop.org" , "amd-gfx@lists.freedesktop.org" , "intel-gvt-dev@lists.freedesktop.org" , "intel-gfx@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , "quic_saipraka@quicinc.com" , "will@kernel.org" , "catalin.marinas@arm.com" , "quic_psodagud@quicinc.com" , "maz@kernel.org" , "arnd@arndb.de" , "linux-arm-kernel@lists.infradead.org" , "linux-arm-msm@vger.kernel.org" , "mingo@redhat.com" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 14, 2022 at 4:46 AM Vincent Whitchurch wrote: > > On Fri, Jan 07, 2022 at 06:29:26AM +0100, Jim Cromie wrote: > > > > Enabling debug-to-tracefs is 2 steps: > > > > # event enable > > echo 1 > /sys/kernel/tracing/events/dyndbg/enable > > # callsite enable > > echo module foo +T > /proc/dynamic_debug/control > > > > This patch,~1,~2 are based upon: > > https://lore.kernel.org/lkml/20200825153338.17061-1-vincent.whitchurch@axis.com/ > > > > .. with simplification of temporarily reusing trace_console() rather > > than adding a new printk:dyndbg event. Soon, add 2 new events > > capturing the pr_debug & dev_dbg() args. > > The example above does not match the code in this patch since the > dyndbg:* events are only added in a later patch. Perhaps you could > reorder this patch stack so that you don't use trace_console() in this > patch just to replace it with the new events in the next patch? > good catch, thanks. Ive just dropped the example, it seemed the simplest fix. It seemed proper to commit your code as pristine as practical, so that subsequent mistakes receive the blame. and Ive fixed the spurious whitespace change you noted.