Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp433202ybt; Sat, 13 Jun 2020 09:01:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZZduIemDaSOT8L/1XKbCIwqeyvGY4nOnE2/17MZZHrwHRjI1fHYGwAhC3lJ+BpRKNF6ou X-Received: by 2002:a17:906:d9dc:: with SMTP id qk28mr17595773ejb.6.1592064096201; Sat, 13 Jun 2020 09:01:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592064096; cv=none; d=google.com; s=arc-20160816; b=Qmr8t5nc94oCJPtFc9xGZjkWY96EsQnaUHU4DUVXUiPEGNWZyCfQXgZIf656urLGPu +mGLuOGHakfCR+bz13fh+7e+Bm4nlqsWOZ4e5LsFsWVifJYohAr9WcmjVH/MZKtZkzVJ InRukNp1WxNh8owtt5oU0bao5OzWAxG1RabOasxy9ZpuhmDpUdL9vMAGBHxmhaNpPrmf 1B97Yxox5pZfNqP4R6iTt43kMCxdoPaTJ3VJ+FieTsE6fEz7kVQZ0SmDLMivowm2QeSM bcphseC16BL1gsV5nsknTmFWPT1K2KSNsbmc9TM/KZuEu4qEcz3KzrSeaiF5ShtPwhLs 6zOw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gl7hLsW2EEIyewv4iaFzOiTfdffkChsOHbVzBW70XfA=; b=k0VzzXVKb2fso7x0YZZOggy8y7HTXNTFSujFBZpfSTtzTD3/fzuwbzqDP005m7YZ/Q xoX6ydrHwdYGvKViL/bPFSwaDLEj7udkaQk8ExaMx0G7DaTPmi4no/elSjNQVPunDFFM dALVIfPjCjz2AGwAcJs+FnmOgUU+Cvr52igpornsFV8E4P0NxpkfhQwY5XDxG+s9NIfg XhpCdOmAnDELHSIszECiQfhyeJUegg5WJ/Ok9ITOHJjj8jJb57SXzUNVzav32AYiZw42 x9eXGxfswv1Vwo7iUxy8Tla/MfKpkCAE7B0ZAwHdAqEAvqLKDte5rbGajPDbcoxDmS/4 6WGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Wy3dixhJ; 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 p2si5492504ejn.494.2020.06.13.09.01.13; Sat, 13 Jun 2020 09:01:36 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Wy3dixhJ; 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 S1726719AbgFMP65 (ORCPT + 99 others); Sat, 13 Jun 2020 11:58:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726583AbgFMP6h (ORCPT ); Sat, 13 Jun 2020 11:58:37 -0400 Received: from mail-oi1-x242.google.com (mail-oi1-x242.google.com [IPv6:2607:f8b0:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 981F6C08C5C1 for ; Sat, 13 Jun 2020 08:58:37 -0700 (PDT) Received: by mail-oi1-x242.google.com with SMTP id c194so11733728oig.5 for ; Sat, 13 Jun 2020 08:58:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gl7hLsW2EEIyewv4iaFzOiTfdffkChsOHbVzBW70XfA=; b=Wy3dixhJ89xAKNIjKWVD+OtCnUJlAn3RBHZN6FaEQoefeCprrrwOmhffjl1eXRSz0j PxuvMV70CxX6J5k7ZkHAkm9OHoEYZn+zs5TElTIJAfS9kM0PKA41Ay3DRuKwgEnUXdH4 D6IJeah6YLFs0rq1IEdTNIjvLt17jkuCz7d/QPEL2njkjsAyY6mWhnCAKlX5B+ukwZ1a GS9yjQxjb/+OxIDXdkiQxV7qvvPdFmw7+xQNY2nCMN+0OWw0dFHl1o21j6c3SatUnyAl 80Ank5nuzYiVFlT8eqhnjD0M39Kl7UanOUE4g6d6RIH4Xx+GY4tvmXpPC0849dIg0gve XP9w== 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:mime-version:content-transfer-encoding; bh=gl7hLsW2EEIyewv4iaFzOiTfdffkChsOHbVzBW70XfA=; b=Nqs1/NWZg1QcNHVudTmxCGROd5ikbyIOjzgNUCGTeq5bEI1BIo1BGFZIh43q16I8Hq cJWglQpaYbQyzth6h49dBpkKxlY4pmT/wRvNhOkA97jR+9i14mwWb++ukSTfsfoEWvWF 05tjkBs1mVP/AbwCWopMyOaFzbLzoGi9OZnYc42QR9DRyynRpByetT3CkJfGPGumaoBC 2obZ8hKeh6Y68caVzGW9OLN7GEy/q60dmC/4b/kKbedAuhTvDY2+FNN45HG3x28Tl0jP PJiTtk73ddHtle4ACIH3ohaJ7QRAq0l9VsJF+Ovm1bzxs5UZOhQDme5oxl2P+kAy1VZG 5tnA== X-Gm-Message-State: AOAM530sNrjy+hFHGpFW/00GZQeZJmEBYoK1yGp3+NO8jDZaF5LZNa57 rvYxf6gC1MWRw42OybY/Gns= X-Received: by 2002:a05:6808:7c8:: with SMTP id f8mr3075221oij.51.1592063916855; Sat, 13 Jun 2020 08:58:36 -0700 (PDT) Received: from frodo.hsd1.co.comcast.net ([2601:284:8204:6ba0::aaac]) by smtp.googlemail.com with ESMTPSA id 53sm2105565otv.22.2020.06.13.08.58.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Jun 2020 08:58:36 -0700 (PDT) From: Jim Cromie To: jbaron@akamai.com, linux-kernel@vger.kernel.org, akpm@linuxfoundation.org, gregkh@linuxfoundation.org Cc: linux@rasmusvillemoes.dk, Jim Cromie Subject: [PATCH v2 22/24] dyndbg: add print-class as trailing number to control output Date: Sat, 13 Jun 2020 09:57:36 -0600 Message-Id: <20200613155738.2249399-23-jim.cromie@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200613155738.2249399-1-jim.cromie@gmail.com> References: <20200613155738.2249399-1-jim.cromie@gmail.com> 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 This change adds trailing 0 for all existing callsites, and N>0 for any uses of pr_debug_n(). subsequent patches add pr_debug_n(1) & pr_debug_n(2) to kset-example, demonstrating that the callsite descriptors are getting initialized properly by the *_cl adaptations done previously. bash-5.0# modprobe kset-example bash-5.0# grep -v '0$' control [ 311.060809] dynamic_debug:ddebug_proc_open: called samples/kobject/kset-example.c:80 [kset_example]foo_attr_store =_ "called" 2 samples/kobject/kset-example.c:59 [kset_example]foo_attr_show =_ "called" 1 --- lib/dynamic_debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index 0035218d7059..262a6a761219 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -919,7 +919,7 @@ static int ddebug_proc_show(struct seq_file *m, void *p) if (p == SEQ_START_TOKEN) { seq_puts(m, - "# filename:lineno [module]function flags format\n"); + "# filename:lineno [module]function flags format prcls\n"); return 0; } @@ -928,7 +928,7 @@ static int ddebug_proc_show(struct seq_file *m, void *p) iter->table->mod_name, dp->function, ddebug_describe_flags(dp->flags, &flags)); seq_escape(m, dp->format, "\t\r\n\""); - seq_puts(m, "\"\n"); + seq_printf(m, "\" %d\n", dp->pr_class); return 0; } -- 2.26.2