From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (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 02BE933F3 for ; Wed, 21 May 2025 08:54:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747817693; cv=none; b=qxPEAbEa1lVn1LfMV6qbYnObG8ng5u71NJGuvAVHfkv1qYEMS7b64volB+RHCPwW1pX+sTrIu4gtgNrO+kXlqnWKr7M6W2ifsCyn7nEeKSaPj2bug/t3MrYfXQggK/eJusmerCtVIe8jkfOoDWl3ziNR72/3RYYeLMw/gQBXNP4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747817693; c=relaxed/simple; bh=w8uGtywi8FTT/FAgTCq7UeSzJ2Y+7StYHR09dw3aCDE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=h+uitS+XQosgP+GIzkL/jofaxEbthOsmJuac3du2V+0WWhtfRRYOWkcdQeSO+MdHIRWELUh0YoB3LlHhzccHNYwiioh6dmCN41OTTNfnFoK1HpAFVC4wBuIzq7krLiAkpi5TJ7LfSIW5k65NkeewskkZa8j6iKAg1dpat/YWwUI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=ewsNB14l; arc=none smtp.client-ip=209.85.221.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ewsNB14l" Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-3a363ccac20so4080111f8f.2 for ; Wed, 21 May 2025 01:54:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1747817690; x=1748422490; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=sbdPpdpIurd9SvA4bpOQHcg2N+24lyWEgW2cl5m4WjA=; b=ewsNB14lhBE66V9B5BVxfqogHrGpih0VYL2UXb9/UwKdwOGib6+eojxXeBxPWBcrqt Wyxq4yFvlw1PrRVE08nahKyWZMmU1rTqubKifmuad/CY+tLUBg3yky0N0qRjg+cBsSwF /xHqzLlcb5NLNF8g6Vm7jTVdWOWmFQSrnfL6Q02bgLbvQC8JgaEg9wYaduRY95IX0RaD o2xy7M0VI8j+/tvg0T7czT1IWI9NJAErowyglKfQAPmR26vTIm3vo/Ji+me4s1tItOHy Zkzqt9c/abDQBxCy6nfRJfM7KrXzV/mY1jXLzY+OORoxdUcht+zNBbuaoizdVM4LWKWD LOFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747817690; x=1748422490; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=sbdPpdpIurd9SvA4bpOQHcg2N+24lyWEgW2cl5m4WjA=; b=D02u6ph1qmZE7npCIZAX7f8tDc9bPnLLvv9n2mehoZCgWKvriKvEP4XfbWZt3sGkiD ++rRJUBLa8ZG//Yte02TskKcTqxFfCzRvs4xBzoaKqzC6z5yiBRIq8e1TZ3rpDc8DT3E 3CclfDfDg3Twzcuo1oeamPn7bEyJKuRqD1LEQ8ZEMLkoDp/LvLe1StQf6MPwe0FKCf2D xqUd19ei1dZoJ858nIRhrFovGz3+mCfQWYUquGcXtN0zyQ+oj9HWMuZBBfFKAaO1MV8M G5hluc0eqZvRWhRqUNEqfplPc0vah7ocbJvz4lXYMGwfhcTb/e1VIeSiMHtC6N9zgVFz 7f9A== X-Forwarded-Encrypted: i=1; AJvYcCURsdcahZTdC+18jUSGwo923Kf3eIjmxo9rF4cNJMjGkxvJkhEgqC2uHWvP/rRbkF/Pbvkh/RGk7korOv3jOffe@vger.kernel.org X-Gm-Message-State: AOJu0Yz8xAZcVnrxKtoSDS3E5nLmsPurtm8Md9+Dgf7C8oEkOmLylHr1 L0y7L4Yn5nCdXvMSIN/pa6N9SskZqdJeNs6+feN7zDLQ9gv5HKxLvcJj+nL1wBGkJGo= X-Gm-Gg: ASbGncvPpkBiisWHJLYJALcKVye9xA31ctJfBFgIKkDvq4aQs/7iqpKtalmMt55AwAm 8mdHpfwtDAqFbuKLTTu21g/AW9Ex7nk8QmSClzvRrtFqoHbcVIS0PyUbjhet+Ci69rrzgdc2Jxs MjETElwFgg0OJ3Ydef+cWWNVtYEn4lviVdP71L5GPjP2h5B3dMPpTKieugOjnU+anwqcl/Tw2NJ Qqv2YiJdiu19S3t+9mJNZSVLIXJSfAzyobhIrFiJ/DJOf7xLHZI1NInOEoIHJqsOLrOVCLJDx7Z q34xP7pbMFWjHkkwvDzIXId9sTkKHCu0bW2tw3+lUbNDKaD+fogSamCG X-Google-Smtp-Source: AGHT+IHcXYGtM7XVHHJEdGmOY1yvOZ0EB0s4eDSPvPzqzTL5ClJRA8YIoq/xMdJkfTjyIFVgJ2bfQA== X-Received: by 2002:a05:6000:18ac:b0:3a3:67c4:580b with SMTP id ffacd0b85a97d-3a367c45acemr12032252f8f.46.1747817690326; Wed, 21 May 2025 01:54:50 -0700 (PDT) Received: from [192.168.1.3] ([37.18.136.128]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a366e08747sm15804239f8f.95.2025.05.21.01.54.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 May 2025 01:54:49 -0700 (PDT) Message-ID: <5752f039-51c1-4452-b5df-03ff06da7be3@linaro.org> Date: Wed, 21 May 2025 09:54:48 +0100 Precedence: bulk X-Mailing-List: linux-perf-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 07/10] perf: arm_spe: Add support for filtering on data source To: Leo Yan Cc: Catalin Marinas , Will Deacon , Mark Rutland , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , Jonathan Corbet , Marc Zyngier , Oliver Upton , Joey Gouly , Suzuki K Poulose , Zenghui Yu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-doc@vger.kernel.org, kvmarm@lists.linux.dev References: <20250506-james-perf-feat_spe_eft-v1-0-dd480e8e4851@linaro.org> <20250506-james-perf-feat_spe_eft-v1-7-dd480e8e4851@linaro.org> <20250520134632.GR412060@e132581.arm.com> <443141db-6950-4a15-83be-ad9e9c0e03a0@linaro.org> <20250520161003.GT412060@e132581.arm.com> <20250520162243.GU412060@e132581.arm.com> Content-Language: en-US From: James Clark In-Reply-To: <20250520162243.GU412060@e132581.arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 20/05/2025 5:22 pm, Leo Yan wrote: > On Tue, May 20, 2025 at 05:10:03PM +0100, Leo Yan wrote: > > [...] > >> If 'PMSFCR_EL1.FDS == 0 and PMSDSFR_EL1 == 0x0' is the init state, as >> you said, when user passed 0xFFFF,FFFF,FFFF,FFFF for data filter, we >> cannot distinguish it from the init state, as a result, we will fail >> to handle this case. > > Correct a typo. The case above, it means "when a user passes 0x0 for > data source filter ....". > > Sorry for spamming. > > Leo I'm thinking I'd rather leave it consistent with PMSFCR_EL1.FT and automatically enable PMSFCR_EL1.FDS for any non zero data-source filter. This means we don't need a tool change to set some other flag when a filter is provided (even if it's zero) and it's much simpler. It also doesn't prevent the possibility of adding the enable flag in the future if someone comes out with a need for it, but I don't think it needs to be done now. TBH I can't imagine a case where someone would want to filter out any samples that have any data source. Surely you'd only be looking for a selected set of data sources, or no filtering at all.