Received: by 10.192.165.148 with SMTP id m20csp3380930imm; Mon, 23 Apr 2018 05:45:06 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/yEB3CxxGu4OjptEbeLAZOzgxJ5LH9/ogwXSXdrawV75SEvbmSA1TZtSbP2OFEhySEqC/U X-Received: by 2002:a17:902:30f:: with SMTP id 15-v6mr20844728pld.365.1524487506104; Mon, 23 Apr 2018 05:45:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524487506; cv=none; d=google.com; s=arc-20160816; b=dQvYr+1JDJgAKc08fsxc6oBph3YpaZBsJZHjBmCc4lVR4CG534uSPDmOFXbYMa9Vld dD99aIWXVSCrt0UAueUTUkQzVlIH7OxoP/i6/xF/oh2Trd4qElp96q14+BIkoXR1OfEA zUe0BvvFWwWXSeN2WljiY8Zp8QS6kG6fAISTWtxLGH5I1JKddTVrPNOFXZdHKxPFcIu5 p6hFktRWaeyqGmjxaE6DBmt6USjxlVz5DjsxArcJ0ujpBaun/wL3ZZ7Qg0t7dTcluQOx lEJPmfiS9pw8qNttA56U5TCJnFQDXIMIS5rqRwNNPS9E2QViJfsOImC5zEfp2WkTJ8lt AHSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date:from :references:cc:to:subject:arc-authentication-results; bh=eareQcB7UpEOZTCITARLT72IS8FvhkZSsVIeEjpjlUY=; b=JTVcvhlTK91q3tdJpC9asU06pgrs6NpZoSZr7x9iT5/K0+/BvI9PjEZqRVle5XsF1w 9UjogjxBI/W6eHhVI446exFaTo/Mlr8STo+tCZ43TISZB9BzAxsZj+B/dEWTJMh/9WFc Lxv4jAixXre6AU5yJBe1cPlOe7Ek1HjCtA8ucY0O/njusBmhYOSq8bClwhdJEMJv70lJ 7gr7FQiK4JCjwWJHaZOh5T50xeKlfNOsOZsHOhPinZ15cVRaYbG9NhCHhGjMHKIFJCgu 6xiaVfNISe9U/aFaimaBKTkEx8PasiOxYvuWStNxy8/LmJfUAFo4t5DL4kD3eTUAbY+g Mx9w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k124si9593422pgk.424.2018.04.23.05.44.51; Mon, 23 Apr 2018 05:45:06 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755216AbeDWMnY convert rfc822-to-8bit (ORCPT + 99 others); Mon, 23 Apr 2018 08:43:24 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:36246 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754857AbeDWMnW (ORCPT ); Mon, 23 Apr 2018 08:43:22 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3NCdLbJ009423 for ; Mon, 23 Apr 2018 08:43:21 -0400 Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) by mx0a-001b2d01.pphosted.com with ESMTP id 2hhddne9km-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Mon, 23 Apr 2018 08:43:21 -0400 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 23 Apr 2018 13:43:18 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp12.uk.ibm.com (192.168.101.142) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 23 Apr 2018 13:43:15 +0100 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w3NChElY8257872; Mon, 23 Apr 2018 12:43:14 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A07354204B; Mon, 23 Apr 2018 13:34:39 +0100 (BST) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0891C42042; Mon, 23 Apr 2018 13:34:39 +0100 (BST) Received: from oc2481388365.ibm.com (unknown [9.152.212.160]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 23 Apr 2018 13:34:38 +0100 (BST) Subject: Re: [RESEND PATCH v1 2/2] trace: events: block: Add tag in block trace events To: "Bean Huo (beanhuo)" , Steven Rostedt , "axboe@kernel.dk" , "jejb@linux.vnet.ibm.com" , "martin.petersen@oracle.com" Cc: "linux-block@vger.kernel.org" , "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "mingo@redhad.com" , "Bart.VanAssche@sandisk.com" , "rajatja@google.com" References: <64d6073b28b140cda3e5870a54e0a7bc@SIWEX5A.sing.micron.com> From: Steffen Maier Date: Mon, 23 Apr 2018 14:43:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <64d6073b28b140cda3e5870a54e0a7bc@SIWEX5A.sing.micron.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8BIT X-TM-AS-GCONF: 00 x-cbid: 18042312-0008-0000-0000-000004EE461B X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18042312-0009-0000-0000-00001E826921 Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-23_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1804230132 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/16/2018 04:33 PM, Bean Huo (beanhuo) wrote: > Print the request tag along with other information in block trace events > when tracing request , and unplug type (Sync / Async). > > Signed-off-by: Bean Huo > --- > include/trace/events/block.h | 36 +++++++++++++++++++++++++----------- > 1 file changed, 25 insertions(+), 11 deletions(-) > > diff --git a/include/trace/events/block.h b/include/trace/events/block.h > index 81b43f5..f8c0b9e 100644 > --- a/include/trace/events/block.h > +++ b/include/trace/events/block.h > @@ -478,15 +486,18 @@ DECLARE_EVENT_CLASS(block_unplug, > > TP_STRUCT__entry( > __field( int, nr_rq ) > + __field( bool, explicit ) > __array( char, comm, TASK_COMM_LEN ) > ), > > TP_fast_assign( > __entry->nr_rq = depth; > + __entry->explicit = explicit; > memcpy(__entry->comm, current->comm, TASK_COMM_LEN); > ), > > - TP_printk("[%s] %d", __entry->comm, __entry->nr_rq) > + TP_printk("[%s] %d %s", __entry->comm, __entry->nr_rq, > + __entry->explicit ? "Sync" : "Async") > ); > > /** This entire hunk does not seem related to this patch description. Also, I'm not sure trace-cmd and perf et al. could format it accordingly. See also my patch for this same functionality: https://www.spinics.net/lists/linux-block/msg24691.html ("[PATCH v2 1/2] tracing/events: block: track and print if unplug was explicit or schedule") -- Mit freundlichen Grüßen / Kind regards Steffen Maier Linux on z Systems Development IBM Deutschland Research & Development GmbH Vorsitzende des Aufsichtsrats: Martina Koederitz Geschaeftsfuehrung: Dirk Wittkopp Sitz der Gesellschaft: Boeblingen Registergericht: Amtsgericht Stuttgart, HRB 243294