Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2200280ybl; Thu, 5 Dec 2019 13:53:02 -0800 (PST) X-Google-Smtp-Source: APXvYqwmlz1uGnEvzeD8/7uH/jogzEJv/gtSGx1mWEHhuR8STP2fZ9rKs/1uuCPYooQohbVlCIbL X-Received: by 2002:a9d:24a6:: with SMTP id z35mr8209644ota.343.1575582782197; Thu, 05 Dec 2019 13:53:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575582782; cv=none; d=google.com; s=arc-20160816; b=MQS7xdo/EPPiztS8VIhHzZ1xn2s3+FXcFQzeoj1b4dIvYUzVxcgK9glWIFiXf8hlXt bwogjtCMlbwFvrXGeB3Fr0mI+DfvDbBYIrH6Z/27E6QfqH5D5BC2jGJPVVYymQbxxNpA hoh6a9N6XahNnm4a2gb+fucPae1iwUDB7knl2L+9/veugdxgwmyKurh/4OBTwpsuF+GP Za3O5J/Bc37p3bnWOe1z16rVFZB2RYSuEsj+FkjduQikx1+X2sA3ofXvM8PFKLsj60a/ M5MA+7JNjN2v67dOoFVdEyKkJvpGTFbODdySAyrfEaGZ2NTeHJtgVw/dj83oKeRS4LtR 1zrA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=GRlSFT0QzdmXY4YjfE6+A7FuD4eMpUWLjxxFNql0P+g=; b=Mk14Hb41b+OYN2Z9ZGAfIRRYr27vF/OLrrGikkPdFOYF2SiVteDjiE6CweGmSCukno J3wnkqqRcHvZW1oe6C+fiLxitT2mQF+zA3rgQStcgyA8oDuGFXvgzIlaOD2xxC9OlkqR zIyDrPOlHvEODT9twY9JHXotaGgdbdh3wy8qPx1JpfTZeCssxFH1kXu3pjayOqYAu85v t9qBV/H4DWwL5sGA7hhlFDn5AuiJ1Oaj+H+eZEvl7k2N3RcIQpiMve1Co6GIsAMCUWk+ NZ6a5oIDetGMnFIRAE28Tfs+MwqflifwoSP3BMSZIOPL8/f8bRtQpI9VfG+Ud1wC5hrD YiJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RgBkn5hq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id v67si5562198oia.26.2019.12.05.13.52.45; Thu, 05 Dec 2019 13:53:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RgBkn5hq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1729799AbfLEVwA (ORCPT + 99 others); Thu, 5 Dec 2019 16:52:00 -0500 Received: from mail-io1-f65.google.com ([209.85.166.65]:33799 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729417AbfLEVwA (ORCPT ); Thu, 5 Dec 2019 16:52:00 -0500 Received: by mail-io1-f65.google.com with SMTP id z193so5275443iof.1 for ; Thu, 05 Dec 2019 13:52:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=GRlSFT0QzdmXY4YjfE6+A7FuD4eMpUWLjxxFNql0P+g=; b=RgBkn5hqS5lY15vt1IV2Nrt1O5T1u86JM7Fo/iB48btQ2Pq6PMDfRU1866nDYUV2JB FeH8DnN8KlRPAePror5m+1MYfSiT/A9QOBUGsmRqyV1XI4AQgJRnhtyFJ8TQzp8RCmFd viPsCr+F6z7Ad0cGXCrf73mbeFEXyEsAXQEb5l1eRuVr/KUJSSXmYoHSJDU/NxOYe8/V GxPVlfCLRe2RHPe931PbDoX/D6uE7WMy8HMtcfij5OEYZgzReLF3JdnkV7/POhBpSNCp RIRwPvb03lbSe8etOb9uszxs9CRlsmARpoNr0DgZeW7IpPz/kRiutZ558Bv6Vx23Fsta HPCw== 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:mime-version :content-transfer-encoding; bh=GRlSFT0QzdmXY4YjfE6+A7FuD4eMpUWLjxxFNql0P+g=; b=YgXHztMvUrkUI4lB8KfAVAG8R0W1yuXdP/jKXfyu8/ppy0YrjYS5u2XL129FVvV4a7 QeDwUXIADm69uAua+q2a03Q3wjUYuU7hnDfFaluKatOkssoXkSyNHFNXHZFPl3hOdJf5 adUc4xH29GP8sT+KdC3t+LHsvSgnsLaxIYK+wWP347ZA7OjtbGfHACpampRp9Km0tOAP 1HtLdqJP2kqSi/nW9fQzTlI8RKwD6pH3xW0H1mSjdwKIw2nvSBsWIU6awoe/SSYtUpTS Bi17tZfXAIx5Y9E7W//ZwYBRTzluxS61ybuHgwJmfP+VV4SMfw0CoG2VQK5u06q8xoaj CIGQ== X-Gm-Message-State: APjAAAVSF9BdsAwAHfMzDQwiGbXltBBX1deNrv8iwcttJVPzH+vDCcLz Rj9J+eCeFPGo68B4FbfqUGc= X-Received: by 2002:a02:3e83:: with SMTP id s125mr10729701jas.104.1575582719602; Thu, 05 Dec 2019 13:51:59 -0800 (PST) Received: from localhost.localdomain (c-24-9-77-57.hsd1.co.comcast.net. [24.9.77.57]) by smtp.googlemail.com with ESMTPSA id n22sm740184iog.14.2019.12.05.13.51.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Dec 2019 13:51:58 -0800 (PST) From: Jim Cromie To: jbaron@akamai.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org Cc: linux@rasmusvillemoes.dk, Jim Cromie Subject: [PATCH v3 00/18] dynamic-debug cleanups, 2 new features Date: Thu, 5 Dec 2019 14:51:31 -0700 Message-Id: <20191205215151.421926-1-jim.cromie@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org changes from v2: only claim one user flag, dont really need more fix patchset grooming err Reported-by: kbuild test robot quoting tweaks in Docs (unvalidated as better, but likely) rename to lib/dyndbg.c, update docs accordingly changes from v1: dont drop trim_prefix yet, its harmless, and better supports old compilers. dont move externs to header, despite checkpatch v1: https://lkml.org/lkml/2019/10/29/989 v2: https://lkml.org/lkml/2019/11/27/547 New Features (review): accept new query input: file inode.c:100-200 # & line-range file inode.c:start_* # & function add 'u' user flag, allowing user to compose an arbitrary set of callsites by marking them with 'u', without altering current print-modifying flags. extend flags-spec to allow filter-flags, which select callsites for modification based upon their current flags. This lets user activate the set of callsites composed previously (u+p). add negating flags to filter on absence of flags, or to negate a modification. Jim Cromie (17): dyndbg-docs: eschew file /full/path query in docs dyndbg: drop obsolete comment on ddebug_proc_open dyndbg: raise verbosity needed to enable ddebug_proc_* logging dyndbg: rename __verbose section to __dyndbg dyndbg: fix overcounting of ram used by dyndbg dyndbg: fix a BUG_ON in ddebug_describe_flags dyndbg: refactor parse_linerange out of ddebug_parse_query dyndbg: accept 'file foo.c:func1' and 'file foo.c:10-100' dyndbg: refactor ddebug_read_flags out of ddebug_parse_flags dyndbg: combine flags & mask into a struct, use that dyndbg: add filter parameter to ddebug_parse_flags dyndbg: extend ddebug_parse_flags to accept optional filter-flags dyndbg: prefer declarative init in caller, to memset in callee dyndbg: add user-flag, negating-flags, and filtering on flags dyndbg: allow negating flag-chars in modflags dyndbg: make ddebug_tables list LIFO for add/remove_module dyndbg: rename lib/dynamic_debug.c to lib/dyndbg.c dyndbg-docs: normalize comments in examples Documentation/admin-guide/dynamic-debug-howto.rst | 176 ++++++++++++++++----------- include/asm-generic/vmlinux.lds.h | 6 +- include/linux/dynamic_debug.h | 5 +- kernel/module.c | 2 +- lib/Makefile | 4 +- lib/{dynamic_debug.c => dyndbg.c} | 285 ++++++++++++++++++++++++++------------------ 6 files changed, 285 insertions(+), 193 deletions(-) -- 2.23.0