Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp3070466ybh; Mon, 5 Aug 2019 11:30:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqyLg8P7xeGNFqvTMDdQn/w0qrqnXhoreEbBDOmnqGAwGBT60lpPBpT9O2d7nJucfOv8LvU6 X-Received: by 2002:a17:90a:37e9:: with SMTP id v96mr19066425pjb.10.1565029811552; Mon, 05 Aug 2019 11:30:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565029811; cv=none; d=google.com; s=arc-20160816; b=bkjSwZQqBr/RgG32LNFcyuEbur5N5Pf2D3Ex5wqk1zGOLUVGzbfvczdgEhF9M+fd/K h/6cpvic3heL2TVjHVY74O2fSyWu1W90k9lj47RDmSc0Am/jdikoYNKQiD1J7ehTNpqn k+0evL/jbv3NBIp5zQsKF9pLXbaMVwq85CiOOzpwuIZTe56iNzPAFKOsqsxHl98Ku4ND EqX2GSHTxdcGePaqsvj9WFOH0FEeTLaO6U1V7/alURWvJzVuMHoECarW0ys8RDuPYCA/ lUv1Q4NZ5X9paArFBzbgrujoScLAxTxN6qGGxaLwl3nAwrIdwR+bn35JF/oB6msyFnWN 8HKw== 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=0M3AJraLHTVvDG0WIPnqlH8z6GNkMUc/mJzGFD1Yjx8=; b=IJoREWK3uq88J5u5PV4lSq5JE9bYnhCp5iyFpSzh81xMTA/hGBtBmx40mw4P0rG+o7 UYn40fhs1X2iMi7EBGZDMuIeR6YlAJnp9mDygcldy0OBhDDLGuQGBE2HeYbctS3jxTmc LlKHowdfh2ZDJAm//wmin+Bt3QeTn3J2LvSHHnTWCkmZr9SfvmJBp5Z4NfuZSdp+l98r WnFRpmJIUMtDZUFEIaCKvh6VgiA1S02MAvMHmfCqUNmyZynZf7BEOE0c7d2tiUKMJp7c 10fwTg/xX5anx+3Rp9SNzNB+G3vbDJUVKv6ahdHXzDyr2tw1pYnazjVIEscmawaWN0H4 XWxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@android.com header.s=20161025 header.b=anbss06Z; 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=android.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ba9si41072480plb.308.2019.08.05.11.29.55; Mon, 05 Aug 2019 11:30:11 -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=@android.com header.s=20161025 header.b=anbss06Z; 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=android.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730229AbfHES3M (ORCPT + 99 others); Mon, 5 Aug 2019 14:29:12 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:44964 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727802AbfHES3M (ORCPT ); Mon, 5 Aug 2019 14:29:12 -0400 Received: by mail-ot1-f67.google.com with SMTP id b7so36066491otl.11 for ; Mon, 05 Aug 2019 11:29:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=android.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0M3AJraLHTVvDG0WIPnqlH8z6GNkMUc/mJzGFD1Yjx8=; b=anbss06ZbLzmz55bz0D6/naX3nWE2xQSBGE9YYJgEEC+c6ev+givrb1pAJElvCg8M0 FS08Ejk+g3jEp8MPkKm9CynpgHjRLbMO+Tr5S/q3e3ocdUAuV/v54h0WDWsooNlYOxpu iPvCLjtb6zXOlyqxlyH/k2At9FQW2upLQEUTqPuDiX5seAB1udBnrwEEI3cuwq88drTR 1rju25pjaJumOKGKQ5Linq1gXRZd+D2se/IfZ7Vjw1ttvRWyf+7MHUz/NeEfB/WAveFH kfWGtN2vvg70+8U9lMwSzORm2wh0eOCIQqwp4KXu2HK4vYeqOWOLFdBS8VzJ9M2q4b1u c+iQ== 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=0M3AJraLHTVvDG0WIPnqlH8z6GNkMUc/mJzGFD1Yjx8=; b=hXZgfvJTJ+DRnEvUjewabFh77oLUmGYMi+PNJ0weLh/Rtqasr0UzG2Q1RWYQnQR64n zFGcms+WVhD09NnCTjLF+ecN7OVpPxDrzyAJD6llYhFO8xDGomC9Pm1piu2hiiK96VXy Xoc4Hy45hnQE5hnuVFa+nVAdB3JMoJ4NRR0ckTH7pvbVfX47P3L1EsvXsYIT4zE3MuF8 FSXoXNT/C3rVahlreFVq/y9whBep2pzGFGn/vBdzShwI3LbCs/l3WrfR8hRF5g6nN9KC p45LMwex8yR0IAIQqqEIkxkZpRcQog6gVfjg/FyhVCpiU5EtIb99XMELrI6vGkDtJ67u fq9g== X-Gm-Message-State: APjAAAUwR4t2b58C22tVHRnZzs96pCClN6//Z7Kl1Uzn8D9/imiGnpR5 +vABl1K7c/NK/fsQx7eAnY87Q5xA4IYW1oHxd7A= X-Received: by 2002:a9d:5f02:: with SMTP id f2mr29480658oti.148.1565029751713; Mon, 05 Aug 2019 11:29:11 -0700 (PDT) MIME-Version: 1.0 References: <20190731050549.GA20809@kroah.com> <20190731212933.23673-1-kaleshsingh@google.com> <20190801061941.GB4338@kroah.com> In-Reply-To: From: Tri Vo Date: Mon, 5 Aug 2019 11:29:00 -0700 Message-ID: Subject: Re: [PATCH v2] PM/sleep: Expose suspend stats in sysfs To: Kalesh Singh Cc: Greg KH , "Rafael J. Wysocki" , Tri Vo , Sandeep Patil , Hridya Valsaraju , "Cc: Android Kernel" , LKML , Linux PM 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 Thu, Aug 1, 2019 at 9:34 AM Kalesh Singh wrote: > > 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 Reviewed-by: Tri Vo