From patchwork Tue Jun 9 10:45:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 187654 Delivered-To: patch@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp405910ilo; Tue, 9 Jun 2020 03:47:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAvZPSf3sHUEULme7hIIeVYOqJTR7qvQkk6OwEwrZ8yorjZT3H+PB40k5FuAAekVcEp+pI X-Received: by 2002:a05:6402:155a:: with SMTP id p26mr25299566edx.376.1591699668946; Tue, 09 Jun 2020 03:47:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591699668; cv=none; d=google.com; s=arc-20160816; b=Z1w/pNZMnO4ldO3+w0xMJ1kEslcXwC2/8FSZyl+wbXVi1nAWOCKtpephkibcGpmrtS KzUeyMjE6i9hjXmw+AlIoTUyP4tPVV6iswE47kAnnTHSMVx1ZthjuZTu3Lix3dWdsqz2 USLpj2oIaI55SbJ4RC3FmVohTp39FvviSLppl8UmvK5enjTZq9vXfCLiJ+NWjJLKm9O+ o7afJWaBR8zGZZ/cwp34YiRTVc/7UB8oMVIH1R3KKHXLddXGNNxtcoYFdmivTx4mr9j/ C+NMf7f8ULsgUPilrAsVfeplHmy55F3dVj/upymbc7r4+gZBRyF9s9q1Z0sKNq0BSAbV jE/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=U9rt/3Vl/6zlHKoX8Sru+cTCnsVpfXdCh6OHWoOo9RE=; b=EuB+l+LqeZbzx0MA6k7rT1lTOI1B1svQV7bdCDNOxdZjFitxKKTPySEm5BDOF4kEtC 8cUBGLGJYqUb2lKAMvfZIhn05rXrFz42cSDS2T60sUof2S2s3/SlaM8AK7C+F4SmX8mN 7jNbvz6QThpHeoC+RcYJqJv4PUbq1elvo2lr3Sr0B04Zmu6jwGYKO5zlzHzlBAZxDagw MtDcHipyGjTXDMvdHpjrUJF4478Dwp85et6xaY0tO6CUI7HpRaTdJKENKftVZzWDzcNd ho06pb7q4W9SSjRZ/Fg1YOQRteZIMDJcK7CMSkpCF0FWclB8l9t62VSH7jU6SFvBQWsz AehQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FRLTeeLV; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b25si12729061edn.602.2020.06.09.03.47.48; Tue, 09 Jun 2020 03:47:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-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=@linaro.org header.s=google header.b=FRLTeeLV; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728876AbgFIKrp (ORCPT + 16 others); Tue, 9 Jun 2020 06:47:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728223AbgFIKrh (ORCPT ); Tue, 9 Jun 2020 06:47:37 -0400 Received: from mail-ed1-x543.google.com (mail-ed1-x543.google.com [IPv6:2a00:1450:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F4AAC05BD1E for ; Tue, 9 Jun 2020 03:47:36 -0700 (PDT) Received: by mail-ed1-x543.google.com with SMTP id w7so15951819edt.1 for ; Tue, 09 Jun 2020 03:47:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=U9rt/3Vl/6zlHKoX8Sru+cTCnsVpfXdCh6OHWoOo9RE=; b=FRLTeeLV+htxuHSVemMkC/H0jDbDMDBVLljGbI5nXTP0IhqF5MnV9KiofVJzjeP4z4 0zwVRhu75Q4no06LDdOJshGV1LHb0S3tOA05xbRD40Dma+wJmAO9YFhwn5dctpuYIEWq ZLG3B+MAt29+JMNIQpeV11RNkNvsbXBA5Qgnm/0GE1KBf7nXFDBsqux+9o5VA0MU1ZWv AXpnSTeeFLZAnaiYcjBmlBixwTTthdz+l8s1TM87XZiEztoLc5XuK1HttYXUW9jSdJRS axs60D+IuuCnv1d2SKcZyZLFlz73Q6gnl4DPgbVQDWWCv71BwouRU8hzz7qDRGuGQR6V gaYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=U9rt/3Vl/6zlHKoX8Sru+cTCnsVpfXdCh6OHWoOo9RE=; b=YBhoCJVOQCk7TGJl5Caw2O/bsn9b/vY8ghzpxk89QdmzuMXDsJZtYFLCGogbFEp4VG s8sXtXydLy2jua/dv2sNBAQwv1MjL0r8ph4uweCzpHF42eiou9QMIX3QTu1MvhnUsTF+ v1WHumYhCh26tGipKrg8mbKksIFAOsVs0HBZNWIoDMMul35ghhi9wONc/HXqCiQT6tSL FOh3/C6+0xLJCCLavNseUaxMpfjNNm9X6ENKnGlrF/tYhV3XHs8AG5PDxV8lvkAV4DBi zzIf4iJwksJYI3tz9iNT6U0W0a33gBvH2z8VqFgN8F9CWzyIx2igJJuGSNSrK1s8RPGm cNtQ== X-Gm-Message-State: AOAM532dR71Onwac9DPbyWQsyRuuQ0SXOUohv37iirkojum4x9oF7ske 4wVOHdwvSPRnpqAQiK+05DTmfQ== X-Received: by 2002:a50:b0e2:: with SMTP id j89mr26765993edd.257.1591699655083; Tue, 09 Jun 2020 03:47:35 -0700 (PDT) Received: from localhost.localdomain (hst-221-69.medicom.bg. [84.238.221.69]) by smtp.gmail.com with ESMTPSA id qt19sm12267763ejb.14.2020.06.09.03.47.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jun 2020 03:47:34 -0700 (PDT) From: Stanimir Varbanov To: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, 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 Cc: Joe Perches , Greg Kroah-Hartman , Jason Baron , Stanimir Varbanov , Jonathan Corbet Subject: [PATCH v3 1/7] Documentation: dynamic-debug: Add description of level bitmask Date: Tue, 9 Jun 2020 13:45:58 +0300 Message-Id: <20200609104604.1594-2-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200609104604.1594-1-stanimir.varbanov@linaro.org> References: <20200609104604.1594-1-stanimir.varbanov@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This adds description of the level bitmask feature. Cc: Jonathan Corbet (maintainer:DOCUMENTATION) Signed-off-by: Stanimir Varbanov --- Documentation/admin-guide/dynamic-debug-howto.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) -- 2.17.1 diff --git a/Documentation/admin-guide/dynamic-debug-howto.rst b/Documentation/admin-guide/dynamic-debug-howto.rst index 0dc2eb8e44e5..c2b751fc8a17 100644 --- a/Documentation/admin-guide/dynamic-debug-howto.rst +++ b/Documentation/admin-guide/dynamic-debug-howto.rst @@ -208,6 +208,12 @@ line line -1605 // the 1605 lines from line 1 to line 1605 line 1600- // all lines from line 1600 to the end of the file +level + The given level will be a bitmask ANDed with the level of the each ``pr_debug()`` + callsite. This will allow to group debug messages and show only those of the + same level. The -p flag takes precedence over the given level. Note that we can + have up to five groups of debug messages. + The flags specification comprises a change operation followed by one or more flag characters. The change operation is one of the characters:: @@ -346,6 +352,10 @@ Examples // add module, function to all enabled messages nullarbor:~ # echo -n '+mf' > /dynamic_debug/control + // enable all messages in file with 0x01 level bitmask + nullarbor:~ # echo -n 'file foo.c level 0x01 +p' > + /dynamic_debug/control + // boot-args example, with newlines and comments for readability Kernel command line: ... // see whats going on in dyndbg=value processing