Received: by 2002:ab2:68c1:0:b0:1fd:9a81:d0e4 with SMTP id e1csp95183lqp; Sat, 8 Jun 2024 07:33:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW8EHLnft8Ao9h/hXF1MYtozwMAWy2wvcR0CWRZuErwAVPMclv6WZ27ePu0Do5g9Dnj0vuulS33QwNU1t1U0fqRKyM6Y+j9n1JbPJAMdA== X-Google-Smtp-Source: AGHT+IGXzgC6WqftjuPGyV4j79Xb0OED8TumJamhQMyMAu6gLtxWWNbCl/nRP8d+f0TjTxclkdgs X-Received: by 2002:a50:bac4:0:b0:57a:1aa8:b49e with SMTP id 4fb4d7f45d1cf-57c508632b5mr3686429a12.3.1717857181935; Sat, 08 Jun 2024 07:33:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717857181; cv=pass; d=google.com; s=arc-20160816; b=Qp+l7KuIozxzep0DrnRZUVltbYzkzBktJ9ALUH+KszM06JIrfvhFXbm5aP1CA6THRa XptzWBVX8nb6aPou67AE580E8uc7/XoCePioj9Au7rUcbe24zYwspYnojl+njqjZFm05 qzEHCeERG3gJ/TScIwhOucD6oKLAbFHN7pRmBOI7TmHDeYipaXm5PyvJDp161rau0rzz yo09p/uOuC85qbSTjJN6YqkD11yWV3+3q1BWZ63sQDj7H/0SUI6fqitYX9ZJGfC67Od3 K5OPcNCy1VlddphSAiM6np0ayJy7fhTjaUEZgNL+OUgtEk0/uppAfaqPBs3lTZlySY+9 ZFxA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=uzn9SV1gz0i58g8UMGhAznlpvLdu63Qpr42eOQ0QxCA=; fh=M39LLsJCzO7NrqA7jp+p/Wrw6XX0lv7COmgcBtCDj4Y=; b=LQXjkHz89hzBYgGyo91bU+wCvJfxWMcJkfZnFzApzRtQkWEo3+5gWW8pPz0Qj81yNU E8KfioOB1flWNZjuY0ekT5ZRc6ncGLe8x978RXaYFiUqnBMcoGMTI2ovT7HngBYWzDWk GaYNsHNOYi1ENa/feryQnYEzTPwi6Tq+KnwWEqiRTOMP9//UKBzMCWLQekXpLb7qAZuk 9YkRjth+PggH2/UTMUEB7ofg7/t1sSj/phpqZ9PetDhcKzwcxOAplp4CoHBN3Y5PzJF6 aMZMBO5Ff53x6orXisVlxN3mXPfz4T7lE2g/HVd8gWyIBc9qfE9kwpm6vEyCVYqUOpnJ lNXA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W6HGJuTs; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-207070-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207070-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57aae28a935si2772840a12.620.2024.06.08.07.33.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Jun 2024 07:33:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207070-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W6HGJuTs; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-207070-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207070-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 am.mirrors.kernel.org (Postfix) with ESMTPS id A7EC01F2111B for ; Sat, 8 Jun 2024 14:33:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E6D0F17A92E; Sat, 8 Jun 2024 14:32:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="W6HGJuTs" 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 10B54149DED; Sat, 8 Jun 2024 14:32:46 +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=1717857167; cv=none; b=rRdtPzzbvYY1xd03QIF9ySrhZIcyqtuE7ZYGKilJeccSAYHlLenbk0kjMUR23fEMuuCPmV7cB1vGiUsdhUWK3/gSZqk4kepL5pTiaQkv4bTTib6Ck+RJ/Fx7TtCLPPfletDdaTmXdTVKrWEfkmP7ORwfe51e12Qa1IdF9HoGq+I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717857167; c=relaxed/simple; bh=+mfH5kPRQKjFbiX+1m7cu4HLvr1f9QnlfzdttOt8hto=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=CD9D2pekS2cQChhbG+To+I+wvXD33MJmilXsc5zvZnYK7dZBWMIShPT2B4FeILKaQIdiCztgW9StWTb8qo8WAOtthKJAGX+58Slrkio2IMxjjJiLUNEnQq5iP0aS8yXEUWmVj9BNwE4jZkx904MaJCWLhC7cqNF0SGsmvf6O+Xc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=W6HGJuTs; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D342C2BD11; Sat, 8 Jun 2024 14:32:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717857166; bh=+mfH5kPRQKjFbiX+1m7cu4HLvr1f9QnlfzdttOt8hto=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=W6HGJuTsLphg3hJwaCcOqeBS/036cr1C35LPh+8S97Y+K7jUszwmKWkgwu5GjXPiK LoEX3fxAN2Q/2/ElZBXzpd4aO+B05yvV7V/0xf5CQJ0rW/ivN3zUAgcJ1xVbAjnQBD W6nvC+wkNMVOd/9fbnDQF5SgtqMI6dhEJb5HuzaXEQ7gGjGDqUP8n1QQQluMvNOWTN S5G3rueKMUiWI1aF74l9jSnB90djcoSqWvUGmZgwf4FDQTcPVokTMvAbBZPfsrKc7P Roief3NScRkY1DcjAIcx39RO0GwlU0EDKBV9J3kFkmgNIJ3Hp3ddxszlsLDVkf/RvU OV2DdZ/nqxo1A== Date: Sat, 8 Jun 2024 23:32:42 +0900 From: Masami Hiramatsu (Google) To: Steven Rostedt Cc: LKML , Linux Trace Kernel , Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers Subject: Re: [PATCH] function_graph: Rename BYTE_NUMBER to CHAR_NUMBER in selftests Message-Id: <20240608233242.414564f51bcc5db9993eb682@kernel.org> In-Reply-To: <20240606081846.4cb82dc4@gandalf.local.home> References: <20240606081846.4cb82dc4@gandalf.local.home> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 6 Jun 2024 08:18:46 -0400 Steven Rostedt wrote: > From: "Steven Rostedt (Google)" > > The function_graph selftests checks various size variables to pass from > the entry of the function to the exit. It tests 1, 2, 4 and 8 byte words. > The 1 byte macro was called BYTE_NUMBER but that is used in the sh > architecture: arch/sh/include/asm/bitops-op32.h > > Just rename the macro to CHAR_NUMBER. > Looks good to me. Acked-by: Masami Hiramatsu (Google) Thanks, > Fixes: 47c3c70aa3697 ("function_graph: Add selftest for passing local variables") > Reported-by: kernel test robot > Closes: https://lore.kernel.org/oe-kbuild-all/202406061744.rZDXfRrG-lkp@intel.com/ > Signed-off-by: Steven Rostedt (Google) > --- > kernel/trace/trace_selftest.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/kernel/trace/trace_selftest.c b/kernel/trace/trace_selftest.c > index 369efc569238..adf0f436d84b 100644 > --- a/kernel/trace/trace_selftest.c > +++ b/kernel/trace/trace_selftest.c > @@ -758,7 +758,7 @@ trace_selftest_startup_function(struct tracer *trace, struct trace_array *tr) > > #ifdef CONFIG_DYNAMIC_FTRACE > > -#define BYTE_NUMBER 123 > +#define CHAR_NUMBER 123 > #define SHORT_NUMBER 12345 > #define WORD_NUMBER 1234567890 > #define LONG_NUMBER 1234567890123456789LL > @@ -789,7 +789,7 @@ static __init int store_entry(struct ftrace_graph_ent *trace, > > switch (size) { > case 1: > - *(char *)p = BYTE_NUMBER; > + *(char *)p = CHAR_NUMBER; > break; > case 2: > *(short *)p = SHORT_NUMBER; > @@ -830,7 +830,7 @@ static __init void store_return(struct ftrace_graph_ret *trace, > > switch (fixture->store_size) { > case 1: > - expect = BYTE_NUMBER; > + expect = CHAR_NUMBER; > found = *(char *)p; > break; > case 2: > -- > 2.43.0 > > -- Masami Hiramatsu (Google)