[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Zr9pH1MC3L7Vr1-X@x1>
Date: Fri, 16 Aug 2024 11:58:39 -0300
From: Arnaldo Carvalho de Melo <acme@...nel.org>
To: Howard Chu <howardchu95@...il.com>
Cc: adrian.hunter@...el.com, irogers@...gle.com, jolsa@...nel.org,
kan.liang@...ux.intel.com, namhyung@...nel.org,
linux-perf-users@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 02/10] perf trace: Change some comments
On Thu, Aug 15, 2024 at 09:36:18AM +0800, Howard Chu wrote:
> Change them from '//' to '/* */'
You didn't state why you did it, is it to follow coding styles? IIRC //
is acceptable.
- Arnaldo
> Signed-off-by: Howard Chu <howardchu95@...il.com>
> ---
> tools/perf/builtin-trace.c | 9 ++++-----
> 1 file changed, 4 insertions(+), 5 deletions(-)
>
> diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c
> index d6ca541fdc78..97076b962688 100644
> --- a/tools/perf/builtin-trace.c
> +++ b/tools/perf/builtin-trace.c
> @@ -957,17 +957,16 @@ static bool syscall_arg__strtoul_btf_type(char *bf, size_t size, struct syscall_
> if (btf == NULL)
> return false;
>
> - if (arg->fmt->type == NULL) {
> - // See if this is an enum
> + /* See if this is an enum */
> + if (arg->fmt->type == NULL)
> syscall_arg_fmt__cache_btf_enum(arg->fmt, btf, type);
> - }
>
> - // Now let's see if we have a BTF type resolved
> + /* Now let's see if we have a BTF type resolved */
> bt = arg->fmt->type;
> if (bt == NULL)
> return false;
>
> - // If it is an enum:
> + /* If it is an enum: */
> if (btf_is_enum(arg->fmt->type))
> return syscall_arg__strtoul_btf_enum(bf, size, arg, val);
>
> --
> 2.45.2
>
Powered by blists - more mailing lists