Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp5767548pxu; Wed, 23 Dec 2020 05:08:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJzPFTe4y+Eu2CBDVk0CEO0zUlnxHIUEZyek/Gm76HZ+dRdxv9gpGRR4KQ5IUO/qfMzRmHFt X-Received: by 2002:a17:906:3099:: with SMTP id 25mr24100689ejv.321.1608728928855; Wed, 23 Dec 2020 05:08:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608728928; cv=none; d=google.com; s=arc-20160816; b=x131d4d+qzZzI6WN+FJrfh2RkFXWUEQ/vq9aSYwu6DqRhUpTK5+SCTtA9UkNmSTC5x tAA4+FMclcI+W5yDebI3spRpEXOKxIg1Ht9z2DCqpr6FF9atK0fAVugWR42oyLyS4UFH CLa1MeCIRpWHr/NuGoFyazJ5DD13g6nerhI9XLgDxUaMDyJyJ7j8VANwicXX4cAERCuU 7i7sp3HnjyZUgklKIRByCdei4ajQiJPg+UDGee/JPAMxerRXG/AZOhj8t8A336VeE4Zs HQO4YswwAF/5KvYI+QeDzDOGEJyzVg2l6sqYA3AjS97h96/fwS1Cx7xKDDMBMYUT0Flq 730Q== 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=L1PxiRfQdWHMGgEoqoBOQ2ClKM6LkAi5RKZ9ssyHnap1c19GqH7t2+TxOoAOW2C7XX gk0+WWWHzV2oKC6E3nmC4K7ClfuQ6otVaD7LThY2fr4bexrx1qu3vgUsFPb2255guTjQ PlGDbnsiu4eX7uIuBOQYdmZpRU7hsjqBTU8PFgC7mALG2vS0BhLVrfXvQUcNpKl/xx5a NaVdez0JBASqGJpezRQzkyAcUYsYeBHZVvdWy3hZEZdstY23F2RZiBbjjPfGBzQzagc4 vNDvW3sKqGJZVzBQFsymHcueDFqqGuhWps6CaLxQZDdFipJxlj9XlckgjP89TNOPrI42 GYwA== 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 mb3si11724699ejb.126.2020.12.23.05.08.26; Wed, 23 Dec 2020 05:08:48 -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 S1728730AbgLWNHE (ORCPT + 99 others); Wed, 23 Dec 2020 08:07:04 -0500 Received: from mga07.intel.com ([134.134.136.100]:11916 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728727AbgLWNHD (ORCPT ); Wed, 23 Dec 2020 08:07:03 -0500 IronPort-SDR: aA59IiqgktxsjKzJ5hXkdzIHU705dA3KWqyrflgdfBzxgANVajVaRsmItyiqYXIy3wwgriU/To YahuRag2Sglw== X-IronPort-AV: E=McAfee;i="6000,8403,9843"; a="240094464" X-IronPort-AV: E=Sophos;i="5.78,441,1599548400"; d="scan'208";a="240094464" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Dec 2020 05:03:32 -0800 IronPort-SDR: SVzuF1zszKaF7JsvB3LHe9TVLsucyNzFOFGHXp3uCowS238uV/PSow/wpHhq2odnWAmBYJDY+6 codwEWtuNZHQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,441,1599548400"; d="scan'208";a="393087763" Received: from nntpdsd52-183.inn.intel.com ([10.125.52.183]) by fmsmga002.fm.intel.com with ESMTP; 23 Dec 2020 05:03:26 -0800 From: Alexander Antonov To: acme@kernel.org Cc: linux-kernel@vger.kernel.org, jolsa@redhat.com, ak@linux.intel.com, alexander.shishkin@linux.intel.com, mark.rutland@arm.com, namhyung@kernel.org, irogers@google.com, mingo@redhat.com, peterz@infradead.org, alexander.antonov@linux.intel.com Subject: [PATCH v2 2/6] perf evsel: Introduce an observed performance device Date: Wed, 23 Dec 2020 16:03:16 +0300 Message-Id: <20201223130320.3930-3-alexander.antonov@linux.intel.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20201223130320.3930-1-alexander.antonov@linux.intel.com> References: <20201223130320.3930-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