Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp511879lqp; Mon, 10 Jun 2024 10:33:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUHTsxrhhb6B+4UMWP7VEh9f4KVzRyiCSgDEsTvMTWZg5hLgxP3rYrnG6aBOVYiPWtkw01KXeBZWkX3Y19sPjVfTbH18nCNLsrX0RyHFA== X-Google-Smtp-Source: AGHT+IFkPbtFYo3VsDqfDBEtDfUQ8Vl3z93zt6Pu2NNyyk8i9PtD2T7MnTRJT2ENblHKu1x4SPOZ X-Received: by 2002:a50:d743:0:b0:57c:70a6:baf with SMTP id 4fb4d7f45d1cf-57c70a60bcamr3095038a12.40.1718040823003; Mon, 10 Jun 2024 10:33:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718040822; cv=pass; d=google.com; s=arc-20160816; b=o5D2fFfYHFPHuB3aCYVxXc2nElI40ny0G7r3feJaVLkTsRE1nsswCFUSEJgEiSF7DV S2on2Ewen1bnH/nLw8DLm2uip1juTaQVSpZ+KspKCPOjSZ+QVnpWnvB7Xbx4Bzy86CDV u+q5I7yM0m/I0oypqLWvy70CFoSJoZfuz6awIEoHJ06fGWY2Z19S0oMiJzNnljR8LHIv slCzSDprKGQfXGnawi+EHz5iI7VZsdmcS+W3K7l82L9C9UNAhkubvOywrS4jnfPGs2fO mOjL4mWF8Q/5Sc1n/1MOjnB6A6n0Bg12tN1zr6M7Eb4Rniy8AHW8WD9oY3i6pVzSH67x ESUg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=bdOYNNG233qRhz3XI+MlkfvaCLqk3IYfd5AUcptTRTM=; fh=9OSnRQ13mKTNAqpU6msU38oJUO0ILzoTOcx1wKlQDrw=; b=gvHXMCTqS+43+xJW4qodoJoEBCXj3U5loVUpQdi9mvrXkxQ6RGyHthI02PlFC3qNIC pkiaBCCNYNWE+hqKUmH5DmNQWGArUtbdgE/smLWZpgXnCYjmvkM8tau+Ky/lTBXx6A6G a6zZXoIMZqtXkYTaL5xrpJwDNhyy0SArqmcyRvI025vkudOX9FnbiAot2Plkilz73H1u RJdbUKdMAdB5i9Qo/YDLWZNh+vDEHl+B/WwFeeHC5ULeDGz34hNgIYpYV53bqyeuLmae E5HWkA73E+EEaorquZ3a76uTKXUvtbOExT/Tgi1nORmNWwSp3LM/bE3NwQIXGAX8KHP4 4SCw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=yGaVnFKy; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-208656-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208656-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57c769ae17csi1950750a12.596.2024.06.10.10.33.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 10:33:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208656-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=yGaVnFKy; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-208656-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208656-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id ADD531F22A94 for ; Mon, 10 Jun 2024 17:33:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C1F5147C6E; Mon, 10 Jun 2024 17:33:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="yGaVnFKy" Received: from mail-il1-f175.google.com (mail-il1-f175.google.com [209.85.166.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C0F184E04 for ; Mon, 10 Jun 2024 17:33:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718040813; cv=none; b=gt3P8sbztEHktlww5az6giSOH6RY5xUMskNzLgFbvauZfut5Wtipcvb7ZsJrpzHus5n/DIdUc6xG1tq1TaXUrZhaSMORvp/MfNlvNw9ZivnJDUpuW+HAz6Ojdyk6XVNjj9tdgsU72lSz/ZTUNxldoZF2zbOY1EGBj91LO4lvqw4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718040813; c=relaxed/simple; bh=bdOYNNG233qRhz3XI+MlkfvaCLqk3IYfd5AUcptTRTM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=XZV0exYR+xJ+44hMq0Bh0LCe27PeBSuU4KseRo4jfME77qsX0ifWYNkoUFPCrUf+ioj4R2Xndz3EDDPu9Dsmy15YaYShUZ3+14uhX52V8lvZEsuN+MAF6bhfzJhZi6AL6kSC4CmogeH8haUsi0db/cQHjErk07GDZHrfB8/YIeo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=yGaVnFKy; arc=none smtp.client-ip=209.85.166.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-il1-f175.google.com with SMTP id e9e14a558f8ab-375acf90c58so10205ab.0 for ; Mon, 10 Jun 2024 10:33:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1718040810; x=1718645610; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=bdOYNNG233qRhz3XI+MlkfvaCLqk3IYfd5AUcptTRTM=; b=yGaVnFKyg9Rb3zjy0fAVI3x3N5HLyp6OASgZ7cUwUpLkbDNUz8OekH1qdUnh2C+WZg KLmVN05dSsp6ufDulXhbGh7+fhfMxFOuCN0vPHZXwdvU32MLqLUkZzaQIOnygQ06FUat vrhK37pMCb5BAN7G790lwJXNspVSzRyNyMfzWLI7F4d+EJRIvxUYkqJCWYg/f0DQl5/J SzCnACmXpk5+lhv6qdsSyazulC+fQgRyhcUhM4Ab5beORt/Qm2Ar11i9mPY49cYv82WF gtsFALksAAjsEzB4Si6bvRPY8N2OnC0UVOZsCrnl3+FHT+7tJ5GREW79MdYGdxuhZz5c cdKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718040810; x=1718645610; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bdOYNNG233qRhz3XI+MlkfvaCLqk3IYfd5AUcptTRTM=; b=sCe7CrzkR3s61DF9xSi1HBNEG8pq91mnXfoOmQlc4OaE4XWrort0aXIsVYyFnrJY4Q v26exIQd0ndKGNz8n8G4uGjcNb3xRAsgztim1ZaS32Zvnq3ZZ5r/Ixjk9P9x4zEtGvTG +9u91aPBDWjGt53N345TCxvONjMCGJhC9+59wM/+z2HWzU1x6riFBvcmWCgaQ3GX2ePK kbzTK9egOR1jppXW2tYM2N9FfdFsIrF9OBgDHuXIsZ0+iAY1Y7GNcbzwQ+klYOVc+T8q kvuJ2PiRhhLreLPT2XIguFQkzqnVUyJCKiEzU66YNDTR0ErbUn2yBHcaJhn893fROk23 GiNA== X-Forwarded-Encrypted: i=1; AJvYcCUbgvrM7z20XjjZn54IiKsx9RyFB783adFWJWyZSU3FL7u2/uMLLD7hpG7a67cXJUxRoCmFaRHyqdA3C24Obu2ICM/MEMTzJPB0SxXa X-Gm-Message-State: AOJu0YwAYj5Tf3EeZTQUzjv5/54HLaGz6M+85Cxz7SMqkRayZpZvt/Uw fgdkANEpRY6WbdT+1E0FSFhhbNw866RXb8GoQnvXoWe1liWWgnwsR+2nVlSdkOOUiE8EJW7Pa9Z Fg7CWeC3MpxffYqrZu/43UzrOKoeqNJaD4B8Y X-Received: by 2002:a05:6e02:3701:b0:374:8a2a:6557 with SMTP id e9e14a558f8ab-37594fc8d02mr5745345ab.25.1718040810130; Mon, 10 Jun 2024 10:33:30 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240607065343.695369-1-irogers@google.com> <23ee1734-7e65-4f11-aede-fea44ada3cc4@arm.com> In-Reply-To: <23ee1734-7e65-4f11-aede-fea44ada3cc4@arm.com> From: Ian Rogers Date: Mon, 10 Jun 2024 10:33:18 -0700 Message-ID: Subject: Re: [PATCH v1] perf arm: Workaround ARM PMUs cpu maps having offline cpus To: Leo Yan Cc: Suzuki K Poulose , Mike Leach , James Clark , John Garry , Will Deacon , Leo Yan , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Kan Liang , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Yicong Yang Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jun 10, 2024 at 6:30=E2=80=AFAM Leo Yan wrote: [snip] > I did a test for this patch, it works well for me. > > Tested-by: Leo Yan > > Just a nitpick and I think it is not an issue caused by this patch. > After hotplug off one CPU and then if specify the CPU with option '-C', > the 'perf stat' command still continues to run. This is inconsistent > with the 'perf record' which exits with failures immediately. > > Maybe consider to send an extra patch to address this issue? As you say, this doesn't relate to the problem fixed here. I don't have a problem with the command line behavior change but I think my getting shouted at budget is fairly well exhausted. How about we trade issues, if the following get fixed: Renaming of the cycles event in arm_dsu_pmu.c - I'd say this is a top priority issue right now. Fixing ARM hybrid default perf stat (it is crazy we can accept this being broken), opening events on both BIG.little PMUs as done here: https://lore.kernel.org/lkml/20240510053705.2462258-4-irogers@google.com/ I'll address this. Thanks, Ian