From nobody Mon Feb 9 03:33:26 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 E26EC1F191E for ; Tue, 7 Jan 2025 14:50:44 +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=1736261446; cv=none; b=IukJBjItoThSDqLHmjZjgSqSZKgDTbO+mgPBjgWxwL6M4WQkapF39wwCkfSIzhYEl1NnWg+zhOVe+/eTcso1NrFpzqQtfUwyueR0o0RcfVOqtyjzO3iqPrwsTBrxemgRMGjv3zVmJtqa2kh52EgXfc78v11uhamjkCl4tsk/348= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736261446; c=relaxed/simple; bh=JFHwV3rqAhje+xFwmQcHy9oSgigK/8RdGCoLPRcD5Ro=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=oauqzWMz2YO+Xo80nOFJr8QoEKqAWmQBQBVmxwxdwmGAHrhzDU8REiwlo6Q6AEfjzzgdOvwHo/A3b6RKV5KqHQGYVpefEb5hEWfwcqKhS79x6lWZnLOwlvPAJ+d8FZZ4H0QlMW0IjxJqW5hUJMircxXlZbETlPIiHl4Lll8LY9c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none 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=KuKi0OKt; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none 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="KuKi0OKt" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1736261443; 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=p2N17mINbCXI2IZHsY3as/nDrVkZy95kpKV0uMugEi0=; b=KuKi0OKtxeydz7sOg8YyMgkuKQ+hRUhsg14z6WC6EoUC3PyitpxXBnm1F62i2WcIvrlhBb x5dWA3zPL2BeyLooSXFNaIUjWwpCz4/yMnAFmf+jDn57h8u9pbUIT4rVtwOHDrZVFxt2dA VH888FFD7JI6HX6zWuO6Oxg+FbNYzpo= Received: from mx-prod-mc-04.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-215-BN1CTcmRP9KOrEZHFfrhDA-1; Tue, 07 Jan 2025 09:50:42 -0500 X-MC-Unique: BN1CTcmRP9KOrEZHFfrhDA-1 X-Mimecast-MFC-AGG-ID: BN1CTcmRP9KOrEZHFfrhDA Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (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-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 2E4AD19560B3; Tue, 7 Jan 2025 14:50:40 +0000 (UTC) Received: from fedora.brq.redhat.com (unknown [10.43.17.159]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id E07111956088; Tue, 7 Jan 2025 14:50:37 +0000 (UTC) From: Tomas Glozar To: Steven Rostedt Cc: linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org, John Kacur , Luis Goncalves , Tomas Glozar Subject: [PATCH 3/3] rtla/timerlat_top: Set OSNOISE_WORKLOAD for kernel threads Date: Tue, 7 Jan 2025 15:48:23 +0100 Message-ID: <20250107144823.239782-4-tglozar@redhat.com> In-Reply-To: <20250107144823.239782-1-tglozar@redhat.com> References: <20250107144823.239782-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.0 on 10.30.177.15 Content-Type: text/plain; charset="utf-8" Apply fix from previous commit also to timerlat-top. Cc: stable@vger.kernel.org Fixes: cdca4f4e5e8e ("rtla/timerlat_top: Add timerlat user-space support") Signed-off-by: Tomas Glozar --- tools/tracing/rtla/src/timerlat_top.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/tools/tracing/rtla/src/timerlat_top.c b/tools/tracing/rtla/src= /timerlat_top.c index 059b468981e4..521f9822e747 100644 --- a/tools/tracing/rtla/src/timerlat_top.c +++ b/tools/tracing/rtla/src/timerlat_top.c @@ -851,12 +851,15 @@ timerlat_top_apply_config(struct osnoise_tool *top, s= truct timerlat_top_params * } } =20 - if (params->user_top) { - retval =3D osnoise_set_workload(top->context, 0); - if (retval) { - err_msg("Failed to set OSNOISE_WORKLOAD option\n"); - goto out_err; - } + /* + * Set workload according to type of thread if the kernel supports it. + * On kernels without support, user threads will have already failed + * on missing timerlat_fd, and kernel threads do not need it. + */ + retval =3D osnoise_set_workload(top->context, params->kernel_workload); + if (retval < -1) { + err_msg("Failed to set OSNOISE_WORKLOAD option\n"); + goto out_err; } =20 if (isatty(STDOUT_FILENO) && !params->quiet) --=20 2.47.1