Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp270671pxb; Wed, 13 Jan 2021 03:16:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJwOdHArOyo2/StEkn2qH4UlIYeN+zH5bn54JYNsFx4uYPUMr/IhWGwoPZeyr1l5PdNFKCpR X-Received: by 2002:a05:6402:4251:: with SMTP id g17mr1310739edb.205.1610536603796; Wed, 13 Jan 2021 03:16:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610536603; cv=none; d=google.com; s=arc-20160816; b=KDageFQ7tWgvvmSNbv+y7IFWYWQG07uo2D3SLlxsVLDjwiA5ntYNau29G+Bi9NoXHV UpY3b4ye+2Fuxcm/FDk8gX8gqtUpNRDBSXo3xB6ZoMb3r18lfJQshKh6/PMHhGIyr6UR m3Sa1uBXor4CGdmXvZxygJBz78PGKUvpldMyAOgfOd57HMkCcOe0rTdzD4Eoy80qCrqE RoiTCd0+rubT44tKUh+ex8dAw591afOXVX46pPBvRjfaecksL7TsnEDLAsybicXOqZa1 PQKeXdowsJRtlxNlwM3cchMppQz0PZqjfgeQI7i4bN8XdW/Bqt2v1wqRseLGF3XEIHmO XLaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=vp94e3sDPP3jF8iesKq8pn8L/fq3C0o6G89I1+y77sU=; b=l42elqATLbXXU91gxNUBDTlLKixcWSZiMf9YbcNZtuCadk7uNAQZUHgMp6+rkbZdoa tmKwYqhrzYt6z4QajFKyHyez/OA+4OS8qCNFzmTumjSons3qzdJziohI+ajDadKjRWm4 LqmNJOOqxOEqFrnnjg1Qcoz+t9H+mT6vZ7lTND8JQ1NqhzYMW3MR6Wx7XOEjUhdzurpD /cjqOcJYify+d7MqSks0G5WKMPN+71G0LF9coJBCwLHY0QIx1wmNGkre7lL9lMcqT77h piq6OtZJsMfOTnJZL9Co3aFxdR4rQ0lNWFbLM1/MEpSckWA2ERMhAcVsAKuwlLT4BSNl 74aQ== 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 cf28si790960edb.10.2021.01.13.03.16.20; Wed, 13 Jan 2021 03:16:43 -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 S1727784AbhAMLPb (ORCPT + 99 others); Wed, 13 Jan 2021 06:15:31 -0500 Received: from mga18.intel.com ([134.134.136.126]:42284 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727555AbhAMLPa (ORCPT ); Wed, 13 Jan 2021 06:15:30 -0500 IronPort-SDR: i4yMyrfLqYNeTywb5IobYinT4X/oDmP08dLmYQeiH7A2cuDITJ7PK0TX0sWhgFuzXiH3un3rx+ 9zqsU1dUMx6Q== X-IronPort-AV: E=McAfee;i="6000,8403,9862"; a="165862791" X-IronPort-AV: E=Sophos;i="5.79,344,1602572400"; d="scan'208";a="165862791" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jan 2021 03:13:49 -0800 IronPort-SDR: GmAM/i5R61hb8NxYgDEqZuOpRnjbczA38Z9k1eNZ4tN9qowY61kjGRBYoTSpoqEQjeuBMucovY JELjplp0AUJQ== X-IronPort-AV: E=Sophos;i="5.79,344,1602572400"; d="scan'208";a="381806146" Received: from aantonov-mobl.ccr.corp.intel.com (HELO [10.249.225.249]) ([10.249.225.249]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jan 2021 03:13:46 -0800 Subject: Re: [PATCH v2 2/6] perf evsel: Introduce an observed performance device To: Namhyung Kim Cc: Arnaldo Carvalho de Melo , linux-kernel , Jiri Olsa , Andi Kleen , Alexander Shishkin , Mark Rutland , Ian Rogers , Ingo Molnar , Peter Zijlstra References: <20201223130320.3930-1-alexander.antonov@linux.intel.com> <20201223130320.3930-3-alexander.antonov@linux.intel.com> From: Alexander Antonov Message-ID: <1c42b0c5-2731-ff9c-0b8b-4becf8ecef07@linux.intel.com> Date: Wed, 13 Jan 2021 14:13:44 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/6/2021 11:44 AM, Namhyung Kim wrote: > Hi, > > On Wed, Dec 23, 2020 at 10:03 PM Alexander Antonov > wrote: >> 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; > Maybe we can use the existing 'priv' field. > > Thanks, > Namhyung Hello Namhyung, Looks like the 'priv' field isn't used in this case. I suppose it can be re-used in iiostat mode. Thanks, Alexander > >> }; >> >> struct perf_missing_features { >> -- >> 2.19.1 >>