Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2380330iob; Sat, 30 Apr 2022 07:06:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAoqHzdCGdIaZdEmSZ/2BgppP5ibqL5WRhi6U3Jx8Bh4kTRNcZabomURHJK5l+Bsqd3sac X-Received: by 2002:a19:7710:0:b0:472:3486:a49e with SMTP id s16-20020a197710000000b004723486a49emr3106768lfc.600.1651327594053; Sat, 30 Apr 2022 07:06:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651327594; cv=none; d=google.com; s=arc-20160816; b=zNRLG69X60IYEEj+GaaivWnc+IH/zIzMQeDtCCONwkgUJ1dttEqiOKGK/ctZVgudbE UaGK5b1AYqpPJABUibrzkg0+4/JpIFdnYU/gMdMTeo5h43/nTafs9K+3oLip9sLg3tUr vOyE5gu0yZM8daKeVI7bcqTmkeCVr9wAaxZlpcPoK+Fi+CXTyio6bJi8OE9+TnwMAyVj PIfWaBRMbgrKygZNEpCV76RrKF6JQhSekEz8FfO5Hmin4jvOMiOjfZibc6ND1BS5fWW7 UjKFCZrd7ZSo+I2cHVIv5EbNjZGJOODHqPTVdkhhNAF+bfxqdCXC6T5RdPV72zB95uag Cx4g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YKrArDcvnBjXHRbeEsL8/b4ZThZuvgC2tUd0yYIUWxE=; b=G08eXqo6a8tY/8JhJD83czMF5a10duPuJB08jcttA2D/HgE4YaesYHMaE8bUeCS7Km j4wrvYYnDNat5jHDwR4ME5m+K7/wVDHTn1HsSCmz2GiWCG8FZojjBDc8sZbMM1mJEQcg IDhJU5cYclUGohMXmDokRV1MVxyd1Zs4mtd71upSKk+XPJ4oCaSKroZ4sRY3JAlzA4uc lEL0peN8+ype/aq5urkG017cy3Vce98m/BorjuxWhufRMkICssdwKFzG3Abtl2m+Y5DM zSDbYKhTzV3ZEfplRt59G1kZXlvvoYh8UiHyzOSO+qghm8lVallvcbw3ux3wQu0c+IZ7 w++A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=u4FxWR5M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b8-20020a2eb908000000b0024c91d14634si10295242ljb.609.2022.04.30.07.06.07; Sat, 30 Apr 2022 07:06:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=u4FxWR5M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379212AbiD2Qch (ORCPT + 99 others); Fri, 29 Apr 2022 12:32:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379216AbiD2Qb6 (ORCPT ); Fri, 29 Apr 2022 12:31:58 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9776BDAA3E; Fri, 29 Apr 2022 09:28:29 -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 ams.source.kernel.org (Postfix) with ESMTPS id 0ED3DB836A1; Fri, 29 Apr 2022 16:28:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A15EDC385A4; Fri, 29 Apr 2022 16:28:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651249706; bh=lAIRKSuq0bM0AuqbQaLq94Uoac+j3FgUzcXpkiyoZBw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u4FxWR5MINP4k3ApgAv3PidBTU7pja68e4htNByhDpZ+MJnS+FeHDTcodm+zx+4Tc DDbU/NXQcXBeN8L38hMqvM4Dtux92N07RHDB98dxnPyGD3TZkppijHxWe+5Fp0Z6sn s5bWi0bSmZDB7CNxRcTNNANLqFBZt2xT9FYGIsLKx2zDCNAG4ev/4go25DckUtN2MP PZ/upfQedj9cCZp1BFJ2JYEkE7zZ2XM0P551aoCtbWJIt+OC+8Z5HbisultW8+Yo0X cO6LLYFThj4iZrk2hQoNzw9Jh7+27R2HHIMk3M3HCcDX/fnfvqvnQaou8M52c4ibS2 QhncBRklI7aZQ== From: Daniel Bristot de Oliveira To: Steven Rostedt , linux-trace-devel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Daniel Bristot de Oliveira Subject: [PATCH 4/4] rtla: Fix __set_sched_attr error message Date: Fri, 29 Apr 2022 18:28:13 +0200 Message-Id: X-Mailer: git-send-email 2.32.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 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://lore.kernel.org/r/eeded730413e7feaa13f946924bcf2cbf7dd9561.1650617571.git.bristot@kernel.org/ Cc: Steven Rostedt Fixes: b1696371d865 ("rtla: Helper functions for rtla") Signed-off-by: Daniel Bristot de Oliveira --- 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.32.0