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 83C7C1862AE for ; Wed, 16 Oct 2024 08:25:44 +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=1729067146; cv=none; b=Rz1bl6ZuSwomXyz0wI1Ivwjk3OvwOOjl8q8CALDaxoVSYwSt0VVytd1kwy3qAI69T+XbjYTmPSL1+a3taSTizDLRF39QuYQtLLrfli2a6z4l+6iGdad0bPXVTyuWx/C4ViIQdqrzOmSDVQbpZX/oQQPG6wb/9gyYFQ/Pkn1Yb7M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729067146; c=relaxed/simple; bh=cHNU5Nlmdv0S2aOXaW1YmI5Vi55Yd0a+mORnEs+1XLE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=JU/XtxWX5+RVPZVLEWfZ7E6gY2ErUDpi5u352C4bJkSx2a02Lfm/aE5f6b6cU0DVC124IoinicUkGTALISrq+8ToVISL6QYPbgi3DuQUavCo49hXDLTQUoLtm7xqBtvGA1mhuV6w+nroDuY+jroQjz4DicXcu/y7hwq6aYfZ99I= 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=fQYIO/Z6; 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="fQYIO/Z6" Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-37d4fd00574so406471f8f.0 for ; Wed, 16 Oct 2024 01:25:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729067143; x=1729671943; 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=YTtC+Ws3fVNan1tFRA0VRBhmS9l1bU8+DPHPhAm/2m8=; b=fQYIO/Z6xB0J1wosZdLoyeYH6XGGTRxVGuMJKDjjDD4XJFYXrelXKdwIa4GqbZfZBa awVBzuKRAA0f93lp9vSory4VvxkDxG0FVCz/c/JoeDDfdwKSAI+YUx4j829nS02noMaX vfqYH7owLXd6IQTcHNasUcf6dX16AIAufwhw3x7cnj6hcpucNLAX1A3i73Depxvz7BIy mTRjXTbScosj2pQhXSPYrBX/gQ4Ojq/aygdoj6jcVFoyUc5XaId6ZWIv+brf8ihzd4Eb UlAQMyDRoFjBTDrKc11AWVJw1F+McoKgbfuf9tUBAZMa6mX5WRO1wLMGPF22yRyuJSKl VNPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729067143; x=1729671943; 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=YTtC+Ws3fVNan1tFRA0VRBhmS9l1bU8+DPHPhAm/2m8=; b=QNq4T2qspk1uUv9yWKD1bExCpjdaYIRqpfPQweqkknWBIbFaKiD/jWIzcAnWt9Gc1J UKDzjPSx4f+PbnTE9WlllbhQ3ih2rx+RmmStpBWyiZWeotR6E4AIbiIryoxHn8C+BXa+ /Xnw8Rrf4L/14N0+Ohj2RURAK05Y5uXJ17nkgJnv+63bNLHwpQmqqgHnMi8hOZs1vUZC lMVaK/oKYSSsPqXggaWMObPRtnrx2wyPFz1dN6qu4abG42UNiobA/YFNfwmbh++qahL9 zkXDcuTjxbBy6rBqc6KTSe620M1mwTMiRyqbBeFnGjmfAiycLryYi7A3lZfS1Tn91lRD JC5Q== X-Forwarded-Encrypted: i=1; AJvYcCU87/VupGD2WMeB61IEBCFdzTL6IhMh2KAE3gsK5HsHulmWBlfkDIXSU/eFBcqKDCMcmrYO5l/sazziIKPUcArm@vger.kernel.org X-Gm-Message-State: AOJu0Ywd1W/hXg/BV+4nRmNqPXpv8BX+yb+n7ECKNNbFnfmzzmJXV3O+ yoxVjyDJw3H0Yp6RhPHiembpUOxzorT6NZi5+isCGRi7QUpHK4NDRh89Rf5Q0X4= X-Google-Smtp-Source: AGHT+IEMMChsNHzste9atUwBuPlSVeJ6Nh/ZCpuS0zBDCoPbZFXSkfvsEaGtm/P2e319k3WMElMnNg== X-Received: by 2002:a5d:6882:0:b0:371:8685:84c with SMTP id ffacd0b85a97d-37d551fbe1emr13520902f8f.15.1729067142813; Wed, 16 Oct 2024 01:25:42 -0700 (PDT) Received: from [192.168.1.3] ([89.47.253.130]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37d7fc113f9sm3673888f8f.90.2024.10.16.01.25.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Oct 2024 01:25:42 -0700 (PDT) Message-ID: Date: Wed, 16 Oct 2024 09:25:41 +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] perf test: Speed up some tests using perf list To: Namhyung Kim , Arnaldo Carvalho de Melo , Ian Rogers , Kan Liang Cc: Jiri Olsa , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org, Leo Yan , German Gomez , Carsten Haitzler References: <20241016065654.269994-1-namhyung@kernel.org> Content-Language: en-US From: James Clark In-Reply-To: <20241016065654.269994-1-namhyung@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 16/10/2024 7:56 am, Namhyung Kim wrote: > On my system, perf list is very slow to print the whole events. I think > there's a performance issue in SDT and uprobes event listing. I noticed > this issue while running perf test on x86 but it takes long to check > some CoreSight event which should be skipped quickly. > > Anyway, some test uses perf list to check whether the required event is > available before running the test. The perf list command can take an > argument to specify event class or (glob) pattern. But glob pattern is > only to suppress output for unmatched ones after checking all events. > > In this case, specifying event class is better to reduce the number of > events it checks and to avoid buggy subsystems entirely. > > No functional changes intended. > > Cc: German Gomez > Cc: Carsten Haitzler > Signed-off-by: Namhyung Kim > --- Reviewed-by: James Clark