From patchwork Fri May 26 21:53:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Rogers X-Patchwork-Id: 13257406 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6326FC7EE2F for ; Fri, 26 May 2023 22:41:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:From:Subject:References:Mime-Version :Message-Id:In-Reply-To:Date:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8nMU2AvilOo8uKHq4MXJW44RaRKH6WLZZJRtv2soL9Y=; b=CDrT00wuac3mwH g81g78U+SOJFXEoY9DxRabuwhEpVvvHHABhTbW/ROYFmPTeatUgQNl+rcFyfFAy5TLj73dAkxYWhf PGmTZ6S5dtKfunEMDdFr5qWmc98ohsMZ5pwcpjlpa35fuOkbkMOy+poxRvkPyNgOCH02vHRtRmENb TJYCNPh+1vZ0SEO8sP9f8sMOf5JKQHZQGGr0BvfKG43KGgJyLQQZK/izFLGZ4SFYKjV1edPfVTSjS GYp4ecAKd82EBnv0iy521e+kbth5gel8qblbQCTZlJNtRMEj1G6Xzwjwvg+ouafa6nbtXBvGLiy6U 7aDfWMc9aFnvTu1j1f9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q2g7C-004A7o-2q; Fri, 26 May 2023 22:40:54 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q2g6q-0049vb-2d for linux-arm-kernel@bombadil.infradead.org; Fri, 26 May 2023 22:40:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:To:From:Subject: References:Mime-Version:Message-Id:In-Reply-To:Date:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description; bh=xKlpZwIe+ZNMqSgCu8evjP4rcM8k5wR/kLw9LO8buYU=; b=nrauKC215Gsd3GK+8i6D6tpOe5 CF/SCxRA5w/fO9nvOUUgvozyvVyHVMqYzoKzkwGSam9CEp/2oRSXeY/YTdYX6X49wx5R4gtEsfyXY IjKswREGzB2wUw8XcCmvC/46UXX3zdVL1lBnqtvSPQ5oH3NEjsrtyFFcCPoo2NzH+4vikpGPoPdgd kvJjOW5yIiMOjoAJ04kF9EVgiWDV34ymfw24dhJPrNopyM9YoStLRGd66JY6lDMydT50p/ASWI4uY 1ty0gOK0xcs2ajQax5RFtJmUiYjFNK/G4evtW5Tg/wJODPS7Yw6IAmLUSWd7rinDDvOSZKGLOM5/h BqvmhRhw==; Received: from mail-yb1-xb49.google.com ([2607:f8b0:4864:20::b49]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q2fOQ-007ipq-1S for linux-arm-kernel@lists.infradead.org; Fri, 26 May 2023 21:54:40 +0000 Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-bad0f5d6a7dso2466990276.0 for ; Fri, 26 May 2023 14:54:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1685138077; x=1687730077; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :from:to:cc:subject:date:message-id:reply-to; bh=xKlpZwIe+ZNMqSgCu8evjP4rcM8k5wR/kLw9LO8buYU=; b=vNEf07wd38olMIygDeoN49eL3LrM0kx+zZ/2Cv31L5rDqcu2u2HMGY22UqYAcRclhi xWcmudR/+KOmxloT1A+yCwbznoNqXA4muU4fC1iUhPu8yMN49rI+7ouhO7dxgVUSV/1a M2GvRHB7/EIDnQRRuoPRWKiOBbbCg2df/G0QdYaRJuekP9Q7ni2yTvJ4WD+VfQaki8tq v/sa5aeVQjSgtZlOUbhllM0Nf92nMRqw5PvnH9rVL6CIb3pdJOWFElwTFpPs0jXZOuUg mF8eG457uLaz65pA5jmMcOcdiqubBxp0wvSQdZyfI+Jy+eu4iahJXLaJi18YYG4XDmDD tcTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685138077; x=1687730077; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xKlpZwIe+ZNMqSgCu8evjP4rcM8k5wR/kLw9LO8buYU=; b=OQ5G0aV6QiwNZTzB94TmJpdkvQpuSuQZDrvYHV+MQB3Be2Ggi+VEj7mSjQkTxI3T4o Q69tpf+ssF2YYapVSEOFCjNJKDsGy41z8HqyfXVlAE7fWBJRXDUpjy0iAM+X2fgpMdr9 dJN6mIXC7WoVovxJwS6tuD5bt9tRevukSaRGi0PUrXb4h19bfE54b3y3o0vyESuU2MMj cOYs4Ez52VcLK4fvGhQlx91VSv1NPqwaYB+9u9i1WCgprRWvIVvEwkuFxZOLgPni/Ivx z2I+fnNX5Ux+ZMT/Vw0WJtXWZz8C3HsFZX1Sqm93AprZQy2+Jdm9h1pVzOqA3dZeSrv1 mX3Q== X-Gm-Message-State: AC+VfDzRco+MVjcdTvD92OhO9xuiy8SQ6F7Tu8+EgS1vEIwMGu+9YYP7 Fye2KWl/DxbJvC14Ai+8kO9+o1Xiju/9 X-Google-Smtp-Source: ACHHUZ7ivDl73fOYK0vU1vrJjuIWaoWY5OCr6BiWrhf+oEthpQhEpQTfyirjwDEjzcJSSvlUL0oqtE+qh/I2 X-Received: from irogers.svl.corp.google.com ([2620:15c:2d4:203:3b4e:312c:644:a642]) (user=irogers job=sendgmr) by 2002:a05:6902:4ef:b0:b9d:d5dc:5971 with SMTP id w15-20020a05690204ef00b00b9dd5dc5971mr1726290ybs.2.1685138076985; Fri, 26 May 2023 14:54:36 -0700 (PDT) Date: Fri, 26 May 2023 14:53:45 -0700 In-Reply-To: <20230526215410.2435674-1-irogers@google.com> Message-Id: <20230526215410.2435674-11-irogers@google.com> Mime-Version: 1.0 References: <20230526215410.2435674-1-irogers@google.com> X-Mailer: git-send-email 2.41.0.rc0.172.g3f132b7071-goog Subject: [PATCH v4 10/35] perf evlist: Allow has_user_cpus to be set on hybrid From: Ian Rogers To: Suzuki K Poulose , Mike Leach , Leo Yan , John Garry , Will Deacon , James Clark , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , Kajol Jain , Jing Zhang , Kan Liang , Zhengjun Xing , Ravi Bangoria , Madhavan Srinivasan , Athira Rajeev , Ming Wang , Huacai Chen , Sandipan Das , Dmitrii Dolgov <9erthalion6@gmail.com>, Sean Christopherson , Ali Saidi , Rob Herring , Thomas Richter , Kang Minchul , linux-kernel@vger.kernel.org, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230526_225438_563395_1562C5A1 X-CRM114-Status: GOOD ( 12.98 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Now that CPU map propagation only sets valid CPUs for core PMUs, there is no reason to disable "has_user_cpus" for hybrid. Signed-off-by: Ian Rogers Reviewed-by: Kan Liang --- tools/perf/util/evlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c index a0504316b06f..2e2c3509bec3 100644 --- a/tools/perf/util/evlist.c +++ b/tools/perf/util/evlist.c @@ -1067,7 +1067,7 @@ int evlist__create_maps(struct evlist *evlist, struct target *target) if (!cpus) goto out_delete_threads; - evlist->core.has_user_cpus = !!target->cpu_list && !target->hybrid; + evlist->core.has_user_cpus = !!target->cpu_list; perf_evlist__set_maps(&evlist->core, cpus, threads);