Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp196192ybi; Mon, 15 Jul 2019 19:14:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqy8rn6QMMOzsAP+Kr0WjMlJ71lMuQbcZR/vwjEeWjByXsTuW2WhWzc7bO7q/15YfYEn9fmL X-Received: by 2002:a65:6288:: with SMTP id f8mr25966802pgv.292.1563243266412; Mon, 15 Jul 2019 19:14:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563243266; cv=none; d=google.com; s=arc-20160816; b=WTSFWMZXG1ayW2lxlBfX0TbXRMDLHFy9qaq8JJ2vi85kyXxzvjvoO6t9EDfcPOc098 4M1RfEOxaJcwihIBRE0y2e7SL9qmnUg1Oem+352k6nLIrYWjbEs2ORTt6USrJKVElaSk XQhkOBnq/Ev5kQ8qbKDy9yfx4xYjxXUD/01Kyr1VWXhoj4dRMadrGZCmo+cyBItuZu1t e0Maz5v5zbeBcu3O4vcBjPqCYYRVbpIqLNU6rER7IZHKECHBQr/JhU24aWp25DuirBC8 BKBFd9ujWSoJfxhR40GxElZiG/V3aMej0f45lZkeoIkokv8Ve3fwcSY+Nwm6KjuZGvyR u1+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4OuugEJxwwMKsGJdpbXzKILCJBj2k7ylLmuqlimQJwI=; b=dIkXy6g/7RPWUAmyRsB6IwxBkzb6aRzuP9Q6JGXiNsHaH0jthvb1M3WdZJzwRPMGTX rhkDEWnRHVzZLCm5JTmi0Tlto+7XG69pfdZJhhYAQRjQfTAs1dLuAnv5u0pbE3W3D3OP hbNuziGwlf0UHcoTCMCrLlcsBvQHmVLuUcONJdoYGVwC1sUbSE1i/lVuClx+/5iuonsd 8gHheE1gzM5pXHyw/KPIDarvNjIEP/u6UKnpq39cMudYMfiAus1pk2jY4BPvx6KKMSik x6+J2QY6yD99PzKk1e37Mw/ZE2kGw7rER1Z2NV+BhYYqpXvaoRkx9HGJ5M8tHZ3ZLlG0 fb+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DZ8fUBFw; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a17si18475097pfa.45.2019.07.15.19.14.10; Mon, 15 Jul 2019 19:14:26 -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=@kernel.org header.s=default header.b=DZ8fUBFw; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733253AbfGPCNs (ORCPT + 99 others); Mon, 15 Jul 2019 22:13:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:44904 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733236AbfGPCNr (ORCPT ); Mon, 15 Jul 2019 22:13:47 -0400 Received: from localhost (unknown [88.128.80.36]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2689120880; Tue, 16 Jul 2019 02:13:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563243227; bh=/wHJ0nCPXO0BilnRARhdb/iE/cpLJmGu45X/cl8c/O8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DZ8fUBFwHQmGnYcYxJHWoYssyCF88SMmYhSjv0LjpjnW7U5WRTe5FmP+wgnqkSUMj jyMlCH9HScwnW0XtdhbHXoRqNv0gWNLD3mD6qGDUrn81qbenTPZWwA29tV5QBqR7wj +ZtwX/18Szq4fduukhl5QsmjQjCRO7N78CMHgJpg= Date: Tue, 16 Jul 2019 04:11:02 +0200 From: Greg Kroah-Hartman To: "Rafael J. Wysocki" Cc: Tri Vo , "Rafael J. Wysocki" , Viresh Kumar , Hridya Valsaraju , sspatil@google.com, kaleshsingh@google.com, Linux Kernel Mailing List , Linux PM , "Cc: Android Kernel" Subject: Re: [PATCH v4] PM / wakeup: show wakeup sources stats in sysfs Message-ID: <20190716021102.GA8310@kroah.com> References: <20190715203651.GA7513@kroah.com> <20190715214348.81865-1-trong@android.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 15, 2019 at 11:48:27PM +0200, Rafael J. Wysocki wrote: > On Mon, Jul 15, 2019 at 11:44 PM Tri Vo wrote: > > > > Userspace can use wakeup_sources debugfs node to plot history of suspend > > blocking wakeup sources over device's boot cycle. This information can > > then be used (1) for power-specific bug reporting and (2) towards > > attributing battery consumption to specific processes over a period of > > time. > > > > However, debugfs doesn't have stable ABI. For this reason, create a > > 'struct device' to expose wakeup sources statistics in sysfs under > > /sys/class/wakeup//. > > > > Introduce CONFIG_PM_SLEEP_STATS that enables/disables showing wakeup > > source statistics in sysfs. > > I'm not sure if this is really needed, but I'll let Greg decide. You are right. Having zillions of config options is a pain, who is going to turn this off? But we can always remove the option before 5.4-rc1, so I'll take this as-is for now :) > Apart from this > > Reviewed-by: Rafael J. Wysocki thanks for the review! I'll wait for 5.3-rc1 to come out before adding this to my tree. greg k-h