Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752603Ab0ATGn2 (ORCPT ); Wed, 20 Jan 2010 01:43:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751973Ab0ATGn1 (ORCPT ); Wed, 20 Jan 2010 01:43:27 -0500 Received: from fgwmail6.fujitsu.co.jp ([192.51.44.36]:40256 "EHLO fgwmail6.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751319Ab0ATGn0 (ORCPT ); Wed, 20 Jan 2010 01:43:26 -0500 X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.4.0 Message-ID: <4B56A5EF.40703@jp.fujitsu.com> Date: Wed, 20 Jan 2010 15:42:55 +0900 From: Kei Tokunaga User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: linux-scsi@vger.kernel.org, James Bottomley , Ingo Molnar , Steven Rostedt , Frederic Weisbecker CC: Tomohiro Kusumi , lkml , Li Zefan , Xiao Guangrong , Kei Tokunaga Subject: [PATCH 0/2] scsi: ftrace based scsi tracing feature Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1990 Lines: 49 Hi, We'd like to propose this patchset (ftrace based scsi tracing) as the first attempt for SCSI tracing, starting with the minimum trace points. Tracing gives us an idea how far SCSI processing goes, for example, even in a case that a SCSI IRQ handling is blocked by other drivers that disable interrupts for a long time. Also, trace could be used for debugging purpose in development similar to how USB developers use usbmon for collecting submitted and completed URBs for debugging. In a mission critical area, there is sometimes a case that we have to analyze a problem at customers without taking a memory dump as much as possible. There is also a case to solve a problem which reproducibility is very low (but we can not just leave the problem) so collecting additional data afterwards is difficult. In this version, it prints host#, channel, id, lun, and CDB (and a value of 'result' if it's called in scsi_done().) All fields of CDB are printed in hex, and some of them are printed in ascii as well. That makes the outputs be more user-friendly. For example, retrieving 'lba' and 'transfer length (txlen)' data from CDB of "SCSI3 block command READ/WRITE," and printing them in the friendly format, users can easily correlate the info from SCSI layer with block layer. (All the conversions to ascii that requires relatively large costs are done in TP_printk(), making the overheads at storing trace be minimum.) CDB has various lengths for its size and that made us end up creating __print_hex(). This patchset applies to 2.6.33-rc4. ([PATCH 0/2] scsi: ftrace based scsi tracing feature) [PATCH 1/2] scsi: add __print_hex() to ftrace [PATCH 2/2] scsi: add scsi trace core function and put trace points Thanks, Kei -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/