From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (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 082583FBB3 for ; Sat, 7 Jun 2025 02:56:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749264969; cv=none; b=qji3nJrojHFsfqowQHxPMMhgmrCDRoqY4QPPMldXGTtjhiLYXRE+jWcu2UA5f1tYHT+ZgRtS7WHkBOJl+scu8FzTxxwVKvZhADR+qT78FcYfjPI8uiafDCKHtLv+cWN34Uq0QyZTGHQZ/Yzfz0k7BBkOPk5q+yapdi9KoIQSq6c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749264969; c=relaxed/simple; bh=/48P32ijFzoxC/Rcque3bPwNScUR+vA7vZs9TfeU/ro=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=hj09cNw88Jv6zRQ3UoMfArG8iEt3A+etwNDBtoPO8VOmZuY1AnpZid1GE5n+U6G3IqzPye3jEH7MnQltWIZLsS2in7VGGFA1KIfpgpfFmH67gkQkSChJUY6p+F2j3aHiYFbH7DF+GNLcAjDptkgM/VdlrmD7FqBjrWxp+8Db5KQ= 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=wziDc9EL; arc=none smtp.client-ip=209.85.208.53 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="wziDc9EL" Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-6077e0f2697so2442746a12.0 for ; Fri, 06 Jun 2025 19:56:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1749264966; x=1749869766; 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=VBwuS6lp3dTf3+9IER3gtiWhPdetZ3F/Kvrweuj6c8w=; b=wziDc9ELKT3dINneNVKB1CywkPSiMZQm2RkHjB+l86Cyb8drw73lN2BenDMhBFzOw2 ZfWutv20EMXHdgjfy/WhYCRDlh85/I0xhHntpJu0EY4UAxbv0KPoO9cL+FNmMQQKau7a gs1rZ42lqE1gAlMowgqnSto+RYpcmrwwk3ahyBXWdx0p1tO9MVOYQMxFprS+Db+RubZ4 TM9ZVBIDvoH1PACwVnm7NjLwrBm2yZkXN7ELa2A7g+kxlW21sGToH9pbkP7V6C2GhEmL juGJzHR5u0j6Xo6fjm/23e8Cp4Z4xifkLhJ0Nwx+eazjdY+R6LOjhP/jYRDdR4cNjWB3 XHFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749264966; x=1749869766; 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=VBwuS6lp3dTf3+9IER3gtiWhPdetZ3F/Kvrweuj6c8w=; b=i1xpz8qxiONjAyvZt6FjZzOLTcwj8nC5BhxAWsPyl3EADMpZqtlbMJCo8zVCFP50D+ 5lsEJq4x4qzycEXLlFHdsq+O1LtY019PRG8l8zKqjOryBRTNgsSWsXH0P7oGcYX3i6xM 7r1Y29f9gVuy1do+msrgB+SeeFKAeJ6GsqXTCqyHT6hYDc4PHlLt0Q/qRRdyrcwx/+3S BEoVmnMbBIgFhDPYWzDPOSBGUg9ucVZwEsWW7yhbp/s3UldeQrZVYRinmENGp4HtQZte fK9j4jgTZZeQNbzI6C66I8VI3lUuEud01lJUl69B/qtT/JtyLvV1OEUz9N/0EBheXY4a JaJg== X-Forwarded-Encrypted: i=1; AJvYcCU5sHfzp14xGdrIVE4qyhS7tZuNKRSiqc56PP3qAcLJCvTypxKdHO5cx8eSh/PpdOu+Xz+Z3vQv3axehrs=@vger.kernel.org X-Gm-Message-State: AOJu0YwJ6iQa9dJzW0onBVT/XPVvodarJRnMRn/alEF7tHx2fK40KaAo exF2/QKhLwlbkIbc8SwFWd+g7vAEDL8HT+wuD/283IB95ZCzSnwiRwOIsBQaH+PVXDaSnGElWhJ pKH0XpxZnTRdCTX/2WpQYSaEwqEL9qhpEjM1bguby X-Gm-Gg: ASbGncsbkIA+OYkeqdai8iWgslJkD+2Eb+ozCTMqtZfVZyZta6XAgM5A250H16EkzKb k8/L1ffPnJ3RK/V3jkt+G2OKGB1fMLf/VAsH67blYL63o35mNXPDXy5lonRIgiKoSeWy+WUyx7q ZEw78vbxfLUyLy0luhwupCIJQG9PS+uxRGYwkGNUIhYA== X-Google-Smtp-Source: AGHT+IHJCZebGgjyJO17uG1F1i8wPHijoEc7hEla+k60E5llZdICFrh6CbER2gg43i5MjcVWFm5kWnH+KYgI7nD9P2w= X-Received: by 2002:a17:907:940e:b0:ad8:96d2:f3a with SMTP id a640c23a62f3a-ade1aa0fc92mr468400266b.8.1749264966154; Fri, 06 Jun 2025 19:56:06 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: Chun-Tse Shao Date: Fri, 6 Jun 2025 19:55:54 -0700 X-Gm-Features: AX0GCFuGD45yemnNiPWTYMgSjjr814i18fpLyo-SPtnOOxM1kwn_DTMqaaZUluc Message-ID: Subject: Re: [PATCH 1/1 v6.16] perf test event_uniquifying: Skip test on platforms without 'clockticks' events To: Arnaldo Carvalho de Melo Cc: Namhyung Kim , Adrian Hunter , Alexander Shishkin , Andi Kleen , "Dr. David Alan Gilbert" , Howard Chu , Ian Rogers , Ingo Molnar , James Clark , Jiri Olsa , Kan Liang , Levi Yun , Mark Rutland , Peter Zijlstra , Weilin Wang , Linux Kernel Mailing List , linux-perf-users@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you Arnaldo for finding this problem. Please feel free to amend your = fix. -CT On Fri, Jun 6, 2025 at 1:25=E2=80=AFPM Arnaldo Carvalho de Melo wrote: > > On Fri, Jun 06, 2025 at 05:18:07PM -0300, Arnaldo Carvalho de Melo wrote: > > On Fri, Jun 06, 2025 at 10:52:02AM -0700, Namhyung Kim wrote: > > > On Thu, Jun 05, 2025 at 04:22:40PM -0300, Arnaldo Carvalho de Melo wr= ote: > > > > I'll add this to perf-tools for v6.16, please check. > > > > Plesae see > > > > https://lore.kernel.org/linux-perf-users/20250521224513.1104129-1-cts= hao@google.com/ > > > Oh, great, I'll drop my fix and get that one instead. > > Nope, that one returns ok if the test can't be performed, it should > return 2 so that it is skipped and since we don't have a way to show the > reason for skipping a shell test, when using 'perf test -vv' the warning > that is there already (the needed PMU not being available) will be > shown. > > So I'm amending this on top, ok? > > diff --git a/tools/perf/tests/shell/stat+event_uniquifying.sh b/tools/per= f/tests/shell/stat+event_uniquifying.sh > index 5a51fbaa13bb9b3c..c39d77ab4ad95bfc 100755 > --- a/tools/perf/tests/shell/stat+event_uniquifying.sh > +++ b/tools/perf/tests/shell/stat+event_uniquifying.sh > @@ -47,6 +47,7 @@ test_event_uniquifying() { > # Skip if the machine does not have `uncore_imc` device. > if ! ${perf_tool} list pmu | grep -q ${pmu}; then > echo "Target does not support pmu ${pmu} [Skipped]" > + err=3D2 > return > fi > > Then we get: > root@number:~# perf test uniqu > 93: perf stat events uniquifying : Sk= ip > root@number:~# > > Instead of the misleading: > > root@number:~# perf test uniqu > 93: perf stat events uniquifying : Ok > root@number:~# > > With -vv and the fix: > > root@number:~# perf test -vv uniqu > 93: perf stat events uniquifying: > --- start --- > test child forked, pid 94671 > stat event uniquifying test > Target does not support PMU uncore_imc [Skipped] > ---- end(-2) ---- > 93: perf stat events uniquifying : Sk= ip > root@number:~# > > - Arnaldo