From mboxrd@z Thu Jan 1 00:00:00 1970 From: ronnie sahlberg Subject: Re: [PATCHv2][SMB3] Add kernel trace support Date: Fri, 18 May 2018 18:00:26 +1000 Message-ID: References: <1169121702.2774727.1526614091337.JavaMail.zimbra@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Cc: Ronnie Sahlberg , CIFS , LKML , samba-technical , linux-fsdevel To: Steve French Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-cifs.vger.kernel.org Fair enough. Onto a second point then, for future patches. There are a lot of places where we do not (yet) pass a tcon as argument. Can we make a policy decision to mandate that every tracepoint MUST log tid, sid? And thus, if you need a new tracepoint in a function where tcon is not available you then first have to do the plumbing to pass the tcon all the way down to the tracepoint? Ideally we should pass tcon into any and every leaf function for tracepoints as well as debug logging. On Fri, May 18, 2018 at 4:19 PM, Steve French wrote: > On Thu, May 17, 2018 at 10:28 PM, Ronnie Sahlberg wrote: >> Very nice. >> >> Acked-by: Ronnie Sahlberg >> >> Possibly change the output from >> pid=6633 tid=0x0 sid=0x0 cmd=0 mid=0 >> to >> cmd=0 mid=0 pid=6633 tid=0x0 sid=0x0 >> >> just to make it easier for human-searching. I think the cmd will be useful much more often than pid/tid/sid >> and this would make it easier to look for as all cmd= entries will be aligned to the same column. > > My instinct is to preserve the consistency by beginning with the the > fields that will be in 90% of the commands: tree id and session id > (tid and sid), which would cause pid to move after sid or after cmd, > but I would prefer to wait on reordering fields and fixing alignment > till we add another set of tracepoints (e.g. in FreeXid, and in > SMB2_open and in the caller of negprot/sessionsetup) - we should then > have a better idea what formatting would make it slightly more > consistent and readable. > -- > To unsubscribe from this list: send the line "unsubscribe linux-cifs" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html