Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp666616pxj; Thu, 10 Jun 2021 09:45:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdgWcKEqpKfZIt77YEwy0Ftl4gBLJUNxpOBxAe9EhepPw0CC83r1KeoJGbUifNA9vnAn2t X-Received: by 2002:a17:906:2892:: with SMTP id o18mr492634ejd.124.1623343534108; Thu, 10 Jun 2021 09:45:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623343534; cv=none; d=google.com; s=arc-20160816; b=R4kW+ifS2DzsS/5UTnRF5SW7nMcbfHh6eiqbCbI+01DcBUyk1TSN2AIPJfndAoVNAG uChlc1nyytKRP5QcIvtWniSj2bj8Im0xoMh/bCVj6TP0exY4CqHZB5zbcOuEf+ugEKG8 c4T9x1vbWPyk+0gmRwkbhvpfpg+BV8H1+Jy0rDlq2dPmc/i6x0C4UjvrYeipIzh2iGD1 a1UbNGzZtJui86PLZ2Ve3shiwH4F+IWz7U2DteWUmOqqwCYJd0gpCXNtVxsMFPex3bV4 bp7wzQcU5dqPAGmy7xBdT5Akroqsc9pogsRDe9VQzWkPoRYcGjIV9FEIPLLZofeUM37A Oz0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=LM7JY1o/e+QuFTf25HoEZRpKNYd84A9m1sgvzFij9OA=; b=gRLoT0A0UMRc8TfxZkhiX4AG7DT5vvGOxq3wO3mgqb48iCTSKFSeiABBQJIKoQAQuN nC2ytwBO1ayWUO6nIkcyHOVzR9ijRNn6i8FDJpKYki7sVr1ubbYRlS5uJwjc6+LfMNpQ cgarSYYt7SxRIG+DBdk4YLBoII9q5Lq3EFEeOpxt4VCD+N7HFv1pL+XfEpbc8RDaef6y +nhG0unAghxgcWm3SJJsA1QP//o+Ll3hlqvqppYIVkudUtan2KXkZ3lOPWM44bRdenB6 69ZNNaWJEXnnl1N8QNAJWXf2d0xvt0Rdgsb+YzlV3787xw3aod+bDSgt6TWgrQGlm+Yy g78A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JSaFfwPT; 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 v1si3224073ejd.643.2021.06.10.09.45.10; Thu, 10 Jun 2021 09:45:34 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JSaFfwPT; 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 S231342AbhFJQp2 (ORCPT + 99 others); Thu, 10 Jun 2021 12:45:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:50034 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231765AbhFJQpN (ORCPT ); Thu, 10 Jun 2021 12:45:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 907A7613DD; Thu, 10 Jun 2021 16:43:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623343396; bh=1TI3P5xNylhJ3HbRoJRSII56aRhipspy+WKJIxECdwc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JSaFfwPTJOSrCY1T42ZcEQtzQ6qNaCkky1S+zXNqqxnK0RAyW1Up5B/FhQ2pLzUr1 AIxSnRdq18+P6x2e+n20yNLMm9lw3G+RbuV20b7CurfvR9N06XJHi/VcP8WO7c36gO MpnIX9ldga89MKJxRugdXDVHKliLteMoTBtGbVU8ZpooJBzQoemlyB+S7lwdzVKmud YHWtFnrU/OviKMc9qiZeUhBKPdDLhFKqYQuHVCpo5Qo39Iz+lBTvjOGuSUTUcWqF+X GRs0TRGiTq1mOZtwHig6blSWEr1vOvIYU4EApSW91iqhBCpUxidFNfVFNvkDwyF58Q h5OMGdUm986vg== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id A2A4F40B1A; Thu, 10 Jun 2021 13:43:11 -0300 (-03) Date: Thu, 10 Jun 2021 13:43:11 -0300 From: Arnaldo Carvalho de Melo To: Jiri Olsa Cc: Jin Yao , jolsa@kernel.org, peterz@infradead.org, mingo@redhat.com, alexander.shishkin@linux.intel.com, Linux-kernel@vger.kernel.org, ak@linux.intel.com, kan.liang@intel.com, yao.jin@intel.com Subject: Re: [PATCH v2] perf evsel: Adjust hybrid event and global event mixed group Message-ID: References: <20210609044555.27180-1-yao.jin@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, Jun 09, 2021 at 10:15:29PM +0200, Jiri Olsa escreveu: > On Wed, Jun 09, 2021 at 12:45:55PM +0800, Jin Yao wrote: > > A group mixed with hybrid event and global event is allowed. For example, > > group leader is 'intel_pt//' and the group member is 'cpu_atom/cycles/'. > > > > e.g. > > perf record --aux-sample -e '{intel_pt//,cpu_atom/cycles/}:u' > > > > The challenge is their available cpus are not fully matched. For example, > > 'intel_pt//' is available on CPU0-CPU23, but 'cpu_atom/cycles/' is > > available on CPU16-CPU23. > > > > When getting the group id for group member, we must be very careful. > > Because the cpu for 'intel_pt//' is not equal to the cpu for > > 'cpu_atom/cycles/'. Actually the cpu here is the index of evsel->core.cpus, > > not the real CPU ID. > > Signed-off-by: Jin Yao > looks good to me > Acked-by: Jiri Olsa Thanks, applied. - Arnaldo