From patchwork Thu May 9 04:37:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve French X-Patchwork-Id: 10936615 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E6FAE924 for ; Thu, 9 May 2019 04:37:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D293628901 for ; Thu, 9 May 2019 04:37:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C3E7A28A0D; Thu, 9 May 2019 04:37:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5673C28901 for ; Thu, 9 May 2019 04:37:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725908AbfEIEh1 (ORCPT ); Thu, 9 May 2019 00:37:27 -0400 Received: from mail-pf1-f179.google.com ([209.85.210.179]:44253 "EHLO mail-pf1-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725892AbfEIEh1 (ORCPT ); Thu, 9 May 2019 00:37:27 -0400 Received: by mail-pf1-f179.google.com with SMTP id g9so593205pfo.11 for ; Wed, 08 May 2019 21:37:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=diAdZ54Z6L91gN8pxCLk4ZF12brlkm64ieBPXxkRE7M=; b=gFRQsnGgEWNUo+ZjuVEzmIGfZnV6y2dCZorUH8AfzoXbXhcT8zWlgHT1DubiJ3W7RU wVQDOnna2o9j5IoT7HRlLWEWZAyGpeeC9aIw/CW3d8BNRnThZ63wktFW3HKFB/WTGTZv 6isWBbvK4Odb+843qufkZAImUXCfSAWIQxeAQDQ6a4nQByD0WBn3IRND+nns/Sj4OiVb iM2BVpujw8eTccqYSvaunVQZ/C2oWMJtPeHLpSflK37Lg829RgIYtxvuGw8UhgeGCPPL x4MHoWjeuKM0ijGSGBzHhgJHYHtV6B9vVH7z0D/tihKYKbAyH6GWLZN7fCKv/sjVxihe bWuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=diAdZ54Z6L91gN8pxCLk4ZF12brlkm64ieBPXxkRE7M=; b=jZJgTQFxBL/tHHzF3VX2+xn2krp9E8603GQGrxEIwMC8XKUhMUphRVBK2gNkshSr9T Ew8U8B0glFZFm93OMNoaJTNUK71KaiKZBTeVa1V3jBriMC3VDYxeajo9AT/RAyZGdZ95 Pcti6zaGjSB1/4sTI/ezI9Avf+hjmW2mPWkY1+mjirbtuRYAPXTF46ZIntf0qMDicJmM IFUl9stkqJ3tPrSA0ZmvVA9d6woSPSneYixWMWmJ6loQYatMV6vwWUBcEoUK5bCtaVUn w3jzXR+VCQw1J4c+wiwYSW3Wyyxk2Rf0+i/v2K+311eaN/gScBpQ7+PWRpjQYdKdajDu Of8w== X-Gm-Message-State: APjAAAWBMSAZCRTVzkPit0zMGJcvFizcPijzcVlbIPX5ffV0EZv+N+dJ 5H5heJp2lBoobsyNQvxr1umn9RTgnDmjq50b/TwIbg== X-Google-Smtp-Source: APXvYqwzfWO+Sx3BzG9Of84K1oDceQcT5zB4JQzRzOENIFKK3ZIrPnZInfA8iAXFsR3dzzj32qARPV460bIRH4RzKKk= X-Received: by 2002:a63:f843:: with SMTP id v3mr2805338pgj.69.1557376646251; Wed, 08 May 2019 21:37:26 -0700 (PDT) MIME-Version: 1.0 From: Steve French Date: Wed, 8 May 2019 23:37:14 -0500 Message-ID: Subject: [SMB3][PATCH] Display session id in /proc/fs/cifs/DebugData To: CIFS Cc: Pavel Shilovsky Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Pavel noticed that we don't display the session id in /proc/fs/cifs/DebugData yet it is important. Patch to add this attached --- Thanks, Steve From f7de337f9cff0470d0d1db0494a1d1fcd1a98e1b Mon Sep 17 00:00:00 2001 From: Steve French Date: Wed, 8 May 2019 22:41:37 -0500 Subject: [PATCH] smb3: display session id in debug data Displaying the session id in /proc/fs/cifs/DebugData is needed in order to correlate Linux client information with network and server traces for many common support scenarios. Signed-off-by: Steve French --- fs/cifs/cifs_debug.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_debug.c index 6a69f11aacf7..bef78b3a93d3 100644 --- a/fs/cifs/cifs_debug.c +++ b/fs/cifs/cifs_debug.c @@ -380,6 +380,8 @@ static int cifs_debug_data_proc_show(struct seq_file *m, void *v) atomic_read(&server->in_send), atomic_read(&server->num_waiters)); #endif + /* dump session id helpful for use with network trace */ + seq_printf(m, " SessionId: %llu", ses->Suid); if (ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) seq_puts(m, " encrypted"); if (ses->sign) -- 2.20.1