Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp851427lqb; Wed, 29 May 2024 12:24:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV5+ut3LStw2vDh5ryJX3BZidbJc+MX1z6ioc4IXP/z0LcdwFDWv5fnuVU+kYCXFeJJSHq5wDhBEaMAnDgzhjEDRN33KaLE/Sd9SoNLJw== X-Google-Smtp-Source: AGHT+IEdo5cnPjILBM5IT5ZEVu6tJDVUrR+eGM1MlASS8vZacGb5anL08jDBV1kk588opwRJ4kKL X-Received: by 2002:a17:906:606:b0:a59:bbea:14e8 with SMTP id a640c23a62f3a-a642d5a320bmr288863566b.17.1717010679454; Wed, 29 May 2024 12:24:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717010679; cv=pass; d=google.com; s=arc-20160816; b=x3D856Cd0dTS5w0tjj2az8yIIr2IIhPlqrlLqlMd6OrFZwlR1foY4y7hJ+KYJqot4n mteS7oZmD7ShQteKC2DzafBKAW95yaM1n+BgByGYACYoSgu22UAjcUnPFz51jDXtXL26 bYGOPZ0NaJm06Py2n/ArSHqU/I7+yNsO92d3rKumjJ2syLYQwnSgudXZFVoojZl580Yt 5Mjs3PNgSyhr5jlnOeXCUGwMeEhPFGibHwBOmu6uAD1eFP3W//5O8LF1/XdzdLB2d5KD Qt7/aFKugs+icOZq2nWK20XKruABwgbAq4WdxHADz4tt7C7wbO/CQQk0UGYE0Q/UqMMa 57cw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=sXTtrQJv3NA6vgGdptXWBbUDgBSrpu0RXqrVrwJ3CPU=; fh=92nzojZZra12jW4mw8k0lvqWaDNtEyfZxcabbQtLHgM=; b=l7T07BXAZyRet2KK3bFSmRVWKsDSXa32SQji+GsIPhTEOhKeca5dbpDB1ALTtvWb0L yjArZdoT1W7VK5MHdiFLIafFWjRK29cK09myxc13z/8+GZN/xOU+TKiAgYU1BHWDcykD XFhkPX4CGbgQ5Jhp05w4fQ2qBFLLLaM/zjmAhPRZs609SuCx9fzEHVcVsFDQU9QpzM/S AcqT560m7K44KVSog2tw7iNSOSEaXjCoq++aaUpSObuIeQbH52Tdi4N3/dMc1wxS5Rro hFd08JB9gTpYiHcrzU7tGZRuz96/AOWDlutdB160VN2NPbwcEc4UoT8bGNbWju/1/JLx y7HQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="HIdV/Zxk"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-194607-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194607-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cdd0ee9si662165766b.916.2024.05.29.12.24.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 12:24:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194607-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="HIdV/Zxk"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-194607-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194607-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 1EB471F22391 for ; Wed, 29 May 2024 19:24:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 22C8B167DA0; Wed, 29 May 2024 19:24:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HIdV/Zxk" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4309C15B964; Wed, 29 May 2024 19:24:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717010672; cv=none; b=Stwm1Lw4zSwSym59p6HONqiUTqJp82XGdvTiR6wFKx82KkBP7iY3Mb/cVKegQxhC4KOpDoSYszAs0M0rlrbujWMgTMdQFOhh0U8CYJy9IpGBnOZH4xzAeeaFMFWDPUf4ljxHbrgQ12foPXk8vjCP80mXjuD4eNU57Ml5UYauotg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717010672; c=relaxed/simple; bh=p9mYxHDza/Axc1uEohlL5OW7dsuH9rNK/HVfZ/iRm2g=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=FCk7Sez/zEqyEHfCWuVS363vSifm6zBuqodTcAZJxBfYVU801tdpGAa0wITEleFa4WpJ0RXdhiVJR+8gLSjPTl7uaiw93mpCXVd6XQ2p4Iiab5Y/zZgAmHs7yXxVOk9HdZdJjyMClVi0RuQWpQ5q3voGqAeYx41tQh7j+JsKoF4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HIdV/Zxk; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C70AC32781; Wed, 29 May 2024 19:24:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717010671; bh=p9mYxHDza/Axc1uEohlL5OW7dsuH9rNK/HVfZ/iRm2g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HIdV/Zxkq05bdrXRiiTlsn85PafVC8A/EA+EIKuf9aoxzFux4yLCCJP+3k0jb7CVp r1vomG4XlCxPKEUB4mffwFO4T+9w+GunRda8OQSDtf/A+9FLKf2GetjLoOkp6/NmFh Ttj9OPqtFFLW+jt+g+XdqFZmIY7ZDvpqY51EQFZ08EAxaFaLiSKP9hlBck+82w49t7 Gjj3FAWOjJE5zkbYo8K7v2ua+ZyR4iA/5FupKPzPyQ9bFMe8IpSTkl3NGDR6GovEQP yZIRz2cej4vNq8Q1OvJHOfa9zipef5N14+LrR4VAfKfYbqfHmUSJD6tt6EbNYVycRe UYVPZW65Igjew== From: Namhyung Kim To: James Clark , Ian Rogers , Mark Rutland , Ravi Bangoria , Thomas Richter , Adrian Hunter , Ingo Molnar , Stephane Eranian , Alexander Shishkin , Peter Zijlstra , Arnaldo Carvalho de Melo , linux-perf-users@vger.kernel.org, Robin Murphy , Tuan Phan , Kan Liang , linux-kernel@vger.kernel.org, Bharat Bhushan , Jiri Olsa , Bhaskara Budiredla , Will Deacon Subject: Re: [PATCH v6 0/2] perf pmus: Sort/merge/aggregate PMUs like mrvl_ddr_pmu Date: Wed, 29 May 2024 12:24:21 -0700 Message-ID: <171701062467.353211.4212637863767093531.b4-ty@kernel.org> X-Mailer: git-send-email 2.45.1.288.g0e0cd299f1-goog In-Reply-To: <20240515060114.3268149-1-irogers@google.com> References: <20240515060114.3268149-1-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit On Tue, 14 May 2024 23:01:12 -0700, Ian Rogers wrote: > The mrvl_ddr_pmu is uncore and has a hexadecimal address > suffix. Current PMU sorting/merging code assumes uncore PMU names > start with uncore_ and have a decimal suffix. Add support for > hexadecimal suffixes and add tests. > > v6. Add necessary fix in pmu.c to perf_pmu__match_ignoring_suffix that > also needs to ignore hex suffixes. > v5. In pmus.h remove needless addition of #include list.h but add > stddef.h for size_t. > v4. Workaround GCC build error by using unsigned types. Don't consider > short hex suffixes as suffixes (e.g. cpum_cf) and test this > behavior. > v3. Rebase and move tests from pmus.c to the existing pmu.c. > > [...] Applied to perf-tools-next, thanks! Best regards, -- Namhyung Kim