Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4810600pxj; Wed, 12 May 2021 13:53:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4O7OvDUKkjJnskGAB4iHs5cNxQQjZA1jjFpfS01/g1zY5VE521p/tb/+HVPj2Fg033tEp X-Received: by 2002:a92:d191:: with SMTP id z17mr28777020ilz.13.1620852793315; Wed, 12 May 2021 13:53:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620852793; cv=none; d=google.com; s=arc-20160816; b=FCX0kKY3ISYhdU2AOBgjWaOHE0ToPAafbVkxu65MpMi9c2jZmaSNk8LeUeqVQxXFJI pY4kzK4JvmDYTJlexJ6qrQr+u9X1JMtNL7WI47wtv/v7ItBaHcU5G0dSv8oDgINrJzC2 IcaaQt7OujbjhVT02omukwhBYvHOwUTCKzVMkB1FWVQ5F0eVSdTQJkCx8/0TfQ44FRPy Pv0Fi01VqjH09j1doxsSdltPl953qRRayYuSPyK7Sz3SwQtY3QWwpXLJ+JbvviCLSHqP 826nHvjGsaREFXRuG1LbQgWqJHPvTl4Ti4OBPmX/XWjaGQOdKa/VA9A8Qi+w4TEfGjVO /B0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=N4ZAlOgDW9ujpwjPHQr8aGCrSs+JV5Nyhyk5LQI3HKI=; b=fbXshQ5qpSZZQ+iJRGwZdKl4kh8bX3iqRRjppS0XA+NeSCOQhxZ2r0T3dsu6hTh7Lg QIWxG79GtXwpjyVqEx+BC8HoEiMzFju3xVIMGZDpHSF08sQWkg1NPRACUS2xjdXHEcHn LxHN7FMo6HdVo3T+j2QKooBvxCZ4tU9ZvG780fvI9AK/kLmBsSTBXYml9TkIBW7929Ci J1fnjHw6jATvpwKsz0QIlDmmzsOJsqx4Q5lWfgCL7KkYwgHerBqz7OP7rSu/46ZE6clB kVrfFDo1Y6Tf2bf7RU8lwnNj2qUWmX82mdAvDxiTqDOcVttVUWQO6QAqkLJFvagtPDLI Olpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ru+/i/5b"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id u12si1007801jak.73.2021.05.12.13.53.00; Wed, 12 May 2021 13:53:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ru+/i/5b"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1387979AbhELUlZ (ORCPT + 99 others); Wed, 12 May 2021 16:41:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1386928AbhELUWw (ORCPT ); Wed, 12 May 2021 16:22:52 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24B7BC06175F; Wed, 12 May 2021 13:21:42 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id r11so4532479edt.13; Wed, 12 May 2021 13:21:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=N4ZAlOgDW9ujpwjPHQr8aGCrSs+JV5Nyhyk5LQI3HKI=; b=ru+/i/5bgX9E14YIfBAn6to/vAz91/xUZWO0XKEFx/X+sBzOOoeqikp5lakJoAKrPv nDl6zja3All4C2a1JP400GptP9ZmpUqL7LrFqoHV//LUWWpyU6IAuLDpfFEFz9VWjUl1 MxUyjalMppKimCcBOzUkGlorMXqV4XouSk3jr/7+VzFjrS/pYDDvQr//VS94WUCDCn+O tanYrliRgd9U0N8wB9uKX9wwE9EHh8UxzFbWI13OzalrWQTMSW2iSLAjSpA2GhBUs4Kp 0EzQ+sGomgtyaxA1e4QLc2sY1pXAemkkKSygNRsWk4YY8/r+05oeQb+M5HJDoWlaCsHk aOwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=N4ZAlOgDW9ujpwjPHQr8aGCrSs+JV5Nyhyk5LQI3HKI=; b=C5P2CW8GHaVlAGcdiVPlXZl5dELN8yjY7H5XuQGHXA9QsiWGgUgC/MIgBnh3VVyqMa /gPRQtyMdrjlN5oVhI3CVhQbNxFRJqgc4nSBExwTKat/98fyvUFswAI7Bg3Qv7NGS5hb yn9OlYu3XleghCtippKzXTHmHBvnXj+6O2ZvYGTODry/n1G/szwF+GVIk5baw2+o6js7 ct4tMxDgTF4o7pbZpy7V6pPFiu+k8PirZ6uB/9NlM2wrRURKehPf4lH4sHyr77WwmcUl kLlEe05y8SG88NP7DlteAJG+shwE8DFKyfcPLhd8/gNB04h7jcTvqvbDycju4v2L1rs8 nc9w== X-Gm-Message-State: AOAM531TywbA8NM2uT4RWv49sYLCTIR8avtwzJ1I9UP7NhBPnnQ4B5UP y0inGaeqLn1hpF6T/3yd4osi/5zHcPM= X-Received: by 2002:aa7:cb10:: with SMTP id s16mr45722585edt.313.1620850900900; Wed, 12 May 2021 13:21:40 -0700 (PDT) Received: from ubuntu-laptop (ip5f5bec5d.dynamic.kabel-deutschland.de. [95.91.236.93]) by smtp.googlemail.com with ESMTPSA id z9sm659159edb.51.2021.05.12.13.21.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 13:21:40 -0700 (PDT) Message-ID: Subject: Re: [PATCH v5 1/2] scsi: ufs: Introduce hba performance monitor sysfs nodes From: Bean Huo To: Can Guo , asutoshd@codeaurora.org, nguyenb@codeaurora.org, hongwus@codeaurora.org, linux-scsi@vger.kernel.org, kernel-team@android.com Cc: Alim Akhtar , Avri Altman , "James E.J. Bottomley" , "Martin K. Petersen" , Stanley Chu , Bean Huo , Adrian Hunter , Jaegeuk Kim , Kiwoong Kim , Satya Tangirala , open list Date: Wed, 12 May 2021 22:21:38 +0200 In-Reply-To: <1619058521-35307-2-git-send-email-cang@codeaurora.org> References: <1619058521-35307-1-git-send-email-cang@codeaurora.org> <1619058521-35307-2-git-send-email-cang@codeaurora.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.4-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2021-04-21 at 19:28 -0700, Can Guo wrote: > + > > +static DEVICE_ATTR_RW(monitor_enable); > > +static DEVICE_ATTR_RW(monitor_chunk_size); > > +static DEVICE_ATTR_RO(read_total_sectors); > > +static DEVICE_ATTR_RO(read_total_busy); > > +static DEVICE_ATTR_RO(read_nr_requests); > > +static DEVICE_ATTR_RO(read_req_latency_avg); > > +static DEVICE_ATTR_RO(read_req_latency_max); > > +static DEVICE_ATTR_RO(read_req_latency_min); > > +static DEVICE_ATTR_RO(read_req_latency_sum); > > +static DEVICE_ATTR_RO(write_total_sectors); > > +static DEVICE_ATTR_RO(write_total_busy); > > +static DEVICE_ATTR_RO(write_nr_requests); > > +static DEVICE_ATTR_RO(write_req_latency_avg); > > +static DEVICE_ATTR_RO(write_req_latency_max); > > +static DEVICE_ATTR_RO(write_req_latency_min); > > +static DEVICE_ATTR_RO(write_req_latency_sum); Can, I like this series of patches, which can help me monitor UFS performance online. I have a suggestion, how do you think that we add this to ufs-debugfs. Then we don't need to poll each parameter one by one, just one interface. Bean