Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp215511ybh; Tue, 14 Jul 2020 23:29:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMwqNlftPxl3zqXtgWutnAQwOYvi3ma2/4PextOg1kcHLlZbcKt6biCZhhvGnSdg+EuAuM X-Received: by 2002:a17:906:8417:: with SMTP id n23mr7676541ejx.192.1594794544989; Tue, 14 Jul 2020 23:29:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594794544; cv=none; d=google.com; s=arc-20160816; b=sm8PuPtA8+eI9NGkX99WoTD4v/yDKHaum5VrM+1P6I1GXYH8sF5dBWYB/XltjPjEfK piPds7V72Fa4tDzHKYVYKJBTsQRU9yOwJ1wbVVgvtlSMO4c1hC0N1ljalaxjTiXJpdN+ nUIbW9PUBlR8anewfRKAs6Q0517gXBbcPF+nfDY3NtRcFzYMrMK9Lu2rEM/Rm1RDVJqg S/ouQL3by7t3XWPjtjkmqo9rSV0ZXcsCZg0d2ottkRw2BvC+JJZjAbDYXnvychPPHOcI /2Ozyvsoll5fOea3ldmdeEVf2rvh42gect1ZfoBPo6XwG8Rt828Ho2cUB4In6ocjuzld QKgg== 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 :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=XA+7j5HwzGawdoPTv/kRkI7ki+J9mT6iqWh3SFKwv7k=; b=QoQ7tdg3rBeQG4vvp7xRpJRVvS5CxpnWZ3KdTKz+QcHhLOfJZV1SWx1BvOG09qBxUC 8Z4GhCpwitQhDwk5hmcfQ1A35srEJb9i6BV5jm6NQj1IUp7mFOHdTzAq7CLBS51Ltveq 0A5SyOaPznZ0QSSQa5DNGKXpA/U3Pg/mf8D9nfMoWzI7bEGsD0yOBAw1PkcpKqocNUvH JG8r3VAcVAw7iaAO0y+m8hpagUg/k0OM7tHQL6huzhrtRc7idx0CMmUJlOTA9F6WjZLJ Ypr2PnUQW+7nrFbLS06QesOQBsLGCnEvKVXMNjZus9n3giqIYxMc1WtR//pSGpjqZYsF jh0w== 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 q19si756183eji.315.2020.07.14.23.28.42; Tue, 14 Jul 2020 23:29:04 -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 S1726437AbgGOG02 (ORCPT + 99 others); Wed, 15 Jul 2020 02:26:28 -0400 Received: from mga17.intel.com ([192.55.52.151]:63476 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725823AbgGOG00 (ORCPT ); Wed, 15 Jul 2020 02:26:26 -0400 IronPort-SDR: EIk66CuYAmNXFYycqxpyN7WddBRdTmh1FnMd5GiZQ7/2MeBvbZPSUqtHesbLkF6zgE3hmgHa+P klUXRM56du5A== X-IronPort-AV: E=McAfee;i="6000,8403,9682"; a="129180712" X-IronPort-AV: E=Sophos;i="5.75,354,1589266800"; d="scan'208";a="129180712" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jul 2020 23:26:26 -0700 IronPort-SDR: qyzu3FoXm2tWkSwHG44a1k2Dibq2ur1AEhKJ2qK5pwbqGYObv0eKKmB+cCWpy2dkClBDTDc34V DBnAWqrbBvCg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,354,1589266800"; d="scan'208";a="485615838" Received: from chenyu-office.sh.intel.com ([10.239.158.173]) by fmsmga006.fm.intel.com with ESMTP; 14 Jul 2020 23:26:24 -0700 From: Chen Yu To: "Rafael J. Wysocki" , Len Brown Cc: Greg Kroah-Hartman , "Michal Miroslaw" , Zhang Rui , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Chen Yu Subject: [PATCH 0/2][RESEND v3] Extend trace point to cover all runtime usage count Date: Wed, 15 Jul 2020 14:27:27 +0800 Message-Id: X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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