Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2212807iof; Tue, 7 Jun 2022 23:22:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDppTKoncZ6c32kCMROugbJMq/sTu8cM6ZVkSYpo4HeHKT1J+ph6lRvPX/gqkuykMVBw1r X-Received: by 2002:a63:e348:0:b0:3db:7729:c0fe with SMTP id o8-20020a63e348000000b003db7729c0femr28272328pgj.482.1654669372298; Tue, 07 Jun 2022 23:22:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654669372; cv=none; d=google.com; s=arc-20160816; b=KMWLh/c8j8/Sc7Lc/EQdOGhr9p1+Q4fM5ccPfzWhGp5EkzzTtuDwPeBWiMnReWh3dU zTfkZU4U8gVpgvfwWzlKSOIplLpFzmLbIRRokXZLnOdAoksH99LnKdsZ5AlriqxtcEC7 veJbumlPB0TpIkJPTfjL3vmrEeS6cVv1lPz6Rk8pq2UQmgl1lfD1aOG7dd1lyTekBMOj KX3Cqgu3afFN1PX7k71Cn9qfAXRkc8EGTMr+XZlHeQ1Bn42pax6KSBSsKTtsaFEaUXOk OyZaMvBkEhwpMYBUhIl/4BrmvwfQh9HSXoPAFFsrIYQJHifJEpcHsWBfDi9++5o+Fr2q xsvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/E8VSybViy68TuI/xp9T6Ws7uJz5rCinefUQpuMUfVw=; b=Cx93Z4hhURsMjwye2mpsYi7f6PDyeOquFP0+Q2UdbC7jqXIPlR5GUnFwFbYlGB9gf6 kWIYh+awLWdwWPX/9nP0JPUO/3wTjz029Nr5gyrpYY5kX3Lwv9B3gfDutAyzFCPK7uIA GouzqnQ2yPLCTK9kaf2uxRATiRe2p6pIzhdtyUrP3ZsuddgfECDzjsYLknN0TsvBmR4G nPQeLcoeyxKETItIve2zHvkXiufcXROZG2t+TSFJ7w0VNgReQWptEZokoWOWh8/C26xd v7B+ZI1SI7PIbFZ7UrX0Xrh8OP7dAVFkmIcmlBTpPdcav8Fv/HjgR+VTR1FmuA8AYcpl 0FCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0VmkxWh5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d3-20020a636803000000b003fba94f5c39si26327594pgc.758.2022.06.07.23.22.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 23:22:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0VmkxWh5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6A4CB437A76; Tue, 7 Jun 2022 22:43:33 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378143AbiFHCFR (ORCPT + 99 others); Tue, 7 Jun 2022 22:05:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1386084AbiFHAWK (ORCPT ); Tue, 7 Jun 2022 20:22:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87E935F8D5; Tue, 7 Jun 2022 12:17:47 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 22CC761929; Tue, 7 Jun 2022 19:17:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 27C4EC385A2; Tue, 7 Jun 2022 19:17:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654629466; bh=cXCUdxYiYGxbcZlFp+894IWrbykYvUG1cHNVONu5V+w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0VmkxWh518vrCiLmdNLmR9DVG47DRgiaodwsEjVJ66xMX2eT0N3MekB44JyqHNdco 2WqhMga8Pey4LUVzFbu+oN4HQUWY3ljq9sHMetAXXnUneW/F712PKu5Cgy+OwldcM4 RABK0JtyeaG1UkHZPGFHdA+uVZs+0SNhL12aDIyo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Daniel Bristot de Oliveira , "Steven Rostedt (Google)" , Sasha Levin Subject: [PATCH 5.18 701/879] rtla: Fix __set_sched_attr error message Date: Tue, 7 Jun 2022 19:03:39 +0200 Message-Id: <20220607165023.195646253@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Daniel Bristot de Oliveira [ Upstream commit 941a53c39a151e9aceef153cdfaed0f166ba01b7 ] rtla's function __set_sched_attr() was borrowed from stalld, but I forgot to update the error message to something meaningful for rtla. Update the error message from: boost_with_deadline failed to boost pid PID: STRERROR to a proper one: Failed to set sched attributes to the pid PID: STRERROR Link: https://lkml.kernel.org/r/a2d19b2c53f6512aefd1ee7f8c1bd19d4fc8b99d.1651247710.git.bristot@kernel.org Link: https://lore.kernel.org/r/eeded730413e7feaa13f946924bcf2cbf7dd9561.1650617571.git.bristot@kernel.org/ Fixes: b1696371d865 ("rtla: Helper functions for rtla") Signed-off-by: Daniel Bristot de Oliveira Signed-off-by: Steven Rostedt (Google) Signed-off-by: Sasha Levin --- 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 da2b590edaed..3bd6f64780cf 100644 --- a/tools/tracing/rtla/src/utils.c +++ b/tools/tracing/rtla/src/utils.c @@ -255,7 +255,7 @@ int __set_sched_attr(int pid, struct sched_attr *attr) retval = sched_setattr(pid, attr, flags); if (retval < 0) { - err_msg("boost_with_deadline failed to boost pid %d: %s\n", + err_msg("Failed to set sched attributes to the pid %d: %s\n", pid, strerror(errno)); return 1; } -- 2.35.1