From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 9518E3E95A9 for ; Wed, 10 Jun 2026 12:53:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781095992; cv=none; b=BSkgwNpseXLnHoG8Kz02MR5gx2UW418T77o6i9usyAkgWgDWCoO2zAd3RiFSXb566AYv05wWQ2/rfLio3/6ulSipCQUSJWx/uWSWInqFFtUaUXf0gomu2QQi1Vm3Q+fT+9xir1P9YhC5afL8qkQb9k5vo7nLX4WzDoOEBT46dwU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781095992; c=relaxed/simple; bh=DATOvWEl6+vDj4fLhlUgx5WnFdQYxwtsQEm+0x/7pug=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jUN+VLrgZ60diJsyy0qG4BgGyUcv3IB5v97u92NQcY7swbMPL72G2njBQi0DqV/h7y59n79v7JIgZKazzCHVStoEq269M5Oa12qGGAH8dpePEiY/iH+kOKaTq5s0LV74exKcJk9xxUPxu4HoY7ThTHsV/18jH6ieuSTl7s2C/Ck= 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=jOJQSCMt; arc=none smtp.client-ip=170.10.129.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="jOJQSCMt" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1781095990; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=trFbMzecFCDTtqHwsmaw0L+K6xH6b64MKxE/VNfXYic=; b=jOJQSCMtURtFuvq9VQIhDfVGz/LDdbUZ+ShdMJEl4v5C4eDyprxyreMHnq7vkZanWa7yh4 SmfrG/E/TE5y8Ek/oGiFuCxkwj+usNlBDGlpY1IDws29i0n7Ka5o9W0iTP47uxJ5zq6oaW 8Y+JUxQ/9xWlov8jUq8N71xHCkoVD4M= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-193-9TApDTkROqGRhtPQb9FWdg-1; Wed, 10 Jun 2026 08:53:09 -0400 X-MC-Unique: 9TApDTkROqGRhtPQb9FWdg-1 X-Mimecast-MFC-AGG-ID: 9TApDTkROqGRhtPQb9FWdg_1781095988 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (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-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 27B25195F170; Wed, 10 Jun 2026 12:53:08 +0000 (UTC) Received: from wcosta-thinkpadt14gen4.rmtbr.csb (unknown [10.22.80.196]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with SMTP id 8068B3000223; Wed, 10 Jun 2026 12:53:04 +0000 (UTC) Date: Wed, 10 Jun 2026 09:52:57 -0300 From: Wander Lairson Costa To: Tomas Glozar Cc: Steven Rostedt , John Kacur , Luis Goncalves , Crystal Wood , Costa Shulyupin , LKML , linux-trace-kernel Subject: Re: [PATCH] rtla/tests: Fix pgrep filter in get_workload_pids.sh Message-ID: References: <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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260604140547.3616495-1-tglozar@redhat.com> X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 On Thu, Jun 04, 2026 at 04:05:47PM +0200, Tomas Glozar wrote: > 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-tglozar@redhat.com/ > Reviewed-by: Wander Lairson Costa