Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp669516pxu; Wed, 6 Jan 2021 00:47:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJwqqsnmjkCsTLxL8gFJEVkAL/WbkLZOp6wWjWI1ZcwunwaTr+KMrek5UhhLMtHKBxgx1aEy X-Received: by 2002:a05:6402:1383:: with SMTP id b3mr3210796edv.100.1609922844550; Wed, 06 Jan 2021 00:47:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609922844; cv=none; d=google.com; s=arc-20160816; b=OxL/BKkzstgxjTK5vIEFPwx3zEacLiEH0phDcxMwhVFUau2Yy6DrgmeAr2vVmG24hY m3tJQjLIar70rH1k04VmVYSrbdVrXk8SzVpzR2488rwyz2L8OdgjS7LuUXhcYCFuR9T0 hzml7Y92wSII3qjYLj8wP9blcYszzyb6ovK8wimoLW14fG1HCB453kIrTgJ3Ai0OpVZa yqW9veVmXyUofoWsZHP+ykYYP2P/r4vb0s1fiNnc0ojRkDzgJOsba0+scVtxRj+AtqeP gIYOMifHWyM/eWQASkrU3DpNOL+ZJPexE7jZbW4f6WPYC0Vhr+50x+t6+bMP6+k3JWl2 MEyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=DzmZroybDYaR2TEgT7o7uY7RVN2KQlmldEoUSdIFWj0=; b=dJGgNIEfxUKQbjiKqXWplFAeb3RsZRpE4cTI7g12+7VF+9CXDI2ICWd9rRVcBZuphf wGU5y3AFbuuuetziTS1CNiXpPIRReks58mxxalHKMEtKnzSQUFcr2z05yZScvvhgJj03 LOyMA8dp2ZNohwNKkVDW3qaGr05eReeaNR8qysN4yEzMDBeWcHOQrhlmJmzAktajygt7 rmLEWBFL3LhQMEFZzslwsaYJtbUJfWSezGwwCPkmOQNn3si7CjCgBHqm05+PrP2gqFbd B59kfIn8lDzEvjZDRYozjW721GGrofR6SQkiscU46TIyHgEOC5cPwAmSE4CC5yUZ8NJw 2uMQ== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id du15si744076ejc.471.2021.01.06.00.47.01; Wed, 06 Jan 2021 00:47:24 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726535AbhAFIpO (ORCPT + 99 others); Wed, 6 Jan 2021 03:45:14 -0500 Received: from mail-lf1-f44.google.com ([209.85.167.44]:34614 "EHLO mail-lf1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726063AbhAFIpO (ORCPT ); Wed, 6 Jan 2021 03:45:14 -0500 Received: by mail-lf1-f44.google.com with SMTP id o19so4940992lfo.1 for ; Wed, 06 Jan 2021 00:44:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DzmZroybDYaR2TEgT7o7uY7RVN2KQlmldEoUSdIFWj0=; b=XXi01Y851aHvnZ5a9aQEeXeqFCyEJy+8Sddwy7JJ+RLRxLeg+6+HwSfl0W1UZOt06b LyGSR2S4Q/PhJJhMpIwI0RQFBkRN/GqC1+4XwLL3zsvfyJf/jTHs4aREr39kULJ288yk R+UISi7f3oWvLeKr+Cj2t1Hl+0Lm/nz3bHpJnivNFixXZLfkUW7mvlboAmPLVEXACtlQ EZmpa2WsMNspv/Sm69ZesdzGhSG7yEj2QTUOlnQ8PVTpVDCU8JZNx/sS3QS0NTn+JuA+ NZ3pEumy3xtiu0W/kF9wT1lcfHqPOSobieUfjDUKxTGlCWtwqyMjnz/HtOR45VPqXXuQ kihQ== X-Gm-Message-State: AOAM532YjO7dkD4HrPcMP9bhGEfYTsLKbNl1S0ul9Oc0OZPSOo/30gKx 0N4ijTp1xHYkLpk0w8GNhOVYXjk1jc0l519mhzM= X-Received: by 2002:a2e:96da:: with SMTP id d26mr1524157ljj.233.1609922672442; Wed, 06 Jan 2021 00:44:32 -0800 (PST) MIME-Version: 1.0 References: <20201223130320.3930-1-alexander.antonov@linux.intel.com> <20201223130320.3930-3-alexander.antonov@linux.intel.com> In-Reply-To: <20201223130320.3930-3-alexander.antonov@linux.intel.com> From: Namhyung Kim Date: Wed, 6 Jan 2021 17:44:21 +0900 Message-ID: Subject: Re: [PATCH v2 2/6] perf evsel: Introduce an observed performance device To: Alexander Antonov Cc: Arnaldo Carvalho de Melo , linux-kernel , Jiri Olsa , Andi Kleen , Alexander Shishkin , Mark Rutland , Ian Rogers , Ingo Molnar , Peter Zijlstra Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > }; > > struct perf_missing_features { > -- > 2.19.1 >