From nobody Mon Jun 8 08:28:40 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 371E247F2F9 for ; Thu, 4 Jun 2026 14:06:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780581969; cv=none; b=mS+T/VkS+Urvoykq+3UPKejqI3KzOBytua5C+98h7NUxxfoQVH1dN27hmKbQswQl5u4LKlL0gv92GH864V10FUmV+jT/3If+g/lCzvlF7DO2x1D1y7sMMv3df2iodPIkslz9buehn1Nf2b6UPdrfNoocpYhSUc2nkunx9IWDyJA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780581969; c=relaxed/simple; bh=Uw9nvY02UpD9KblUh9qxg1lYuQx0XJfOh5p3fL9sDkM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eA/hY5Au1IRiRDjxSNXKneA68TklqEkjC0ZCbij5DHf6fdMR3JA9YqcdLVbZWmk4R2EsHmLeAw8D1wClQPLE9ujUo/m0mGfFGpGgd3saBkdUWlve0D+pQZLrPzbnmYYA9ImXiH5V5QDQ/rVkrLXzDCsCyFoWz+68ydIGu8E8C3g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=azRtWObx; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="azRtWObx" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1780581965; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=gLBeflr380ZNAPXfrIYScBzonk1AK7Sdg9uhhywNY/0=; b=azRtWObxy8mKOIBDhV3HSeld6Abpxx3mcM4IuG+GkrD7bpZ2DdQjDDp1dpxeu/aBRqh4Xs npXYqCrP6D3DhTCygHkU+VSrvVhX9TQA2V5ViN2YJK/JZqSTlaaJ//AniN3IttHS/kkNLG ZkcXVn8x66evU6o/RXf5hbcQMOc+MGg= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-404-bjyXuGTkOUmeHGwvVY61AQ-1; Thu, 04 Jun 2026 10:06:01 -0400 X-MC-Unique: bjyXuGTkOUmeHGwvVY61AQ-1 X-Mimecast-MFC-AGG-ID: bjyXuGTkOUmeHGwvVY61AQ_1780581960 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 030761800D92; Thu, 4 Jun 2026 14:06:00 +0000 (UTC) Received: from fedora.brq.redhat.com (unknown [10.43.17.109]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 962D7180049F; Thu, 4 Jun 2026 14:05:57 +0000 (UTC) From: Tomas Glozar To: Steven Rostedt , Tomas Glozar Cc: John Kacur , Luis Goncalves , Crystal Wood , Costa Shulyupin , Wander Lairson Costa , LKML , linux-trace-kernel Subject: [PATCH] rtla/tests: Fix pgrep filter in get_workload_pids.sh Date: Thu, 4 Jun 2026 16:05:47 +0200 Message-ID: <20260604140547.3616495-1-tglozar@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 Content-Type: text/plain; charset="utf-8" Multiple runtime tests in RTLA rely on the get_workload_pids() shell helper function to get the PIDs of both kernel and user workloads. On some systems (e.g. Fedora 43), pgrep matches kernel thread names including square brackets: "[osnoise/0]"; on other systems (e.g. RHEL 9.8), brackets are not included: "osnoise/0". Accept both as valid workload PIDs rather that just the non-bracket form to make the tests work on all systems. Fixes: a98dad63cda3 ("rtla/tests: Add runtime test for -k and -u options") Reported-by: Crystal Wood Signed-off-by: Tomas Glozar --- Note: the file touched by this commit is included by .gitignore, that is an error that will be fixed by [1]. [1] https://lore.kernel.org/linux-trace-kernel/20260601091835.3118094-1-tgl= ozar@redhat.com/ tools/tracing/rtla/tests/scripts/lib/get_workload_pids.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/tracing/rtla/tests/scripts/lib/get_workload_pids.sh b/to= ols/tracing/rtla/tests/scripts/lib/get_workload_pids.sh index 8aff98cd2c1f..d10a4e3b321d 100644 --- a/tools/tracing/rtla/tests/scripts/lib/get_workload_pids.sh +++ b/tools/tracing/rtla/tests/scripts/lib/get_workload_pids.sh @@ -5,7 +5,7 @@ get_workload_pids() { local rtla_pid=3D$(ps -o ppid=3D $shell_pid) =20 # kernel threads - pgrep -P $(pgrep ^kthreadd$) -f '^(osnoise|timerlat)/[0-9]+$' + pgrep -P $(pgrep ^kthreadd$) -f '^\[?(osnoise|timerlat)/[0-9]+\]?$' # user threads pgrep -P $rtla_pid | grep -v "^$shell_pid$" } --=20 2.54.0