Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7635128ybi; Thu, 1 Aug 2019 11:11:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqwICAys+nH7G2bofOZuI1EPr4n+t7qLTz54ztMNUKyOHOReRe8pkpn6GIyWukYVI6/Icimc X-Received: by 2002:a63:904:: with SMTP id 4mr47020274pgj.19.1564683098758; Thu, 01 Aug 2019 11:11:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564683098; cv=none; d=google.com; s=arc-20160816; b=XCCEFh5c+vxeyajVd97fwOK+bGmYPMk5SPU1yQp2/P7HratwNw+QttH6OiE+qxlYJ2 1o3u7UI/SdBTq7tnNVVCs93OjLxgaMNm8Qy2Wh9l5j97nEbeqt5iR5BgxE6AoXHpxDB1 78NZPt41ub75rpxrWoSJgvh8gfu9un/2qMUy+BNUzcht6wjiNW44I9xNf4F5aVucRrej p9uYCZ3pSXvCtPa4juezEQsggN1Z1b587ttTN3DN2bmAHSLfyfw9Z9gH1bpa2/H3yWIQ h2LPik1tDbHABKFBnLV3l0TZhewMOijR80kbMiHydnr/9YBXyrx9Uqe9xpP57p69A27v AyEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=dvRoX0NEsQk9uexjhPZ3WYNGs4rNhG1WU3C5nGaJfJM=; b=gaPKanxvvJ15u8IK67kGShkWJXuZYilmrpfkWwp6nfCyaTUR0UFjgmZatWy8BxPEI3 DIGx4IpUM7CdbcncXBSs69F4HjUfAr/FSw9nY43dma2wGU0pQhi+aZ1b0Fq2xKmCNANH eFKDDz9vUMnU9yO2Jloxn+exapjE/8WfoS+1sprYmQyRxJiCc5eZ1q8HEIP0YAaa0l/3 FhHLv+jZlnvks3Wv47V7YTMwitqCiJEY0bAEKPQsH6d3A59pxy38geY8dad3/RJSZBWQ EU2gDyVN1cYToXOaOFELQ+Gzu8w8618tUNU8NkPrX5Tf8aWM6pqpnHK7euonAc7HdVKr 87Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=OA94mFnK; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g11si63084191plm.390.2019.08.01.11.11.22; Thu, 01 Aug 2019 11:11:38 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=OA94mFnK; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732044AbfHAQee (ORCPT + 99 others); Thu, 1 Aug 2019 12:34:34 -0400 Received: from mail-vs1-f65.google.com ([209.85.217.65]:41787 "EHLO mail-vs1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727024AbfHAQee (ORCPT ); Thu, 1 Aug 2019 12:34:34 -0400 Received: by mail-vs1-f65.google.com with SMTP id 2so49264497vso.8 for ; Thu, 01 Aug 2019 09:34:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dvRoX0NEsQk9uexjhPZ3WYNGs4rNhG1WU3C5nGaJfJM=; b=OA94mFnKu9MN40x5ZP19/Na2xaPAb2ScvmDnDhcfY2prbEDzeCDna+MwcFseo3nnf5 1AUcDpimJVSG1wT8fJosG0BZnnSuvapIZ53206Su4kgn5QQmaxAvbnNbW1l2qDcUSf7S g1CCg6WhlKunjGWiR+ByOfg5e/renIOsnueh69l9UYU9kzwbl+y/0wFgo7RZe9BpcWQf y4NlE7WvT9g6JByabW9SWTk6ge4/LEx9IlMEx8x8h0CEwzdytxY4S23QstL7jNj7dZbT yHei/SyFU3x0wlV9kg/i7T6d1yO8NHrdI7yzGaWIgDYZfPY1l7ma8qkaYpdrU7paRQLU dqHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dvRoX0NEsQk9uexjhPZ3WYNGs4rNhG1WU3C5nGaJfJM=; b=E/9qbnu2bEEE0JpS426zJdVG+OuolrNdS77KWQFGto9psW5qPBHcAgnev1fiF06/J3 Yw4qoVBfpkJedx/0tcv9Yh0kzafxSU84Ws7lfio/R1mb8ca0NuH+S765zKhJIfNF3iiJ rOiPtNV9cztglEncffzb6i73zNNt+OOBfinl7c5VJBvssuOcD33RiCfedvICmg1UJDRn j4P0B6xkeE4olaayqY6RkUKPn2q9KzB8eDGWjq60ILHY8b7jseFByXSh+lkoReGMzU7u dgKtrF4kynMHEk2JUT0IeB67jFa2kDd7zL9fALc3BEju4KA/Zgk84C8Yw+icQ/CCi7Yy 52Ew== X-Gm-Message-State: APjAAAVX0TL8snmWVQuh+BKrcq1YljYAHpp7E20WNo0bSnXZENMRBK7h uD/SWumJa2U2huf4UTgwyvHjkBUaQ76njfeU0TW63w== X-Received: by 2002:a67:a44b:: with SMTP id p11mr78053893vsh.237.1564677272877; Thu, 01 Aug 2019 09:34:32 -0700 (PDT) MIME-Version: 1.0 References: <20190731050549.GA20809@kroah.com> <20190731212933.23673-1-kaleshsingh@google.com> <20190801061941.GB4338@kroah.com> In-Reply-To: <20190801061941.GB4338@kroah.com> From: Kalesh Singh Date: Thu, 1 Aug 2019 09:34:22 -0700 Message-ID: Subject: Re: [PATCH v2] PM/sleep: Expose suspend stats in sysfs To: Greg KH Cc: rjw@rjwysocki.net, Tri Vo , trong@android.com, Sandeep Patil , Hridya Valsaraju , kernel-team@android.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 31, 2019 at 11:19 PM Greg KH wrote: > > On Wed, Jul 31, 2019 at 02:29:33PM -0700, Kalesh Singh wrote: > > Userspace can get suspend stats from the suspend stats debugfs node. > > Since debugfs doesn't have stable ABI, expose suspend stats in > > sysfs under /sys/power/suspend_stats. > > > > Signed-off-by: Kalesh Singh > > --- > > Changes in v2: > > - Added separate show functions for last_failed_* stats, as per Greg > > - Updated ABI Documentation > > This is nice, I didn't even know some of these were in the debugfs > entries, so this should be more helpful to people. > > Reviewed-by: Greg Kroah-Hartman Thanks for the review Greg :)