From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F0EBC3A589 for ; Tue, 20 Aug 2019 19:28:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DE2C922DD6 for ; Tue, 20 Aug 2019 19:28:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566329297; bh=8hxSSt4ABaCovEYDd6K+BZw0tuWiuJTzE9Vsc0Y+4t4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=gBzp3LuujFeMPJu0Qd8/RDr/R9vcpM6LKsokf0dFdV1wYcwWksekYa67eMqWxk2pw 2bpYJsXu+k37vqR5P9yzQc3Q2kuTx2VZVo68rvAulSQY6YGJW0YBtAtSRoRdNcioFj EaD2wonebP2dXEPUODXdMcUmTZOKMPjOKo7PTWPQ= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730833AbfHTT2R (ORCPT ); Tue, 20 Aug 2019 15:28:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:40980 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730819AbfHTT2P (ORCPT ); Tue, 20 Aug 2019 15:28:15 -0400 Received: from quaco.ghostprotocols.net (177.206.236.100.dynamic.adsl.gvt.net.br [177.206.236.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DA277230F2; Tue, 20 Aug 2019 19:28:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566329295; bh=8hxSSt4ABaCovEYDd6K+BZw0tuWiuJTzE9Vsc0Y+4t4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WXQgTQgWkxIq9Mc+w/QTXTBeVLqbXU6NGewcg66bUvXo8iCeHZXXeuVUDabe8+EU7 uXnSpwOHVg4d09x9Mgim4i/5uQ0oJFalY3SkBRyGOUyv1MQV3NV6HODuzevgzm0U3F BdYt6Di1nh3XFX/FwZDbFGd79jUr2M+Q7MY+1Vrw= From: Arnaldo Carvalho de Melo To: Ingo Molnar , Thomas Gleixner Cc: Jiri Olsa , Namhyung Kim , Clark Williams , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Adrian Hunter , Alexander Shishkin , Jiri Olsa , Michael Petlan , Peter Zijlstra , Arnaldo Carvalho de Melo Subject: [PATCH 06/17] perf evsel: Add comment for 'idx' member in 'struct perf_sample_id Date: Tue, 20 Aug 2019 16:27:22 -0300 Message-Id: <20190820192733.19180-7-acme@kernel.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190820192733.19180-1-acme@kernel.org> References: <20190820192733.19180-1-acme@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Adrian Hunter The 'idx' member was added as preparation for AUX area sampling. Add a comment to describe why. Signed-off-by: Adrian Hunter Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/83ff264f-84c3-5372-8976-dd9293d20c6f@intel.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/evsel.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/perf/util/evsel.h b/tools/perf/util/evsel.h index 9cd6e3ae479a..efe08065838f 100644 --- a/tools/perf/util/evsel.h +++ b/tools/perf/util/evsel.h @@ -23,6 +23,13 @@ struct perf_sample_id { struct hlist_node node; u64 id; struct evsel *evsel; + /* + * 'idx' will be used for AUX area sampling. A sample will have AUX area + * data that will be queued for decoding, where there are separate + * queues for each CPU (per-cpu tracing) or task (per-thread tracing). + * The sample ID can be used to lookup 'idx' which is effectively the + * queue number. + */ int idx; int cpu; pid_t tid; -- 2.21.0