From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f201.google.com (mail-pg1-f201.google.com [209.85.215.201]) (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 67B353438A2 for ; Wed, 8 Jul 2026 17:53:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783533200; cv=none; b=rzoR4e3q79Z3VtZqOuzmlRY7mFyIT7bwS9JByU61oFUTwegZJj9okPcGO07400oq9z4GuyygKlZqOWVu8zzbh2N30o7JVpIwCfDRCxydVjN6Al5HLsNSZ2ZdcD9HHo3UbZWkN5N4kQX0N6j7bKgky1LzwjTx+7pwcgtQk51nPQs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783533200; c=relaxed/simple; bh=i3yMFamnMcSND3qD1hXqHP9PPBJPlUElTiSuWnu9XyM=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=Xb81kte1bSpa/kAupP83bqPZ4dVWGD5QG9LPMjI6XttYucyofiIsf9GDQ1H+O635FtFBp6dM5KXZc6OzCnMhYW0CxES1D4dzDsXtjNo6rQvPiNyY3VZ4OSpihyXkpDmsqxIVdTcdDl0Atz/0kQZloUPqeJ2bxQpkou4hbfDkL/Q= 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=Sio7bEw4; arc=none smtp.client-ip=209.85.215.201 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="Sio7bEw4" Received: by mail-pg1-f201.google.com with SMTP id 41be03b00d2f7-c88d7a75507so56164a12.1 for ; Wed, 08 Jul 2026 10:53:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1783533199; x=1784137999; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:mime-version:date:from :to:cc:subject:date:message-id:reply-to:content-type; bh=88+KphSI/HZMfYWVVRdeAK34sjJgWCEj3JmhdvhwEUs=; b=Sio7bEw4+fsvCUkJiyvIW254mWN88VLHrsH9WVnsR4YawJZ9jLryg2BwwS/fpToLg2 Lbz0+HAsZ12teRJPW2T7O4tJulJbLeMBdLLZwJEwpmPvWIICQ3Xxlbd2C429ct1KdA7x VWc2a7yK02LBqoUkN5SnL2vPKO8eI2oPwz4g035/vRfN07qipDU1XFry40Dirlkxi0fO J+GMxXUfnsLwqEShoiZI/t5DcrrgK54GdI3DfAAEj3PDzPXft5uxTYAZaL1HvDSgE7yr yASIN1Mmlx+Blnq+SgbBQWjhF3Da+oxiIIMsbABQqu9wNlg1/qoSDJ25ZXPIk/fwgQIw iN3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783533199; x=1784137999; h=content-type:cc:to:from:subject:message-id:mime-version:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=88+KphSI/HZMfYWVVRdeAK34sjJgWCEj3JmhdvhwEUs=; b=mayZXztYg6CN78nYBM3iHAGtzSgRBx+/jctufKA/a18Hqw6QYS3xQp/oct29qh8U+/ 8fskrPlko2U0TmeTML1QXG/2jewUsG5KKTWJHM/47M6lZYhLb774OJlwVUEwPKl2YkC+ 4RMKKHDBbT8G9lx86ZCbyn+ybNpfi59M8/1qWGMRqtacLb4rbo4Toi9hCc6NntHdyyLh dSAGQhbHQOPW/u8rvqMjGUpl5A0yfG+PW9VWcdxjwWVdH5RsfNgL9l8s5KnotSsUpJ80 vZXiEpMbpFq5A2hIiPUUXvNV9VfftHyZkgPncpy85ybodSrMvJS+Oij+N7NBdT3tP46z RwZA== X-Forwarded-Encrypted: i=1; AHgh+Rqx1pi0Ou16H1CG+Hll76NBWknp7zEKhnCTw3GLgJgYHxfK53v4xyYueadsv/huw4dVccw/jPVmzeaMmXg=@vger.kernel.org X-Gm-Message-State: AOJu0YzRUCmFnG+3dVfy60fYAT8Wub9zZtNKZjg7H6HnM3nMcfEdtSLK XA9ecRaN/bZRq+yNbAW58JDsaThSghIK/HbFifLg+O2JQ0vF0fbs1qvQqvKnmmrE4dk5EDlDorm UeqsWwJdDow== X-Received: from dled4-n1.prod.google.com ([2002:a05:701b:42c4:10b0:138:90f:8181]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a21:a95:b0:3bf:6c08:fb9d with SMTP id adf61e73a8af0-3c0bcead1b1mr4571803637.49.1783533198529; Wed, 08 Jul 2026 10:53:18 -0700 (PDT) Date: Wed, 8 Jul 2026 10:53:11 -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.55.0.795.g602f6c329a-goog Message-ID: <20260708175311.858850-1-irogers@google.com> Subject: [PATCH v1] perf tests: Restore -p flag to lock contention test From: Ian Rogers To: Thomas Richter Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Jiri Olsa , Adrian Hunter , James Clark , Jan Polensky , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Sumanth Korikkar , Ilya Leoshkevich , Ian Rogers Content-Type: text/plain; charset="UTF-8" Commit ae42a2a2a3ae ("perf tests: Speed up lock contention analysis shell test") in linux-next heavily optimized the test runtimes by switching the workload from the default of 10 process groups down to 1 (`perf bench sched messaging -g 1`). However, this change inadvertently dropped the original `-p` flag, causing the benchmark to default to `socketpair()` instead of `pipe()`. While `socketpair()` still generates some lock events on x86, it fails to trigger enough samples on architectures like s390, causing the test suite to fail due to lack of captured data. Restore the omitted `-p` pipe flag. The test retains the massive speedups achieved through the `-g 1` scaling, while producing a massive density of lock events across all architectures to fully satisfy the BPF trace filtering logic. Fixes: ae42a2a2a3ae ("perf tests: Speed up lock contention analysis shell test") Signed-off-by: Ian Rogers Assisted-by: Antigravity:gemini-3.1-pro --- tools/perf/tests/shell/lock_contention.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/perf/tests/shell/lock_contention.sh b/tools/perf/tests/shell/lock_contention.sh index ba598370be73..5df9a0cd48a3 100755 --- a/tools/perf/tests/shell/lock_contention.sh +++ b/tools/perf/tests/shell/lock_contention.sh @@ -11,7 +11,8 @@ errout=$(mktemp /tmp/__perf_test.errout.XXXXX) # Workload to generate lock contention. # Using 1 group (-g 1) keeps runtime low while generating sufficient lock events. -msg_workload="perf bench sched messaging -g 1" +# We include -p (pipes) because socketpairs don't generate enough lock events on s390. +msg_workload="perf bench sched messaging -g 1 -p" cleanup() { rm -f ${perfdata} -- 2.55.0.795.g602f6c329a-goog