Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp5042915imd; Tue, 30 Oct 2018 11:04:23 -0700 (PDT) X-Google-Smtp-Source: AJdET5dDF9uyyYJBPbLYlCVdKeQDvNr5tQZOjKgERHLfGq0KN5edc1fkKL61r/3351kNxqZmJnhY X-Received: by 2002:a17:902:bb06:: with SMTP id l6-v6mr1401834pls.58.1540922663001; Tue, 30 Oct 2018 11:04:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540922662; cv=none; d=google.com; s=arc-20160816; b=ls0Imh/VMqCD0vfqLAuqdh/eHDBXwy/i7Mp0asZ9uytGD8XA9EmiQHUS5uUFSoJgaf 4uK2HUhPfSBjW51VVE+teVhp76bIodookaL9WOtRPYAAf/stG3f9seAi2OJ1/FHeUIAC zj/MamHoILsSh3OX6cJy2rPNYkrNcjwvPD+/mBOlnRUMK+fZQOqswwoVlbD5r/7fH5bd fnOwzsiDW/MU6K4pd6XB2iHIjSBHjyFVO4Rw3DftYUz8W+U89k3v1F7/GVVckwbYJjgJ d4f0UpxE5C4065ihcIoGDsgGIJ/BNeJZbJa389Abb3820Rp0vVPuWfvCeO5x8nYvuoy2 Q8jw== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=x4SP7Dp4Dy1Lbk2PdoXCsmr0L/oPQaP2ZUQm3lnycAE=; b=jEyk1WfkdCZe0EWB3Et739zRwGXnqaGTFbFdfx3K15EOx3XpPFXx+Lw6h6L9Mm1a4c Ww/gzGYRrruTniyHCi6mklyYhl731Nz/2+PlnBAmsrbs4jOXL2Uya7mPJYF0VeN5DfSv iA8mUi3zahi+UvelSAI7uF8CJv37glXGr4mhB0GH2MXXtvjBk2QMBzN0TUwt7HOABqZf Rf6l4nl19yDaO5REy8/z8NPDuDtzbjUPBGWffL5B7wx1juaS8a7FZkuNFIUIn3VxiTVS AZjWj6RKqpa81SFpu8LYIpThd3MGJqbQKHO5P+6XuVwvLsbRAoN0WNMCZm4OU2kFd553 jSUg== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w5-v6si24598512pgw.184.2018.10.30.11.03.58; Tue, 30 Oct 2018 11:04:22 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728069AbeJaC5y (ORCPT + 99 others); Tue, 30 Oct 2018 22:57:54 -0400 Received: from mga06.intel.com ([134.134.136.31]:58659 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727958AbeJaC5y (ORCPT ); Tue, 30 Oct 2018 22:57:54 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Oct 2018 11:03:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,445,1534834800"; d="scan'208";a="276950090" Received: from spandruv-desk.jf.intel.com ([10.54.75.31]) by fmsmga006.fm.intel.com with ESMTP; 30 Oct 2018 11:03:24 -0700 Message-ID: <0d940313e1be7ddaa06c5ebf4aea7a4df84540f2.camel@linux.intel.com> Subject: Re: [PATCH v2 1/4] platform/x86: intel_pmc_core: Show Latency Tolerance info From: Srinivas Pandruvada To: Andy Shevchenko , rajneesh.bhardwaj@linux.intel.com Cc: Platform Driver , Darren Hart , Andy Shevchenko , Linux Kernel Mailing List , Rajneesh Bhardwaj Date: Tue, 30 Oct 2018 11:03:24 -0700 In-Reply-To: References: <20181006065113.669-1-rajneesh.bhardwaj@linux.intel.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-1.fc28) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [...] > > > For example, index printing. Please, remove it. I completely > > > forgot > > > about userspace powerful tools. At least two very old and nice > > > can > > > enumerate lines for you. > > > Obviously the index printing is redundant. > > > > Index printing is required here (for LTR Show and LTR Ignore) > > because it > > paves an obvious and easy way for the users of this driver to know > > the > > IP number to be used for LTR ignore. This was specifically > > requested by > > some customer and Srinivas asked me to implement this so adding him > > for > > his inputs. > > So, why it should be in kernel? When user prints this, they usually > call `cat /.../file`, right? > Is it too hard to call `cat -n /.../file` instead? The benefit of > such > approach is that it's independent on the file we are printing. > > (Note, `grep -n /.../file` does the same`) > > For more variants > https://stackoverflow.com/questions/8206370/add-numbers-to-the-beginning-of-every-line-in-a-file > We get copy/paste data from some serial terminals from systems which don't have traditional linux shell or busy box. Not sure if they can do cat "-n" option or have this command at all. So line number helps. They can't even store output as as file as this is RO file system. But I am not as sticky on this. Thanks, Srinivas