Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4957078imm; Fri, 18 May 2018 13:44:26 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrCnXR6x5HAwkUujP50KHk3x68cnTLpUsCulG+mhakuVrC3GE/GJ3jKeFqWGDsGaWuD6KOm X-Received: by 2002:a63:9205:: with SMTP id o5-v6mr8649789pgd.233.1526676266746; Fri, 18 May 2018 13:44:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526676266; cv=none; d=google.com; s=arc-20160816; b=qd6Y2f3ycIIVETzhaiJL1VRvWXgYCxt8o5BSF7U7rjUEFXC49vHqR6fMIzbNqqxaiO Lr1Q8Sn9PzGOSVQaEmqbV9D79TQfttBH/LKouw7zuIyXtGEOo8ynMf1uHfFKiMQ2/HPz ty4zXyajBQ+JDXZbSXEUZqRf8yYZOpB228LT/3VfFOzHI7wgNClzzd2TrchKrbT7q3Ms K/w0lfZqxlXHBb7hNIAME8JJiSKYmoP98FW0GSs9ZXTRq5aiTCidTZ5ylQhKOBhWGszR FoKdjvdfT5FZGxTHhYkgTsnF56VeLAPUefCOa/9qbZqPgZUvgGM7zPMx6BDPkc+PQ6u6 Gr5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=L2TZcL0SLtKwrFlsze1WUvnn0Cl6ggBcsIXw44nclk4=; b=zhP2OO0tZ/iUY0bMmk3SlN6DuLXXHDsVnL9m0rpmmGJ6yE1W3sJXvETpFP3cIeRYEA s1EX+E/vLKrTCOAmqrFGzSlqabkDwTpQ68mLjwg3bDnSU/svzVIZ0Z2i9VlS8fELcm8o Css+ePafsgg5Z25vH2wsdYFarcZJdXKUWbLmdJagqfK98WPuIpnCL0PXtyiryeQ31qsV M05p1woJ4jkO54ZkH2hJwueijJWUAbu6RAlAjyhUEmrZ5UMK8RMZrk6HUzEsAohx6Mff 1qgZCjq4UOYIoAY6FpSA7zmPBn0r6WjA9USEBrbb8qrjGPc+R6B5/oz3u5kT6XqNBaWJ lcZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lZMqP4T9; 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 186-v6si8271934pfg.141.2018.05.18.13.44.12; Fri, 18 May 2018 13:44:26 -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=lZMqP4T9; 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 S1752229AbeERUnk (ORCPT + 99 others); Fri, 18 May 2018 16:43:40 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:46323 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751156AbeERUnf (ORCPT ); Fri, 18 May 2018 16:43:35 -0400 Received: by mail-pf0-f195.google.com with SMTP id p12-v6so4271032pff.13; Fri, 18 May 2018 13:43:35 -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:content-transfer-encoding; bh=L2TZcL0SLtKwrFlsze1WUvnn0Cl6ggBcsIXw44nclk4=; b=lZMqP4T9lRniKu/TKLcCtoCwwxWEbjEvjjyTzE7OSvbF1J5ZNT/s73jF56KzJxS1HV oQjyhbo35SZ1b/lagJwl0QcYaRQzAELaSiSLTwuhQ75oiGzsMOWfCNBNHeUpVjnlOJ6C 1IXIWl2bc8GrpQCmxq/mGWWxyj2bWd+q3jefTFY7CghJV0glW0pWbMyNNk7v4BVJB+ym xb/IX6nVKvYh6Bjslib0vbRbNaR6ZJYnGKJ9RbBJ7hj5fqBoUHZQA+58qVaIKRX2vPMD RsDGW3l7Y0VI98ff2SHuP7Hq0RmmeGkzHekJk2zmDDCwElY0njR7Gxq5AKhck7TPu72n gJuA== 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:content-transfer-encoding; bh=L2TZcL0SLtKwrFlsze1WUvnn0Cl6ggBcsIXw44nclk4=; b=hp1dYgqVBgE6W1FByPs4W7OLy7sHoVMxRbujsIQvQAVO1XpWVOf7Fbixe+e63Blfrk xN5/LhXjr+R4MDSq0m7FVB5LGXOLMFf6D7QdvP2S/3J2L/QMjQvkjOEuswglUfIK7Jsa 9cB3n4acZP1/n2SSNSYeB9+q9g8S/w0UJcgiA/kmLs7igAiFxwOCkyn2YdknAFPc+Dpk lOmFfq7wvA/HRld2FYXWOVAIR8RjP6Zo7zwXJfKgwa0RLlrgjC5thWIGMA72CBE/It4U q/8Kl44eU1GoJ24J8oGF34xU6RRHkOsYGoLJT7mIXJnOTqO89c0YBhHkR5UT4M2M8FLe uihg== X-Gm-Message-State: ALKqPwfdKVB5VDS9D/IDWtH6xFcOAzBMw4C4L8uX8mjmFbY8ZdzlZiAw 3xevTyqVqElN6vFlBmsgTzlJ0EkeL7cP1zFjbuI= X-Received: by 2002:a65:4289:: with SMTP id j9-v6mr8523898pgp.136.1526676215002; Fri, 18 May 2018 13:43:35 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a17:90a:bd8f:0:0:0:0 with HTTP; Fri, 18 May 2018 13:43:14 -0700 (PDT) In-Reply-To: <20180518184630.axfa7oq4pewb7foj@kazak> References: <20180518184630.axfa7oq4pewb7foj@kazak> From: Steve French Date: Fri, 18 May 2018 13:43:14 -0700 Message-ID: Subject: Re: [PATCHv2][SMB3] Add kernel trace support To: =?UTF-8?B?UmFscGggQsO2aG1l?= Cc: CIFS , LKML , samba-technical , linux-fsdevel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 18, 2018 at 11:46 AM, Ralph B=C3=B6hme wrote: > On Thu, May 17, 2018 at 09:36:36PM -0500, Steve French via samba-technica= l wrote: >> Patch updated with additional tracepoint locations and some formatting >> improvements. There are some obvious additional tracepoints that could >> be added, but this should be a reasonable group to start with. >> >> From edc02d6f9dc24963d510c7ef59067428d3b082d3 Mon Sep 17 00:00:00 2001 >> From: Steve French >> Date: Thu, 17 May 2018 21:16:55 -0500 >> Subject: [PATCH] smb3: Add ftrace tracepoints for improved SMB3 debuggin= g >> >> Although dmesg logs and wireshark network traces can be >> helpful, being able to dynamically enable/disable tracepoints >> (in this case via the kernel ftrace mechanism) can also be >> helpful in more quickly debugging problems, and more >> selectively tracing the events related to the bug report. >> >> This patch adds 12 ftrace tracepoints to cifs.ko for SMB3 events >> in some obvious locations. Subsequent patches will add more >> as needed. >> >> Example use: >> trace-cmd record -e cifs >> >> trace-cmd show > > pardon my ignorance, but are these tracepoints usable with other tracing > frameworks like Systemtap? > > Last time I checked, Systemtap looked like *the* tool. Is there a generic= trace > point infrastructure that tracing tools can consume, so we're not tied to > ftrace? At the kernel filesystem/mm summit a few recommended using ftrace (trace-cmd). Don't know what the thinking is about this vs. systemtap these days. There was a nice three part series describing ftrace/trace-cmd on lwn (https://old.lwn.net/Articles/365835/) a while ago. In terms of useability "trace-cmd" looked good to me and much more powerful than the current dmesg based printk style debugging. Since the most active file systems (except for cifs.ko) on Linux btrfs, xfs, nfs and ext4 (and even dax and ocfs2 and nfsd and fscache etc. and of course various drivers) already use it, seems like it is widely accepted still and overhead is small when not logging (default= ). --=20 Thanks, Steve