From nobody Sun Feb 8 12:18:53 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 9867B33D6CA for ; Tue, 6 Jan 2026 13:48:25 +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=1767707307; cv=none; b=tqUy+uyXrjC1JXuo0RYyRO+P+UblRykj5jIKQgvvYeCSX7f4nBowZG9hiPofQJHjbpSLdrL3oRYScp52j3RvrO8SzwRc47tRa8M1tL1hEmsciZ3Gx9n2+2cLias1LNfAvC3gyOJpV3C4sMcF7RsI/JROi6gHOYRuyQWNWE5A3Ek= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767707307; c=relaxed/simple; bh=SQR+A6Rt1nFESNQ3gMr0olAyt1eeqZOPR2xNeMz1fRI=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kJdCCl38eZ4p7lcuW4DHETtJ5CWLr3df38mFsiBI66JWXUv78TqIZUCfO2wXUL0kfrRTeHcXecspMYkjbCoUA2ecX4xL7RG1ctEv8cWlVS9N6H35quXDmB8yOonwqQhXr3DFnalZ67A1N7uIY04hF3Fk8c175nKpo6lux7KPIbA= 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=Zgo5J61+; 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="Zgo5J61+" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1767707304; 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=FNP90wk4H8rdVkur8zqT0itxOHKAzLeaufg8KGIEo/w=; b=Zgo5J61+BPnoY1H7d88WeysuWMTX93EIX+GtTZ5xFXbK9ofeGofZN59u5My277Etiixa1X GTXEi3CJiDMI8B0xu7j3x+T1P8HhJ3wNhDhza3RIVZRtHgSJaU/byMVZRfaacZM2XXJiwH DkD6Q+mAYw7z2N7dStAUUOhwCMMe93I= 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-695-fylWa2GDO0moLpfc42uI_g-1; Tue, 06 Jan 2026 08:48:23 -0500 X-MC-Unique: fylWa2GDO0moLpfc42uI_g-1 X-Mimecast-MFC-AGG-ID: fylWa2GDO0moLpfc42uI_g_1767707302 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 3ABF21956063; Tue, 6 Jan 2026 13:48:22 +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 64C941800576; Tue, 6 Jan 2026 13:48:17 +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 17/18] rtla: Fix parse_cpu_set() return value documentation Date: Tue, 6 Jan 2026 08:49:53 -0300 Message-ID: <20260106133655.249887-18-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" Correct the return value documentation for parse_cpu_set() function in utils.c. The comment incorrectly stated that the function returns 1 on success and 0 on failure, but the actual implementation returns 0 on success and 1 on failure, following the common error-on-nonzero convention used throughout the codebase. This documentation fix ensures that developers reading the code understand the correct return value semantics and prevents potential misuse of the function's return value in conditional checks. Signed-off-by: Wander Lairson Costa --- tools/tracing/rtla/src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/tracing/rtla/src/utils.c b/tools/tracing/rtla/src/utils.c index 508b8891acd86..4093030e446ab 100644 --- a/tools/tracing/rtla/src/utils.c +++ b/tools/tracing/rtla/src/utils.c @@ -113,7 +113,7 @@ void get_duration(time_t start_time, char *output, int = output_size) * Receives a cpu list, like 1-3,5 (cpus 1, 2, 3, 5), and then set * filling cpu_set_t argument. * - * Returns 1 on success, 0 otherwise. + * Returns 0 on success, 1 otherwise. */ int parse_cpu_set(char *cpu_list, cpu_set_t *set) { --=20 2.52.0