From patchwork Fri Feb 23 14:18:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 205413 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp613635dyb; Fri, 23 Feb 2024 06:18:59 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXX+ywWnvSON0Zq5k/Hmmlt76K9QjMTgfFCfmFHu7Vo28xxen+KZ23xyS704LdQykrBZjp4FbXX46pD1nwdnDk8/EFZ4A== X-Google-Smtp-Source: AGHT+IF2g+5s4CZiDm+qAnfMvKFeGz7nNG3BtOWcmIpFtnfxX2krJK2NXytQJEaDbEBzq2OG8xcE X-Received: by 2002:a05:6808:3193:b0:3c0:3359:484f with SMTP id cd19-20020a056808319300b003c03359484fmr1789414oib.58.1708697939752; Fri, 23 Feb 2024 06:18:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708697939; cv=pass; d=google.com; s=arc-20160816; b=NLOwrEc/o7CeQxqdYPey9Kghh7ivO0ZknlH1IMaFbl33+pLwK1CGhUInPs2ZpHPYqA wCjAXcs4Zecb7+kVG13GZJRlpgiksBSDY2XBNHNKV7yV00zf5K8uQYpprdfyc8NABMIg c36fIgjx0d1cOWoR0ozhE/A7E+osu2nk5S9tWspJqsV2gEFLcsOSTn3TLxOfcEy8YB2k 6O4knO4XOg69Prpk4cqwRv6D3dOtU8yhlDDVX/lYNmMRkptJu+CmEuUCGpf0zXwknB4L ALWcQHOG8QarMMtZeiIjHYimsSDy4TWuib3COTlx3UhWfJprsTnUud+RtS0eIfrPZqp1 52mQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:subject:cc:to:from:date:user-agent:message-id; bh=whOwffhxQ/MJF/supPx9sV6VT9akW1+cp7Faa6Cpf5c=; fh=VfvcBXjKW8zST+VJ0hcJl/Sk7tpkGolRrSIsvmnLAzY=; b=WecmudMyFH3EczCzZO4Oy8SZT5lA4Mqb8iLhU+j5Obx1oESyqcjGnLe9FupMpR+XF/ 1qpOKAoGAvIsmdtbcgStPzMsl3KogZ1bfruJOzAF+RlhDf/w4KfNwll5xPqN4Tqfgq8R o4Pt2yOzHygWGpZYG+ff4HDZnMRLnRuybPO8Upq1OR3fSPcSSVvQR5PxBqdtHWzDKvhz mULNQFG5JIC20riwIZeKJQVl587iwNW4jKXmPtgovPqIirO7jEWqtHyXGkcRILtpJXKt 3uk1PL7DkVD5htgzoUC0OvHyX8uh7uW2aRq5mYjypDZK0FzQz4POo7tjUHEm4T8i+JDU HURg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-78460-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78460-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id gg4-20020a056214252400b0068f71c1fbb6si10696064qvb.473.2024.02.23.06.18.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 06:18:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78460-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-78460-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78460-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 816EB1C2253B for ; Fri, 23 Feb 2024 14:18:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BF8C184FA5; Fri, 23 Feb 2024 14:17:12 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 BE60C81AAD for ; Fri, 23 Feb 2024 14:17:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708697829; cv=none; b=SXCWr/5YIhaJDgPxC3J8fcVPjgLdgdGR1tNmL+/CrC2ygPXtSbF7yc+h/sXQ/U2vGHVKFb/oRi+VX0QTqqAkGmd/XSKsg37oT5XpLJqaQjvwEsy+Rj/sbPm9uJj4NPByoP2xY6RvaaxjJLDuIvkCEGN90CZWCeGdC+NTxYFuyek= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708697829; c=relaxed/simple; bh=9g5M/uPrmYOSZQw75hsZotn5/TImjS5Rj6S+jNoXasQ=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type; b=oE/LOKi3rX/Z54CZ1Jm201r+ifv1w55+1rEWsYDM2zxv78o+217jXdg5Dsj9+xxf5loHVu4CKDLZq+459F6nGmb2n8mSBeDyXupUbYWYaMtd+kCW8cjsY9zGHbGmCZnTXVR4YaLlZzvOoqQnYQGyFzHJZo4+kP7Oc+uRVp6mzq8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7096BC43330; Fri, 23 Feb 2024 14:17:09 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.97) (envelope-from ) id 1rdWOE-000000077NC-1ZH5; Fri, 23 Feb 2024 09:19:02 -0500 Message-ID: <20240223141902.230675644@goodmis.org> User-Agent: quilt/0.67 Date: Fri, 23 Feb 2024 09:18:43 -0500 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Andrew Morton , John Garry Subject: [for-next][PATCH 05/13] tracing: Use init_utsname()->release References: <20240223141838.985298316@goodmis.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791699650631022794 X-GMAIL-MSGID: 1791699650631022794 From: John Garry Instead of using UTS_RELEASE, use init_utsname()->release, which means that we don't need to rebuild the code just for the git head commit changing. Link: https://lore.kernel.org/linux-trace-kernel/20240222124639.65629-1-john.g.garry@oracle.com Signed-off-by: John Garry Signed-off-by: Steven Rostedt (Google) --- kernel/trace/trace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 8fdd68dbcf6d..f56b3275c676 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -13,7 +13,7 @@ * Copyright (C) 2004 Nadia Yvette Chambers */ #include -#include +#include #include #include #include @@ -4133,7 +4133,7 @@ print_trace_header(struct seq_file *m, struct trace_iterator *iter) get_total_entries(buf, &total, &entries); seq_printf(m, "# %s latency trace v1.1.5 on %s\n", - name, UTS_RELEASE); + name, init_utsname()->release); seq_puts(m, "# -----------------------------------" "---------------------------------\n"); seq_printf(m, "# latency: %lu us, #%lu/%lu, CPU#%d |"