Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4214496imm; Fri, 18 May 2018 01:01:59 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpB2r3hBe1BSNc0bP81RPV8cmIy8bMijtifvdGeM0Ups3k4PgMNgI5TR8N9JEE5H+ia8hAq X-Received: by 2002:a17:902:76c4:: with SMTP id j4-v6mr8523065plt.257.1526630519857; Fri, 18 May 2018 01:01:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526630519; cv=none; d=google.com; s=arc-20160816; b=bND41R669/wvM1FJVtCzFbNQJxHLhyV5VB8pEnGmeusZYEVSuYbuVer3iG+xz9Y1h4 2k+EykxTaE0M+pcLfIwMDeNBcqSodZq3tp8heG5BJMtjULt6tpFLlaHwLskvQ14heLhG kn9IU/Y4ciE+mfGs5qETT8M0kRAkTZWvEpiuuEJWQLIWGrJT1PyfnTdVflXLKVIsrnp+ JxP7yocwg4eaY30hLyiBqTTV9OLYR3sSMlXKbCnKWuo0DvUXH4o52sb3gkUiOExfsybB FT5Ac8s7ptKbsvA2t/4C3HXQnCNSxpxTHC4Wr3fPQh+Pmi81ViY7liwki+j0vT9fUfVq 16Ag== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=g3T45/ObvGCo2pmWzcq4Vo3m/yFk3I6BlN+eR+C5Hpo=; b=0AF48fulK6ysSHkrU8Gsr8CaqP9d34SwkoJQMeEjz1mpb/SROccaPR1Fq9EoMFhHlL Uwrh1YEWC1/K3yrqxmlcQ/xEPZGKGP1B22WxzG4Py9Ch8Lw6F2n8MEt5V3hZn1ivzKhC g8QibokyoAMTcgLlJRa0cXffVdMP5BNnvxf3Cs+8e++Y9kfh5ydyuROeoty8NGvYwggE Q1NP26NTOxSi4rEImPIGVb8lQdnXyJOI7hA9easJIlLErsANfP87dloDel/FviCSAogs MQnRDx0fNll20sXYJyDllFUNa+otmaAfyBdsTPM6j4hZ8mysXXxuTC+ufxVnU0Jg9Jg5 nbVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EO11pvji; 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 l67-v6si7004068pfg.326.2018.05.18.01.01.45; Fri, 18 May 2018 01:01:59 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EO11pvji; 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 S1751986AbeERIA3 (ORCPT + 99 others); Fri, 18 May 2018 04:00:29 -0400 Received: from mail-qt0-f193.google.com ([209.85.216.193]:45921 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750977AbeERIA1 (ORCPT ); Fri, 18 May 2018 04:00:27 -0400 Received: by mail-qt0-f193.google.com with SMTP id j42-v6so9152528qtj.12; Fri, 18 May 2018 01:00:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=g3T45/ObvGCo2pmWzcq4Vo3m/yFk3I6BlN+eR+C5Hpo=; b=EO11pvjidvm5p7mzYg7rVaN8ncT04ExlHf2JWhsqLWIXM5NzGJyl+E5kbt7xYj4R/W ZlnK48bmfEy6czEE4ARjEEqBkQHl0IO1Fx9VWXGw2j0Gi8fb4XnJqOlnjCNMeqhC2gze /gyPfRb2CKjAlz/u8+BfZfuVLwZz+XsBhfdyzu28/EbVxvhG4X8EiRre3yNJcv7F+Q+e xfeKwHYmiJkuNb1Lnjoa8EKR6de/vAMpc1O/WYj3byqGtQc/eQxYefy2m2y6tKNmjDht 6JQ8qqUpCwEDhi3IxutAe9x7tOTcaIVpxaN7NJVSyq3hE26hYsB5Tk88IQ1hzn+UBqyr DFeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=g3T45/ObvGCo2pmWzcq4Vo3m/yFk3I6BlN+eR+C5Hpo=; b=VlpWMq4JeMG9Xojr9psYEjw3KdMi/uLj2ksZeI3duysEk+FtDa36XB7RnA3wLRJYJc c5YYe4D/iLVto7AyjcwGrzm2olYpDPCiF0o7Rwx9YYTa9ZcEX2vzzkS11sx+XhJdXoA5 9wdCDM3L9H64upNSCcnYybTo9WTRVxV5+XbiiyoCyMYJy+MI4fA1SMoxtLFIdTTKKeiC 0mxVOVKL4cv6/C2Z5TtpDVt7Met+2bIGoen9LQe3XUGQYd+iIyFjfITi0mUoMmeZkZSV DFad1IVdGssado75PaSHKWwTPva5++Ohs5ZHMOCyltVCKij5P7VLBqO5Hs2ufZRCMhy9 6WIA== X-Gm-Message-State: ALKqPwfFhnlszI7Cr/fo6nQqRyjxUdevuHZDGbRmrnttt+Jp33m3e8T0 ppVSW1DL7JtOGEhm44IYCnaVGI0cRYisDXKaWCc= X-Received: by 2002:a0c:926f:: with SMTP id 44-v6mr7880020qvz.149.1526630426767; Fri, 18 May 2018 01:00:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.161.5 with HTTP; Fri, 18 May 2018 01:00:26 -0700 (PDT) In-Reply-To: References: <1169121702.2774727.1526614091337.JavaMail.zimbra@redhat.com> From: ronnie sahlberg Date: Fri, 18 May 2018 18:00:26 +1000 Message-ID: Subject: Re: [PATCHv2][SMB3] Add kernel trace support To: Steve French Cc: Ronnie Sahlberg , CIFS , LKML , samba-technical , linux-fsdevel 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 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