Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3931808rwi; Sat, 22 Oct 2022 02:26:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4XyMeThsyc4Sv2qXDZbMQ5wTcD68gjilywUHiEaww2CjTGM6W93UyOajkWZGbxfdqTKk3S X-Received: by 2002:a17:90b:1b08:b0:20d:7bbf:4701 with SMTP id nu8-20020a17090b1b0800b0020d7bbf4701mr63079966pjb.87.1666430767944; Sat, 22 Oct 2022 02:26:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666430767; cv=none; d=google.com; s=arc-20160816; b=xQrmqybxCYz2jsUpIVf08fQO0GsT3mf5lYPMdAbVZXqdd6NJi9Wng57c/8qWniUfOX d7mT3LUW1EhGE6+72+0FmxDf3DJ+OnijC0Zpb16XALZqQBCDEK8rkzSoMWwpE24ae+ib AGG6yXtOeizTzeMIM3lJXnSffLVpDCE/ZwEiRoP5Qkv/J9i2P0gFS2LYHcR3rr35deag SIGKR/cFKe+DIlpuv5tlmYwVfz1896riDlIgq5oBRrf2W57U06JgE2sptsYagvsK2mFB NWray2UAUupb35Q9LXEid84smWVXvvcYUwq6RLmMAoInOlIaQYWce1V5PQ33LHQ7Y8cR fqQg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=g4PC4xOrQIxZ0ydw36JaxPy1FgjMMgTstwR54iH0OOQ=; b=TO41hM9xB4PYZ3iV0QLXGFmxrCnI9Q1QlzBwnLg0+Gitc8byaRMgLz98qWUjx+KZ+J HUms0wtLfHeyshN+8dF8BgAMBEv0/SeK5DPRC0fZMsXZUGhmyF1O2t2EAwvkzdUcIAPA NDoAZ3OVLHA9tXRr8+uO0prvo/NnXeSOPv+aeYaHY7t4NvL6KUa+LslMhQrwMrgNUoe/ yoQAyaT3yngD4GreB99BuMhIaR8sIIZaOxQvsYU5xH+FRtWIzKOvuvaRj9t3HR08NtbI dUcAhTndBgmp1VHJnmgKHVrr6dBEsqBW1tVXDEPvFuIoK4n8yNEzWGIgQ86k6xc3AnoK FGYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uDLegif6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h10-20020a170902748a00b001865c55049dsi9771322pll.570.2022.10.22.02.25.56; Sat, 22 Oct 2022 02:26:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uDLegif6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234856AbiJVIq3 (ORCPT + 99 others); Sat, 22 Oct 2022 04:46:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234978AbiJVIoL (ORCPT ); Sat, 22 Oct 2022 04:44:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 475612C6E9E; Sat, 22 Oct 2022 01:07:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 58F8460BAA; Sat, 22 Oct 2022 08:07:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65443C433C1; Sat, 22 Oct 2022 08:07:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666426035; bh=6HicgzDugBOerZVbAxSgXH2xBFYBrHxtY5zu4BuDnVg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uDLegif66pSGgV2jHhObzgJK3qKtEitiHmKkb93hYOStGi9AYG8MrNdACG8MOREYw 1aZby/F13hgLAYcg9bFsxesHwaxayrwEMyPykrOhLUR8Fc+vZ842ef4seIim772nLH qRVZViJgx7LAkA7zGM4+PAL0I92H1hmDrPvEen8g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Adrian Hunter , Namhyung Kim , Ian Rogers , Jiri Olsa , Arnaldo Carvalho de Melo Subject: [PATCH 5.19 698/717] perf intel-pt: Fix system_wide dummy event for hybrid Date: Sat, 22 Oct 2022 09:29:37 +0200 Message-Id: <20221022072529.333384768@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221022072415.034382448@linuxfoundation.org> References: <20221022072415.034382448@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Adrian Hunter commit 6cef7dab3e2e5cb23a13569c3880c0532326748c upstream. User space tasks can migrate between CPUs, so when tracing selected CPUs, system-wide sideband is still needed, however evlist->core.has_user_cpus is not set in the hybrid case, so check the target cpu_list instead. Fixes: 7d189cadbeebc778 ("perf intel-pt: Track sideband system-wide when needed") Signed-off-by: Adrian Hunter Acked-by: Namhyung Kim Cc: Adrian Hunter Cc: Ian Rogers Cc: Jiri Olsa Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20221012082259.22394-3-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Greg Kroah-Hartman --- tools/perf/arch/x86/util/intel-pt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/perf/arch/x86/util/intel-pt.c +++ b/tools/perf/arch/x86/util/intel-pt.c @@ -871,7 +871,7 @@ static int intel_pt_recording_options(st * User space tasks can migrate between CPUs, so when tracing * selected CPUs, sideband for all CPUs is still needed. */ - need_system_wide_tracking = evlist->core.has_user_cpus && + need_system_wide_tracking = opts->target.cpu_list && !intel_pt_evsel->core.attr.exclude_user; tracking_evsel = evlist__add_aux_dummy(evlist, need_system_wide_tracking);