From nobody Mon Feb 9 08:53:38 2026 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 E1AB733FE09 for ; Tue, 6 Jan 2026 13:42:51 +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=1767706973; cv=none; b=tkc5lf0pvW07qCwLrJH6JsEG5umb6CvYMEwweXAfUmQ0DxvhqZTjIEhIDZa4yIev25mxYUzYkdfAApHbpiAVQ1m0jsGv/CqWmF/S0VOPU5caPQqsN8s/zmp1yCVnA5X9tdNfb4olZzCqoFGsa95odwB5thTCGQuiFiFs6D7/Hus= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767706973; c=relaxed/simple; bh=GdNVqyvUvcHuf/HcL1GjWVzimf5pBVb6UaPWIEtgTpw=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kG+lhPkLuJx7ZrLSpf9hc0Imm7X/X+zfd5E1SX+zIBs7LxCcPfgAYOr1hyGEv4wZy62W0COjOLubPgzhJhHmIdNZj/gMFJc8/OZvSmJ/muwPkxtpMWqsugnHWC2pBxyWaj2wmbeW8dyyco+6x5IuVrmFD7Xt3HW5bhkhpPgLxkU= 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=GPH6kh6q; 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="GPH6kh6q" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1767706970; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BMb5EeLAGOztdhNhPXPhwLEVSwERWiY6H9aj3v+zftA=; b=GPH6kh6q+52Q+i3NJ7sE+lpWasJp8JkNtfyYnWRKEe4azv9NVZd3wEGjOm2Aa5/PPs32zV dvcp6yXvMk5aOqo9jJT8quMwSpf+Unir0mZbxTNpDRWhtPinVmL4gyTVjswgJdUcJaczGR xIfThHrS1xCXGAfVvcZA3p4As6oGIrw= Received: from mx-prod-mc-05.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-591-qdtbuPjjOZOqkzBt6YrKeQ-1; Tue, 06 Jan 2026 08:42:49 -0500 X-MC-Unique: qdtbuPjjOZOqkzBt6YrKeQ-1 X-Mimecast-MFC-AGG-ID: qdtbuPjjOZOqkzBt6YrKeQ_1767706968 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-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 4C616195609E; Tue, 6 Jan 2026 13:42:48 +0000 (UTC) Received: from wcosta-thinkpadt14gen4.rmtbr.csb (unknown [10.22.89.23]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 6B3AB1800367; Tue, 6 Jan 2026 13:42:44 +0000 (UTC) From: Wander Lairson Costa To: Steven Rostedt , Tomas Glozar , Wander Lairson Costa , Ivan Pravdin , Crystal Wood , Costa Shulyupin , John Kacur , Tiezhu Yang , linux-trace-kernel@vger.kernel.org (open list:Real-time Linux Analysis (RTLA) tools), linux-kernel@vger.kernel.org (open list:Real-time Linux Analysis (RTLA) tools), bpf@vger.kernel.org (open list:BPF [MISC]:Keyword:(?:\b|_)bpf(?:\b|_)) Subject: [PATCH v2 08/18] rtla: Use standard exit codes for result enum Date: Tue, 6 Jan 2026 08:49:44 -0300 Message-ID: <20260106133655.249887-9-wander@redhat.com> In-Reply-To: <20260106133655.249887-1-wander@redhat.com> References: <20260106133655.249887-1-wander@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.93 Content-Type: text/plain; charset="utf-8" The result enum defines custom values for PASSED, ERROR, and FAILED. These values correspond to standard exit codes EXIT_SUCCESS and EXIT_FAILURE. Update the enum to use the standard macros EXIT_SUCCESS and EXIT_FAILURE to improve readability and adherence to standard C practices. The FAILED value is implicitly assigned EXIT_FAILURE + 1, so there is no need to assign an explicit value. Signed-off-by: Wander Lairson Costa --- tools/tracing/rtla/src/utils.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/tracing/rtla/src/utils.h b/tools/tracing/rtla/src/utils.h index 7fa3ac5e0bfb6..5286a4c7165d3 100644 --- a/tools/tracing/rtla/src/utils.h +++ b/tools/tracing/rtla/src/utils.h @@ -4,6 +4,7 @@ #include #include #include +#include =20 /* * '18446744073709551615\0' @@ -102,7 +103,7 @@ __attribute__((__warn_unused_result__)) int strtoi(cons= t char *s, int *res); #define ns_to_per(total, part) ((part * 100) / (double)total) =20 enum result { - PASSED =3D 0, /* same as EXIT_SUCCESS */ - ERROR =3D 1, /* same as EXIT_FAILURE, an error in arguments */ - FAILED =3D 2, /* test hit the stop tracing condition */ + PASSED =3D EXIT_SUCCESS, + ERROR =3D EXIT_FAILURE, + FAILED, /* test hit the stop tracing condition */ }; --=20 2.52.0