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 800733EFD1A for ; Thu, 23 Apr 2026 13:06:24 +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=1776949586; cv=none; b=to16TPf7mtLdUSv4x071HOx0E5D0ileENN2Zc0FKWWDOCEAbPDQaoe7wdY+KGjCXYw0dZu9bR6pId1F7u82S0S0gwpDxCyqP+PNE+O8rBeCCqkMMZ1b5SqK1kBQqtN1qmRSBcDf+f6F169P3XL4XkIlbca0mksGu+Z55Idzl3Zc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776949586; c=relaxed/simple; bh=jH6RG8YyZF+X4kBZk0o3xliGCRgpWGl4DM2ooSO07HY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZqyfuvGzaFj2B/CJz0yo76258FlDpjA9qPDn0MttYEysIyku0pw+uPGTVQaE2kWytCyCWk+A4yeBLQ+NE4MnnQ/LgWw4F9ARJfLXpYYIEzZf++0Qw7QaqQMsDMmfinNSavHuJkNia2TeAoetYgTrSnpTVMKlkteMhz7nZS3P/yQ= 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=VcJj1Zfo; 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="VcJj1Zfo" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1776949583; 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: in-reply-to:in-reply-to:references:references; bh=zHl+leK81oEVhfbrnLdSI2/cG4v6LOWTco08aMzksrE=; b=VcJj1ZfoAS7zFYWe5KYf0zyLa5rWpI+idxharTY1341INjUG6ypL7Myc/OkyX//9LtZK0e cuUJvhbokdfcBgJtlUVOjh392s7yVyzBcZQvWEEv9EVLIByxAMKdR9wTHgHhN/1tWK2Ro+ /ODYSqrTFKTx5eokCSoaVKX2CW7maOM= 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-212-Qy2yHafEOyuXA_6oBgCr0g-1; Thu, 23 Apr 2026 09:06:19 -0400 X-MC-Unique: Qy2yHafEOyuXA_6oBgCr0g-1 X-Mimecast-MFC-AGG-ID: Qy2yHafEOyuXA_6oBgCr0g_1776949578 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-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 734381800451; Thu, 23 Apr 2026 13:06:18 +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 440161800348; Thu, 23 Apr 2026 13:06:16 +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 5/9] rtla/tests: Extend timerlat top --aa-only coverage Date: Thu, 23 Apr 2026 15:05:54 +0200 Message-ID: <20260423130558.882022-6-tglozar@redhat.com> In-Reply-To: <20260423130558.882022-1-tglozar@redhat.com> References: <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 rtla-timerlat-top's --aa-only option is currently only tested for return value. Extend the tests to also check that only auto-analysis is being done via a negative match for the "Timer Latency" text in the top header, and further split the test case into two: - one test case for --aa-only stopping on threshold - one test case for --aa-only exiting without threshold being hit For both cases, the expected output ("analyzing it" or "Max latency was" respectively) is checked against in addition to the negative match. Signed-off-by: Tomas Glozar --- tools/tracing/rtla/tests/timerlat.t | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/tracing/rtla/tests/timerlat.t b/tools/tracing/rtla/tests/timerlat.t index f47a82c115c7..28c01d8b299d 100644 --- a/tools/tracing/rtla/tests/timerlat.t +++ b/tools/tracing/rtla/tests/timerlat.t @@ -35,8 +35,10 @@ check_top_hist "set the automatic trace mode" \ "timerlat TOOL -a 5" 2 "analyzing it" check_top_hist "dump tasks" \ "timerlat TOOL -a 5 --dump-tasks" 2 "Printing CPU tasks" -check "print the auto-analysis if hits the stop tracing condition" \ - "timerlat top --aa-only 5" 2 +check "verify --aa-only stop on threshold" \ + "timerlat top --aa-only 5" 2 "analyzing it" "Timer Latency" +check "verify --aa-only max latency" \ + "timerlat top --aa-only 2000000 -d 1s" 0 "^ Max latency was" "Timer Latency" check_top_hist "disable auto-analysis" \ "timerlat TOOL -s 3 -T 10 -t --no-aa" 2 "" "analyzing it" check_top_q_hist "verify -c/--cpus" \ -- 2.53.0