Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4811442pxu; Thu, 10 Dec 2020 06:09:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJyHdYxeESxRThLhQtwFKHUe51Bl4G7oTrXvE/mV0qHmrl500ZFTc1OnG+FIbY2Zda6TchyJ X-Received: by 2002:a50:e882:: with SMTP id f2mr6793181edn.76.1607609394941; Thu, 10 Dec 2020 06:09:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607609394; cv=none; d=google.com; s=arc-20160816; b=Yt/w9mFzeuWw9s10fZbrF7E/UTphdYkZyLUsGXgz+e0m76eepBrHaqh3TcbMj1C1XJ +mj0hNmoW4j8SUo4B6HR4edbKe/MrEfBTji8Z8WbCXPXBuEjlV5TZmIxxP0KHlDPxJQx cUmiAmEXQi/Md94D/INcIfhwZDeQ/+MCdEbbGvQMJDxIZxQDCKyFtK+nYqNeuL4iJ/gB mhBUo127cwd2+SCS7X8lrrjNrMD2zD7/NlKsU+HAjHv1pk8VPr5SXagyFM6i+82FLIyk PrJy4kq3ABMgUsTtpV8F+NRlgWpuNQNNEePvpMfTtpXT9OtZZKIFtcLqRjaD21muIMdQ 49lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=GOiwPje/jlZ224rX5d4jyVxA2EsR1PmqSNQz+4PLslA=; b=XuETd6QcFrewaeYNUsniVCa2mXRMefzUFkf1CGHUM45iwTV5AZlfJ9meFQI01qUW5v 0KG3cI46a/OlVuYINzoMdQ0H+j5YwO5xNCTIh3BACvNxk8Bco1rizfDkWQzmxbqtklGn l3XAozHchOKodGOUz1Sdg1/uz0tacuMeEpJtyhr2t1dqJEHKmGXtAvkurKoesgmTYaDB TpbbyloDjQeHOg2ouD/odhWGhVbs+qVbOXDq2DcEJtm0cvqWdS3z1Nx2ZJmXTA6NE4z7 TtElTE27E0Q/TfgdgjWr61QlGBhH0eldsq3sT0S+L1t961HxlnMQwxC52TPlPq7tnukn LsCg== 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 o90si2851789eda.435.2020.12.10.06.09.31; Thu, 10 Dec 2020 06:09:54 -0800 (PST) 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 S1729076AbgLJJFj (ORCPT + 99 others); Thu, 10 Dec 2020 04:05:39 -0500 Received: from mga11.intel.com ([192.55.52.93]:6083 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728385AbgLJJFi (ORCPT ); Thu, 10 Dec 2020 04:05:38 -0500 IronPort-SDR: FaYQ5uWQ2V9xnZHulvusSGkwlXHMZrWFaQYHgupz5A0nL1FxjEUVIQwNoDAITL2dCCuAEtGkxI sFaAHOqK5SRA== X-IronPort-AV: E=McAfee;i="6000,8403,9830"; a="170712743" X-IronPort-AV: E=Sophos;i="5.78,408,1599548400"; d="scan'208";a="170712743" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Dec 2020 01:03:53 -0800 IronPort-SDR: jML4+YpAR1SPBUgv8HqqNTN+Ln3W+ck6y03/O6p1p+HAASa0VTT7vbEFOCj0rVnKTPeTqKsRTl mYnoA+Msed5g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,408,1599548400"; d="scan'208";a="408450122" Received: from nntpdsd52-183.inn.intel.com ([10.125.52.183]) by orsmga001.jf.intel.com with ESMTP; 10 Dec 2020 01:03:49 -0800 From: Alexander Antonov To: acme@kernel.org Cc: linux-kernel@vger.kernel.org, jolsa@redhat.com, alexander.shishkin@linux.intel.com, mark.rutland@arm.com, namhyung@kernel.org, mingo@redhat.com, peterz@infradead.org, ak@linux.intel.com, alexander.antonov@linux.intel.com Subject: [PATCH 2/5] perf evsel: Introduce an observed performance device Date: Thu, 10 Dec 2020 12:03:37 +0300 Message-Id: <20201210090340.14358-3-alexander.antonov@linux.intel.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20201210090340.14358-1-alexander.antonov@linux.intel.com> References: <20201210090340.14358-1-alexander.antonov@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adding evsel::perf_device void pointer. For performance monitoring purposes, an evsel can have a related device. These changes allow to attribute, for example, I/O performance metrics to IIO stack. Signed-off-by: Alexander Antonov --- tools/perf/util/evsel.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/util/evsel.h b/tools/perf/util/evsel.h index 79a860d8e3ee..c346920f477a 100644 --- a/tools/perf/util/evsel.h +++ b/tools/perf/util/evsel.h @@ -127,6 +127,7 @@ struct evsel { * See also evsel__has_callchain(). */ __u64 synth_sample_type; + void *perf_device; }; struct perf_missing_features { -- 2.19.1