Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1879166imm; Sat, 6 Oct 2018 12:33:20 -0700 (PDT) X-Google-Smtp-Source: ACcGV63Vt+0s5x0o2NUyPESh9VjkzZclRpf0yMxPclF8gc1gHnBIHWuADvHpowRTBJaeDGMAClKJ X-Received: by 2002:a17:902:9a07:: with SMTP id v7-v6mr16667094plp.14.1538854400023; Sat, 06 Oct 2018 12:33:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538854399; cv=none; d=google.com; s=arc-20160816; b=BCv2KKmNv+ffDw0l9YI+1MPJBfXp9to0rLv3XXqsIhDOmcBehaUT5DiidT7wS5C33w t6ND78KgnbEYxpj+WtXGAViKa8AbFjsGUaL6LENClt41LhFTTMp+CfxKfb0M93rDsmlk 61I8RNRInG1Jmx+I4XKdPCu/gall3Zx0pQp3cGR1ReF51pxf4vTOnxYs6Q2rtgQctYHu iUOqr633giw+mJEZJMFkJJAF4IWcLuKOTQ9WOAn6yJ/zXr41/YLKf6gEpnmOICFYRfeX GGDJ7w4z70OrPY13suPCYNC8ccwvnUkecTUO4iwMNdkCrDHBx/dX5rnbxDCmR9spo9v0 OiJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=+2Cu9ysZgSZWm39Ht2D/knXSA19pvgwbQEhKjI8rWlM=; b=jaTpEpK7KdOc+ULZF9FDWO0Mwx5XwAK9DsheULo90npYIAei/BFsjaOwRibmNDYoJp cfRqJfSFZqh76/YDOHqREac1pOWlaXrndobT6qQgnTq230agMlooFzC3P6Bs3uoL7le3 uLZH/74SF5JaHfPDulu8uGIvI+cgpFAxFf7DJ/WuwDFF2H2Fik3mqo9ayhzM43uqzYuU 8Zt2v/qfM6FzQR29gh3BAzC1v0dVX/LfYYfyVh+v4I1f9s4/KE7LcLhzsds8sShcShJx NDYBZDq2yynWsnxrqAhud3qZpkXdH1S5hGetmfkoWAaKZUR8N+lRtSi2hJeDFp1/C/OR fDPg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f3-v6si12279724pld.416.2018.10.06.12.33.04; Sat, 06 Oct 2018 12:33:19 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727854AbeJGChV (ORCPT + 99 others); Sat, 6 Oct 2018 22:37:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60992 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726217AbeJGChV (ORCPT ); Sat, 6 Oct 2018 22:37:21 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 25E2B308212A; Sat, 6 Oct 2018 19:32:50 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DFFD85DA60; Sat, 6 Oct 2018 19:32:49 +0000 (UTC) Received: from zmail19.collab.prod.int.phx2.redhat.com (zmail19.collab.prod.int.phx2.redhat.com [10.5.83.22]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id A1FA11809545; Sat, 6 Oct 2018 19:32:49 +0000 (UTC) Date: Sat, 6 Oct 2018 15:32:48 -0400 (EDT) From: Rodrigo Freire To: Steve French Cc: LKML , Steve French , CIFS , Pavel Shilovsky Message-ID: <390397598.33123368.1538854368976.JavaMail.zimbra@redhat.com> In-Reply-To: References: <194690850.32402710.1538508513975.JavaMail.zimbra@redhat.com> <697659653.32427271.1538515234390.JavaMail.zimbra@redhat.com> <633521295.32428133.1538517226400.JavaMail.zimbra@redhat.com> Subject: Re: [PATCH v2] CIFS: Print message when attempting a mount MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.97.116.29, 10.4.195.25] Thread-Topic: CIFS: Print message when attempting a mount Thread-Index: 789N7b2sfdeiFTzgkcrcPU7Ia3zNlg== X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Sat, 06 Oct 2018 19:32:50 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Steve! o/ Appreciate your time and review. For a v3, what would you like more: a pr_info() straight away in the code for the message, or, writing a new cifs_info() function wrapping over pr_info, like we have in cifs_dbg (which translates to pr_debug or pr_err)? Waiting for your comments. Thanks! --- Rodrigo Freire - Principal Technical Account Manager GLOBAL CUSTOMER SUCCESS - Partnering with you to help achieve your business goals redhat.com | TRIED. TESTED. TRUSTED. | redhat.com/trusted ----- Original Message ----- > From: "Steve French" > To: rfreire@redhat.com > Cc: "LKML" , "Steve French" > , "CIFS" , "Pavel Shilovsky" > > Sent: Saturday, October 6, 2018 4:09:30 PM > Subject: Re: [PATCH v2] CIFS: Print message when attempting a mount > On Tue, Oct 2, 2018 at 4:53 PM Rodrigo Freire wrote: > > > > Hi hi again Steve \o > > > > I do see potential for a ftrace rewrite for the cifs_dbg messages. > Was looking at this on current kernels and debugging mount is probably > fine for developers (or users) - plenty of debug messages get printed > via the dynamic ftrace points. In practice some would prefer less > noisy trace logs so the minimum set for some would be something like > this (which already works with current cifs). If we want to add some > default log messages on mount to dmesg instead of the trace-cmd log, > maybe we should log them at a slightly less noisy level (as we see > with xfs and btrfs) so they will be more log friendly > root@smf-Thinkpad~/# trace-cmd record -e smb3_enter* -e smb3_exit* > Hit Ctrl^C to stop recording > root@smf-Thinkpad:~/# trace-cmd show > # tracer: nop > # > # _-----=> irqs-off > # / _----=> need-resched > # | / _---=> hardirq/softirq > # || / _--=> preempt-depth > # ||| / delay > # TASK-PID CPU# |||| TIMESTAMP FUNCTION > # | | | |||| | | > mount.cifs-14199 [002] .... 97642.728411: smb3_enter: > cifs_mount: xid=20 > mount.cifs-14199 [002] .... 97642.728669: smb3_enter: > cifs_get_smb_ses: xid=21 > mount.cifs-14199 [003] .... 97642.742336: smb3_exit_done: > cifs_get_smb_ses: xid=21 > mount.cifs-14199 [003] .... 97642.742343: smb3_enter: > cifs_setup_ipc: xid=22 > mount.cifs-14199 [003] .... 97642.742530: smb3_exit_done: > cifs_setup_ipc: xid=22 > mount.cifs-14199 [003] .... 97642.742532: smb3_enter: > cifs_get_tcon: xid=23 > mount.cifs-14199 [003] .... 97642.742674: smb3_exit_done: > cifs_get_tcon: xid=23 > mount.cifs-14199 [003] .... 97642.743267: smb3_exit_done: > cifs_mount: xid=20 > mount.cifs-14199 [003] .... 97642.743311: smb3_enter: > cifs_root_iget: xid=24 > mount.cifs-14199 [003] .... 97642.743471: smb3_exit_done: > cifs_root_iget: xid=24 > -- > Thanks, > Steve