From nobody Fri Jun 12 15:39:14 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 69E9C2EB84E for ; Thu, 14 May 2026 07:30:50 +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=1778743851; cv=none; b=e311MXtjmQNYTHp7Wc1h60yOvRnZ0P2oxB+2yykm0Q9KU/zJhMXiUifL/YfRqFIl0vb4nKm6M9Ipuc9ECj/itaooYw3emcQTw9eUbOPZBZAJNhGSV5IL+weWwrXCnB1wfaxiGCclVY8OEshTIqkUM1+dUW6h4i1JAREyE8OjwfI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778743851; c=relaxed/simple; bh=t0IMRjmO7nGl7Bz29HKR9UK68N+h1h/x1yRlahwTJfc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kuWnPGl7bnhi7o0T/cns6CUK0vJj02fZCVvRYGSmU1qcycblxVyVAjU4wCX8kWB8LqXSk45ROKHl9wfNRVFRU9m2Gxgasc2tIJ1WB6f847q8rCJt3vU6MhYh048n28wjUVUSrMrFs+m3IxQUGeoRCmf/AxZcjDHSLz/wiqV6aPQ= 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=gnP/ibOE; 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="gnP/ibOE" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1778743849; 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=mcvO6/sBe93rNf2rGMMO+vsFgltL388Pn96pJ1wvhKA=; b=gnP/ibOEghsLQ38vi99D3Sr6y2YuhT3mq2/wYqj6uiA2BxOOdyJnmIJlf8Kvp8gCL1YYtA 3uic7fhQ/CfswtZOTZIkYyMs6fnZsX16XAUvMqvGaU/ZjLRnY6xTtP0HuMppZoAytbMsbl upC9sa5r8C4bmQTOQFijQqR7rghnG4s= Received: from mx-prod-mc-06.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-350-ixvTufrLN4aKXxGUp3gqhA-1; Thu, 14 May 2026 03:30:45 -0400 X-MC-Unique: ixvTufrLN4aKXxGUp3gqhA-1 X-Mimecast-MFC-AGG-ID: ixvTufrLN4aKXxGUp3gqhA_1778743844 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-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 8DA4918005B6; Thu, 14 May 2026 07:30:44 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.44.33.23]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 4CC4030002DD; Thu, 14 May 2026 07:30:40 +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 v2] rtla: Document tests in README Date: Thu, 14 May 2026 09:30:38 +0200 Message-ID: <20260514073038.204428-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.4 Content-Type: text/plain; charset="utf-8" RTLA tests are not documented anywhere. Mention both runtime and unit tests in the README, with instructions on how to run them and a list of dependencies and required system configuration. Signed-off-by: Tomas Glozar Reviewed-by: Wander Lairson Costa --- v2: Add package hints for common distros for Test::Harness (suggested by Crystal Wood). v1: https://lore.kernel.org/linux-trace-kernel/20260423130759.882247-1-tglo= zar@redhat.com tools/tracing/rtla/README.txt | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/tools/tracing/rtla/README.txt b/tools/tracing/rtla/README.txt index a9faee4dbb3a..13b4a798b487 100644 --- a/tools/tracing/rtla/README.txt +++ b/tools/tracing/rtla/README.txt @@ -42,4 +42,34 @@ For development, we suggest the following steps for comp= iling rtla: $ make $ sudo make install =20 +Running tests + +RTLA has two test suites: a runtime test suite and a unit test suite. + +The runtime test suite is available as "make check" (root required) and has +the following dependencies, in addition to RTLA build dependencies: + +- Perl +- Test::Harness (libtest-harness-perl on Debian/Ubuntu, perl-Test-Harness = on Fedora/RHEL) +- bash +- coreutils +- ldd +- util-linux +- procps(-ng) +- bpftool (if rtla is built against libbpf) + +as well as the following required system configuration: + +- CONFIG_OSNOISE_TRACER=3Dy +- CONFIG_TIMERLAT_TRACER=3Dy +- tracefs mounted and readable at /sys/kernel/tracing + +The unit test suite is available as "make unit-tests" and has the following +dependencies: + +- libcheck + +Unlike the runtime test suite, root is not required to run unit tests, nor= is +a tracefs/osnoise/timerlat-capable kernel required. + For further information, please refer to the rtla man page. --=20 2.53.0