Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp29854ybg; Tue, 9 Jun 2020 15:25:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3ogyq8gMuuYBIpYnDnDLdCWajvuZxMduN+bdEv9iyv+j1HPWlL5kRHApkiSu0dNVrK2gX X-Received: by 2002:a50:d556:: with SMTP id f22mr30033423edj.307.1591741543214; Tue, 09 Jun 2020 15:25:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591741543; cv=none; d=google.com; s=arc-20160816; b=W/lhY2j4xZRn+jOd8rfOqPaUh6tKL6ttWnh/cl0oi36fjDpwWZJy33LCN+IucVzbk8 aTQ4+d9lQ+8nO1HE4sWXix4FUENTamPU4AU3yRrTVPEBSOyDYVvAO6j8V9MtdN0NA75q hGjdF9I57XxLQx8X+ezGX9cDuc4s0pyL4kBLm/nJutfb96CcojejmYezaADK8nc9ViBz fS/VWsRIcEweoIQzZiBE+rckpr73amN8DXxc6yT9x9hg+tcpI5p9C93EMdXqMsugiFcJ lGr6NE1XdaGMXBtxTFpqTy1CAgp3avw8cfxuhvE6rOgg2oXNMEcDhMlx5W69kZiXQeYi RFJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=MVnCs4COTbYYyHAbeXSODDmxC4j9MK4MMKMW/Mdi314=; b=X1RNFwR2FSZYj8lmSFAMVhHpufSzL5P+JvI5u2L6PXoYwfjEcCFLbKbDPeh1t5Rs1g Oj0sz7XQUQrxM7lzS3Ye8a4uRxTxKbGMK1ikbQ3dfrQRqiV+ynJhfqQF2KgteA0uxx8E pPoC20PA64nWUoTxmpt/Z57U0VpJZ7QZQlCGXW22BPV7smQnsJEDh3baBgUlw73p94qt 6j9f0dvWvyylDPMnIbwsnIEEK/kOs9AX7ibbo0pqBuBxq973f0r4ptuA7O/I3l13Rxlq MZCioa88uSFA2cZbBhYpEC9PNy998Iwtu3XvgBbtSlAatFXI79Yt+9iNPQmQm21rkoC7 qQDg== 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 np7si12079359ejb.377.2020.06.09.15.25.20; Tue, 09 Jun 2020 15:25:43 -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; 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 S1728427AbgFIWXN (ORCPT + 99 others); Tue, 9 Jun 2020 18:23:13 -0400 Received: from smtprelay0131.hostedemail.com ([216.40.44.131]:37066 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728191AbgFIWXM (ORCPT ); Tue, 9 Jun 2020 18:23:12 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay04.hostedemail.com (Postfix) with ESMTP id 2F710180CE42F; Tue, 9 Jun 2020 22:23:11 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 50,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:800:960:967:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1542:1593:1594:1711:1730:1747:1777:1792:1981:2194:2199:2393:2525:2553:2561:2564:2682:2685:2828:2859:2902:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3355:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4250:4321:5007:6742:7514:7875:7903:8784:9025:10004:10400:10848:11026:11232:11658:11914:12043:12296:12297:12555:12740:12760:12895:12986:13161:13229:13439:14096:14097:14181:14659:14721:14799:21080:21451:21627:21740:21795:21811:21939:21990:30029:30051:30054:30070:30080:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: ant44_0c05fb026dc6 X-Filterd-Recvd-Size: 4029 Received: from XPS-9350.home (unknown [47.151.136.130]) (Authenticated sender: joe@perches.com) by omf16.hostedemail.com (Postfix) with ESMTPA; Tue, 9 Jun 2020 22:23:08 +0000 (UTC) Message-ID: <6115b15ced02686f7408417411ff758445b42421.camel@perches.com> Subject: Re: [PATCH v3 0/7] Venus dynamic debug From: Joe Perches To: jim.cromie@gmail.com, Stanimir Varbanov Cc: Randy Dunlap , Matthew Wilcox , Linux Documentation List , LKML , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-acpi@vger.kernel.org, netdev@vger.kernel.org, Greg Kroah-Hartman , Jason Baron Date: Tue, 09 Jun 2020 15:23:07 -0700 In-Reply-To: References: <20200609104604.1594-1-stanimir.varbanov@linaro.org> <20200609111323.GA19604@bombadil.infradead.org> <9a79aded6981ec47f1f8b317b784e6e44158ac61.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.36.2-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2020-06-09 at 15:21 -0600, jim.cromie@gmail.com wrote: > On Tue, Jun 9, 2020 at 10:49 AM Joe Perches wrote: > > (adding Jim Cromie and comments) > > On Tue, 2020-06-09 at 09:03 -0700, Randy Dunlap wrote: > > > On 6/9/20 4:13 AM, Matthew Wilcox wrote: > > > > On Tue, Jun 09, 2020 at 01:45:57PM +0300, Stanimir Varbanov wrote: > > > > > Here is the third version of dynamic debug improvements in Venus > > > > > driver. As has been suggested on previous version by Joe [1] I've > > > > > made the relevant changes in dynamic debug core to handle leveling > > > > > as more generic way and not open-code/workaround it in the driver. > > > > > > > > > > About changes: > > > > > - added change in the dynamic_debug and in documentation > > > > > - added respective pr_debug_level and dev_dbg_level > > > > > > > > Honestly, this seems like you want to use tracepoints, not dynamic debug. > > > > Tracepoints are a bit heavy and do not have any class > > or grouping mechanism. > > > > debug_class is likely a better name than debug_level > > > > > Also see this patch series: > > > https://lore.kernel.org/lkml/20200605162645.289174-1-jim.cromie@gmail.com/ > > > [PATCH 00/16] dynamic_debug: cleanups, 2 features > > > > > > It adds/expands dynamic debug flags quite a bit. > > > > Yes, and thanks Randy and Jim and Stanimir > > > > I haven't gone through Jim's proposal enough yet. > > It's unfortunate these patches series conflict. > > > > And for Jim, a link to Stanimir's patch series: > > https://lore.kernel.org/lkml/20200609104604.1594-1-stanimir.varbanov@linaro.org/ > > > > > > As Joe noted, there is a lot of ad-hockery to possibly clean up, > but I dont grok how these levels should be distinguished from > KERN_(WARN|INFO|DEBUG) constants. These are not KERN_ at all, all are emitted at KERN_DEBUG These are just driver developer mechanisms to enable/disable groups of formats via some test for < level or | bitmap > Those constants are used by coders, partly to convey how bad things are > As a user, Id be reluctant to disable an EMERG callsite. Not possible. > are you trying to add a User Bit ? or maybe 7-9 of them ? Or maybe a u32/ulong worth as most as I think the largest current use is 32 bits of bitmask. > I have a patchset which adds a 'u' flag, for user. Adapting that with an external bool for bitmask or class would work fine. if (is_bitmask) enable/disable(value|flag) else enable/disable(value < flag) So the equivalent of logical sets would work just fine.