From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from hr2.samba.org ([144.76.82.148]:42324 "EHLO hr2.samba.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750763AbeERTZC (ORCPT ); Fri, 18 May 2018 15:25:02 -0400 Date: Fri, 18 May 2018 20:46:32 +0200 From: Ralph =?utf-8?B?QsO2aG1l?= To: Steve French Cc: CIFS , LKML , samba-technical , linux-fsdevel Subject: Re: [PATCHv2][SMB3] Add kernel trace support Message-ID: <20180518184630.axfa7oq4pewb7foj@kazak> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Thu, May 17, 2018 at 09:36:36PM -0500, Steve French via samba-technical 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 debugging > > 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? Thanks! -slow -- Ralph Boehme, Samba Team https://samba.org/ Samba Developer, SerNet GmbH https://sernet.de/en/samba/ GPG Key Fingerprint: FAE2 C608 8A24 2520 51C5 59E4 AA1E 9B71 2639 9E46