Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp4178961ybg; Mon, 8 Jun 2020 00:45:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5f1JFkCke1WSRxOYTGllicxkSHUhyR6HBqWG4Y0GyQN+WFtVhXStrYmcJg3YiLXUmle6w X-Received: by 2002:a05:6402:22a5:: with SMTP id cx5mr21879106edb.246.1591602310472; Mon, 08 Jun 2020 00:45:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591602310; cv=none; d=google.com; s=arc-20160816; b=JgoAXH3Vhg7VISNeNY1v3cfzdo75msmOgl2pqaEZDO9aLZQW2IW1Iq2qZ1H8S4w9d2 RIrMpSe5bsvj7kFjtXRiGhbrDS6P62XnNb11pCx7K1oY9C+iifgPaPBH+na01FK2yFpS POE6AZ9PUBCgoPawCuCZZ69HceJYtBlIzbhhq+ywEUvLDEfKVPbQGW0dKPwnSrm+06EE EEAZngXmZfsFSDniNsLRvLTie1c/+iUmqfab2nnLpC/lImEuGr2UfjaekJ3SjO7qgvkA kux7ISP6LrwmRNTt6m+eBkdonnYR/TsxVBhunZv54IkWrgBym9p9AFAWHLyjydx68S5i N58Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=XA+7j5HwzGawdoPTv/kRkI7ki+J9mT6iqWh3SFKwv7k=; b=lmYlnhO6Tzb4ifVDN1kjPbsMxzaNBtO6SQAIywOmvw4Zdheh4mA5M8HeuY+ShKG+bt Q/tWHHfj0pCSGR2V0VEME8qj27oY1cSTHs5A+gWZJQOEwH3X+bz11+oFsRgP7e1s21DB mCFCDo+QXCpWWLG3ZZlQ5sIc0C3/bnI6+vvwaYeDMH263JZXduvakjFyEAzuUonVxd96 lKS+QQD7DFd1BCyU9+2lBYvBM1HUjPFfZecIARkHdJm8u1A11A81kgweFB3mfoaC2Oxo MCR502/+GnK9ZxsoMNvO2LxCYUiPMP1cv2c0L9zMJV4L9KXbLYoADgrJwINhl9Uw9Kiu BCVQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h2si1661874eji.77.2020.06.08.00.44.47; Mon, 08 Jun 2020 00:45:10 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729023AbgFHHkz (ORCPT + 99 others); Mon, 8 Jun 2020 03:40:55 -0400 Received: from mga07.intel.com ([134.134.136.100]:65193 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726009AbgFHHkz (ORCPT ); Mon, 8 Jun 2020 03:40:55 -0400 IronPort-SDR: vTDbiM1BYHyDPhsb+Ky3Izm9dA8HhWegU645Sj2i6EPWyF0WsAh//eLmdJdp7zWDcZqNgIy4ej dxh96N5OF+hA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2020 00:40:54 -0700 IronPort-SDR: NrnnaUFZQnglYJ7xhrb1fkBHT4kAaILlzQY9NFUOJPDv2JRivbzEAlwQsVjdVKqsQtzoask8c8 qOOrmJ83SLJw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,487,1583222400"; d="scan'208";a="270426496" Received: from chenyu-office.sh.intel.com ([10.239.158.173]) by orsmga003.jf.intel.com with ESMTP; 08 Jun 2020 00:40:50 -0700 From: Chen Yu To: "Rafael J. Wysocki" , Len Brown , Greg Kroah-Hartman , Michal Miroslaw Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Chen Yu Subject: [PATCH 0/2][RFC v2] Change trace point to cover all runtime usage count Date: Mon, 8 Jun 2020 15:41:41 +0800 Message-Id: X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently some code flow of runtime usage count changes is not covered by the rpm_runtime_usage tracepoints. Adjust corresponding tracepoints to monitor all the runtime usage count changes. Chen Yu (2): PM-runtime: Move all runtime usage related function to runtime.c PM-runtime: change the tracepoints to cover all usage_count drivers/base/power/runtime.c | 50 ++++++++++++++++++++++++++---------- include/linux/pm_runtime.h | 12 ++------- 2 files changed, 38 insertions(+), 24 deletions(-) -- 2.17.1