From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dl1-f73.google.com (mail-dl1-f73.google.com [74.125.82.73]) (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 E504A2F9DA1 for ; Wed, 25 Mar 2026 18:31:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774463463; cv=none; b=ULWstPj1YfRaQwypofBi8cVfT7E1iMOSAvBLziqjKHOV+cMFok4fEq0aray4FK9IaICl1hrS1K90/ziQcRn4a3jrG+c9HvrbmkjqFk3/o16enUgn0VL4tHZsFYNYm2FB3KiQabcu/Jm3TW1HVz8ILg4ZuizGC3yVMsNlIEjIg8g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774463463; c=relaxed/simple; bh=7hrATXdSkqOyQ0r0qHMUdfuT9mJCE7TUOjauz7AhFcw=; h=Date:Mime-Version:Message-ID:Subject:From:To:Content-Type; b=qGhFKMvrWTKbMWixeOz/XGItmn+T4pVPwRh+PCIJ9ZzWclbtGByDPtlf1eQ3o94xKLq5vLUj3hQBADSNs5ghfoQQweYBcF1mXxekwaLR5LvOIMUqFp3mvXHyuzFEq3f504tdVyNmGb2WoPFoM2+vbq/m43YNkvrdn4Z/xvYS02o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=GiGDllA5; arc=none smtp.client-ip=74.125.82.73 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=flex--irogers.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="GiGDllA5" Received: by mail-dl1-f73.google.com with SMTP id a92af1059eb24-128d0b690feso707089c88.0 for ; Wed, 25 Mar 2026 11:31:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1774463460; x=1775068260; darn=vger.kernel.org; h=to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=6qrbAew5GclZC/lmFBbsyWI9kkJlWf87iDUPMx4bIU0=; b=GiGDllA5ScQ5aCCQVCWT9a3PIYdR6I3Nv4NGKZB345DM+OOO9fLqg28LScActdnjTH LVaKVTKpmOc9LLORMXmUYgm/aVskMLX2AleKdsiJNd5CgcC1hWUEmq1cEhJZ+MHK8Lgi MSz/QOHuIl4rn18DeKWOdYeEDHvZOFErUJeFa0uKwDEMGqsKsEa+fReaZIgjGMRcjYFx mOb2hp+D3dWmo4Y1+nf2wwEQ9uIu09w6b0s4kS9GsmsDQ5DJo3VwK63lrP16yJDGioap EyBFGmXsV/o8MieXZ1xDMu5mWlLb+1u/gQMD5xqmL3gDbaB1bAdGrDF7JMpKJBbklbJI bDEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774463460; x=1775068260; h=to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=6qrbAew5GclZC/lmFBbsyWI9kkJlWf87iDUPMx4bIU0=; b=cjpurEqResjb5vxpVV/8EU2x+FHI1xx9j+MHJERuxhqXTXIGKvpSwIR9yfFH0C0V1Z bA2tnyC/QVXo6mMcC2vKntCqCQYdix3Xtb/OsBAnXMlg8L8f4lkdxVYxWUIA9PWfGbJK 2rSKg4yEZwwveXescsp7W931JmC5yi8/US2OBwyGR3GWoK0x0nFzpObc4Zr1qbbh7fR4 vxqVHk+cIxTh668xGK2uWU3hCNihM2ow2/BUNO7AYttI3ZNadXBwkOAVxl904j3oT+1v 62Xk2wz4IIcGjSxu4HMOh0ekGQq4pIRyKAzhD5ozsZTJE84tQh7rhV/zow3Vli1OeuOg Il/A== X-Forwarded-Encrypted: i=1; AJvYcCWqnlTggqc4xY8V7iCMPh0xskqXhwBS3PY46Lwhn+b/g3zFTkBMYGeCsFGzNe7GyclK6RzyeUFBKPbOTuA=@vger.kernel.org X-Gm-Message-State: AOJu0YwQPJGNQIFXc0J5LTVqq4ZX5urBi7/JdNoJ/UbhEtJvy0fgMF4t oP8w1lZHIoGd2Wemhg2v4vLDCw087lM6IxQEdDtxX1Rblym+4hMtK23j7AqrxSJRdgcvdkjvhjM IISo1K9DPXQ== X-Received: from dlai26.prod.google.com ([2002:a05:701b:271a:b0:128:cffb:50d7]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7022:126:b0:12a:713b:8964 with SMTP id a92af1059eb24-12a96e5c068mr2778071c88.11.1774463459799; Wed, 25 Mar 2026 11:30:59 -0700 (PDT) Date: Wed, 25 Mar 2026 11:30:43 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.53.0.1018.g2bb0e51243-goog Message-ID: <20260325183045.1229502-1-irogers@google.com> Subject: [PATCH v1 0/2] perf tests: Add tests for uncore and perf metric event sorting From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , James Clark , Collin Funk , Dmitrii Dolgov <9erthalion6@gmail.com>, German Gomez , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Content-Type: text/plain; charset="UTF-8" A thread changing event sorting highlighted a lack of testing for the more complicated uncore and x86 perf metric event sorting: https://lore.kernel.org/linux-perf-users/CAP-5=fWRgDo7UnJAD4C--d=mVPRhOEWZVyU7nVM1YEp3jncAgg@mail.gmail.com/ Ian Rogers (2): perf tests: Add test for uncore event sorting perf arch x86 tests: Add test for topdown event sorting tools/perf/arch/x86/tests/topdown.c | 137 +++++++++++++++++++++++- tools/perf/tests/Build | 1 + tools/perf/tests/builtin-test.c | 1 + tools/perf/tests/tests.h | 1 + tools/perf/tests/uncore-event-sorting.c | 125 +++++++++++++++++++++ 5 files changed, 264 insertions(+), 1 deletion(-) create mode 100644 tools/perf/tests/uncore-event-sorting.c -- 2.53.0.1018.g2bb0e51243-goog