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.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 3B5503E6DD0 for ; Thu, 23 Apr 2026 13:06:09 +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=1776949571; cv=none; b=aVKaLLRH5PcRDWOgR96lmvdJatLR7yl6IRDbdit/hd6ZuSU7qtFn/pFK5Nxoni8afK7qM+XPESKHAxA9qJR/5sCmGBWNwqYB6oZWs12HjDw8pHo7kEQ1mm2nkL4QTCHq9P+0kuzlnCWDCQVUPPuI0VRCb6zCyWPbBu0LlkeAnxE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776949571; c=relaxed/simple; bh=bErhPwJtC3k6B+veFzZ7MD++BBe8ZfIVOUEKpPY8Ix4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HGOagHIGdnLInJmCpj7Eh5f6/GQg3XLihrQWHY5SKxXxVTKraV0vsn9e0wtPfzVxxl4XeXJhiP6bMdFJgUMT19GC712MWVj7JDS39GV1VZd3BA1jm3z/o1hXnrXFQDdAL6v1e0Gm6AhjI2sT74E+NxvB3FOS1ETUSALkh+lZJaQ= 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=I+gu+Z7U; 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="I+gu+Z7U" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1776949569; 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=5Gu7S5uQnBwkhg8dgiMV01s5iWC2mPTvA2R3srVlDyk=; b=I+gu+Z7U58S1ZPOkh6d9MWvE0pH2/CxfuUFz9X0osSYAwpEmquYdx9oemz7nvMj9ny87Dc /lEkHUpXXyyxn9b4HcatbQHJx/BBKF3fhaMo//0BxCAw1+yd/gBnbA3TtdWQFMotf4L1Uw ofh65QXCKE1/SHnOkg6mlxQ+PfG3+wQ= Received: from mx-prod-mc-03.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-676--ghvFFmyOwaIPbPSrlCv3g-1; Thu, 23 Apr 2026 09:06:06 -0400 X-MC-Unique: -ghvFFmyOwaIPbPSrlCv3g-1 X-Mimecast-MFC-AGG-ID: -ghvFFmyOwaIPbPSrlCv3g_1776949565 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (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-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 3256B195606E; Thu, 23 Apr 2026 13:06:05 +0000 (UTC) Received: from fedora.brq.redhat.com (unknown [10.43.17.109]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 8D5031800906; Thu, 23 Apr 2026 13:06:02 +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 0/9] rtla/tests: Extend runtime test coverage Date: Thu, 23 Apr 2026 15:05:49 +0200 Message-ID: <20260423130558.882022-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: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 This patchset introduces some new tests to cover more options, especially histogram and thread options. Most of the new tests use positive and negative output matches, sometimes in combination with action scripts, to verify that RTLA is applying the settings correctly. Tests were reorganized a little, adding two new sections: thread tests and histogram tests, next to basic tests. Additionally, coverage of existing tests is extended by adding new matches and by extending tests to cover both top and hist tools where possible. For the latter, new helpers check_top_hist and check_top_q_hist are added to engine.sh. As part of the new action scripts, detection of measurement threads is made more robust by following child processes of either RTLA (user workload) or kthreadd (kernel workload) rather than grepping through the comms of all processes, which might have lead to false positives. These changes significantly improve test coverage and make the test suite more against false positives from unrelated processes. Tomas Glozar (9): rtla/tests: Cover both top and hist tools where possible rtla/tests: Add get_workload_pids() helper rtla/tests: Check -c/--cpus thread affinity rtla/tests: Use negative match when testing --aa-only rtla/tests: Extend timerlat top --aa-only coverage rtla/tests: Cover all hist options in runtime tests rtla/tests: Add runtime test for -H/--house-keeping rtla/tests: Add runtime test for -k and -u options rtla/tests: Add runtime tests for -C/--cgroup tools/tracing/rtla/tests/engine.sh | 15 +++ tools/tracing/rtla/tests/osnoise.t | 73 +++++++---- .../rtla/tests/scripts/check-cgroup-match.sh | 17 +++ .../tracing/rtla/tests/scripts/check-cpus.sh | 9 ++ .../tests/scripts/check-housekeeping-cpus.sh | 4 + .../rtla/tests/scripts/check-priority.sh | 8 +- .../scripts/check-user-kernel-threads.sh | 16 +++ .../tests/scripts/lib/get_workload_pids.sh | 11 ++ tools/tracing/rtla/tests/timerlat.t | 113 +++++++++++------- 9 files changed, 194 insertions(+), 72 deletions(-) create mode 100755 tools/tracing/rtla/tests/scripts/check-cgroup-match.sh create mode 100755 tools/tracing/rtla/tests/scripts/check-cpus.sh create mode 100755 tools/tracing/rtla/tests/scripts/check-housekeeping-cpus.sh create mode 100755 tools/tracing/rtla/tests/scripts/check-user-kernel-threads.sh create mode 100644 tools/tracing/rtla/tests/scripts/lib/get_workload_pids.sh -- 2.53.0