Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp2370351ybg; Fri, 5 Jun 2020 12:07:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+ZO/2LQjQEUKS7QU7v2Ialp/0kV570uIRHz2c/7NLE275qJjvKCWbbnUvZ2X8ZfdZijoc X-Received: by 2002:a50:d55c:: with SMTP id f28mr10351777edj.87.1591384073445; Fri, 05 Jun 2020 12:07:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591384073; cv=none; d=google.com; s=arc-20160816; b=QBGRA3Qgzqo93ScgsPesTBPQx70+1J5nDYcOAuHFEAFoGZUNQkE6RW2hG0AWsPCr9c uIoxnPKwf7+DeGVqaGpTQGIwNio6h6kYFY81wRAZ9rOHh4ruWAiTJrCK9HzVdbggjt+c BUs8Y20gGqaYOM0BaQWeCy/4/b3huM10mr0cnBalP1iEx0W3cECoOIxI7m9DnSIakmye dYlPIlp5JJ58aH1kgifiIfV3KogUgP3QIaERLJaw7djLbXY/aZ1ifgIJuE8lXdqLflqg NFN+YN3vWF95pdQ9P9QBZ9R4WJ9VRyo8zvYZWhzSguFIgbeIxT1aG8RMiXiYwGBJw4wm TFnQ== 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=A6hoBDJksgxdN3XGn81JTqBMs6CG+m+ukektAm8PnwY=; b=mhkez7e0qILbkwSH2Coj/zGMlLPTlEOyRB0YJVT0pjoOnz70hyJyfcOSwmUA2FYMOI 76oq0OKbF93/OcRRWqjDagVvtFm6/qQ6jCV7Z0F3dsJBUj9OPGacHIFuPErz5khm4f1I /INjYWojCbASeX9692m9VfFhwfYb2MCDClitWgo+YxRXIETgL+esW6kgrQY5FBEhQ7km BUOY4cgZePwZ2jkUyLXf8Qu4Y9E5DCyDPSozGWO7Kxa2p/VMgjQClHUaDeIMl1MqgxHP bnaIR76rErSd8+DdkSOo3u7s7fUiiwZ7aqluD7o5mfXab3xi2hpTeGy+VSTJu66FkcFL A34Q== 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 v1si3860304edx.37.2020.06.05.12.07.18; Fri, 05 Jun 2020 12:07:53 -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 S1727081AbgFETEa (ORCPT + 99 others); Fri, 5 Jun 2020 15:04:30 -0400 Received: from mga07.intel.com ([134.134.136.100]:24698 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726958AbgFETEa (ORCPT ); Fri, 5 Jun 2020 15:04:30 -0400 IronPort-SDR: 5gXGJKfbZ9le2ln8qvFYnEGCrMn1CsJl0kZDZjdGyDXNtl94WicWhxp3jWFL+Db5wnnGSMIhD1 PtLWzIpJRdeg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2020 12:04:29 -0700 IronPort-SDR: hIs2PARmVA7t5j4Ut9QpsLkNVPribi9l3YwrsX8M1nZZsPkzIoFjVTkfTjrMTaAEf/4jSxrE1K 35V3+JdKGwEg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,477,1583222400"; d="scan'208";a="273561287" Received: from chenyu-office.sh.intel.com ([10.239.158.173]) by orsmga006.jf.intel.com with ESMTP; 05 Jun 2020 12:04:26 -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] Add more trace point for runtime usage count Date: Sat, 6 Jun 2020 03:05:09 +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 Currentlt some code flow of runtime usage count changes is not covered by the tracepoints. Add corresponding tracepoints to monitor all the usage_count changes. Chen Yu (2): PM-runtime: Move all runtime usage related function to runtime.c PM-runtime: add more tracepoints for usage_count changes drivers/base/power/runtime.c | 49 +++++++++++++++++++++++++----------- include/linux/pm_runtime.h | 14 +++-------- 2 files changed, 39 insertions(+), 24 deletions(-) -- 2.20.1