Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1998218ybt; Mon, 15 Jun 2020 15:21:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuGim3S2modsagqvsTX0DtFWksuAUIKWRuxtOkEBvI0XNm+/4heqfbSIQtBukdDtIlGuJ5 X-Received: by 2002:a17:906:39a:: with SMTP id b26mr534eja.204.1592259665797; Mon, 15 Jun 2020 15:21:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592259665; cv=none; d=google.com; s=arc-20160816; b=v9zwIF3JBbt97D6Iadv43wDVN4JDcVeAaxjQ7hI+5Agqgr9C2A2bkqJIf1lw8FsFhc Uo4o9y9IUIbebxFkA7RYNMz5pOFYq4OCKjAAfpppd/fSdQLIMuMBuujT7I9s8NrZ5G5f d3ZPIXB8bLElNQkGj0Nu1WN1pHApBKT98sL2LsJZqaHROr1Un+fcLfYYthCC64iGJG+a J6Jnsq4wwXUu0J6Et0m3TvzymymhY3pzs7oRPZkBswY5j8gOW7LO4BIu/xhOjPZK1iUs NkY0apviWMaHU1x6dygmLJ1QFrQ48JQALDh0tv2SvYk0l+JKBigVjflDN5fS+y3g+t9P waXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=r9T7k1DpPFTY/gAD5b6MEb9oHnKklfAWLgEYHIDgzf0=; b=zOscMSgsnyT/eWb8nV4jzOdJfDBSDHqEmbtbyGkOUQzgogSeBlRC/UD0i7vvXCbfJL VhWYYD7pfjh7ariYhVU8kxTi36kLEEpO+xaxLcHztXi6PfnjDoj1bjZ9SAGrIgTW2RZz Qy/mMFb+EXmpQ/scvpi1NbAIZ/tjj4cyFDLdwVb3/ueYSPl7JoUzGXAZjMitjRvOjPUj /8syIPAItk97s4rFDzW1Fsdm5XzWu5q+eizXcNl0RRpAFtXqHW6MQUy3ihZ7rOZ4KeJk eWhMZpxqbj9fUlaHdkfUQEzkAK0xzspinErGAHTbuPXjHhV66j/nILA71SFqNeYCb71Z Tlvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ARSthNo3; 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 um1si9877257ejb.200.2020.06.15.15.20.44; Mon, 15 Jun 2020 15:21:05 -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=ARSthNo3; 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 S1726452AbgFOWTG (ORCPT + 99 others); Mon, 15 Jun 2020 18:19:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725843AbgFOWTG (ORCPT ); Mon, 15 Jun 2020 18:19:06 -0400 Received: from mail-vs1-xe43.google.com (mail-vs1-xe43.google.com [IPv6:2607:f8b0:4864:20::e43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6D5CC061A0E for ; Mon, 15 Jun 2020 15:19:05 -0700 (PDT) Received: by mail-vs1-xe43.google.com with SMTP id m25so10325283vsp.8 for ; Mon, 15 Jun 2020 15:19:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=r9T7k1DpPFTY/gAD5b6MEb9oHnKklfAWLgEYHIDgzf0=; b=ARSthNo3qKbcMSHrOKeeWC4s+yNkZz9S1UbIt1WGKeODX5s69r5L5uSsoRuhcRobJN Xj/Xqk+norC+HRQUaNtFFSzzpLlDGWLoiCGIG8belx4tZTOHTmOWO3KyhG55PsCyo78l BOc8VvFbjNWSv0dAxz6W1DZo3IWtoKJj8pmBC1bQ13laz7a2BhtLrt0NuIgsKWVvKVI4 PuMFjEszl5teVPOZypEKgh60EpvkWUDFZrHyghbXOgFpxCgNwlFe3x/0p38CxgBadiC/ Xn+4v2ouT8LgYI2JX5xP2KovVOoZVW7YpVcOuO4bjCBRaGBKQ9tPGG2pf02zrtM5A62i Y2mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=r9T7k1DpPFTY/gAD5b6MEb9oHnKklfAWLgEYHIDgzf0=; b=ufKJ4WEnWixGn3A2GRMEFTl5HGoH2Mnjud2Ft4UMMxtMjxl/O6r9PYuhUXalKCyz1H eiagwkB41IH0aIlXiLDfaelRTXx9y+dJANUhuwVBE5P+sCKe3e9M2eHsqMXvo+rkOcuG Up8LKURXo3fr+9QARYD/Jl6BhAtEntXnoJAgU9FtN8QqS9eWwbNyVAe4zXqcYQe30YTB c9L6GG6B5hmewtqgiqF0unegVYoKk+bBMRRviWuM+yDhOqI6NahNhAJoatkj1cdnjylU sJwRsAnIepEYkLCOUZ+oVJYo9TeDXlZ1W/hMMed2GrU1Zg0aiDDQ9XZqLwK5+yn4uyDU CGQQ== X-Gm-Message-State: AOAM533Q8L3FR5F3jrV/rm3pMOACo8OdbVfrRylqWRzEwnBBX169XheX ODxOFSLQCf5eqxsMem+zThvPSctp6upBsWaoUiY= X-Received: by 2002:a67:3211:: with SMTP id y17mr22659348vsy.56.1592259544861; Mon, 15 Jun 2020 15:19:04 -0700 (PDT) MIME-Version: 1.0 References: <20200613155738.2249399-1-jim.cromie@gmail.com> <20200613155738.2249399-24-jim.cromie@gmail.com> <20200614060501.GB2608744@kroah.com> In-Reply-To: <20200614060501.GB2608744@kroah.com> From: jim.cromie@gmail.com Date: Mon, 15 Jun 2020 16:18:38 -0600 Message-ID: Subject: Re: [PATCH v2 23/24] kset-example: add pr_debug()s for easy visibility of its operation To: Greg KH Cc: Jason Baron , LKML , akpm@linuxfoundation.org, Rasmus Villemoes Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jun 14, 2020 at 12:05 AM Greg KH wrote: > > On Sat, Jun 13, 2020 at 09:57:37AM -0600, Jim Cromie wrote: > > put pr_debug()s into most functions, to easily see code operate when > > module is loaded and used. > > > > #> dmesg -w & > > #> modprobe kset-example dyndbg=+pfml > > #> cat /sys/kernel/kset-example/*/* > > --- > > static int __init example_init(void) > > { > > + pr_debug("called"); > > Why??? If you want to do something like this, use ftrace, that is what > it is for. > > thanks, > > greg k-h mostly I needed an easy place to try out pr_debug_n in the next patch. if that next patch seems like a good anti-pattern for pr_debug_n use/misuse, then I could combine the 2, and add a 'dont do this, use ftrace' comment too. or not, of course.