From: Yauheni Kaliuta <ykaliuta@redhat.com>
To: Yonghong Song <yonghong.song@linux.dev>
Cc: bpf@vger.kernel.org, andrii@kernel.org, ast@kernel.org
Subject: Re: [PATCH bpf-next v2] tracing: perf_call_bpf: use struct trace_entry in struct syscall_tp_t
Date: Tue, 01 Aug 2023 10:49:52 +0300 [thread overview]
Message-ID: <xunyjzuf19sv.fsf@redhat.com> (raw)
In-Reply-To: <200cfb02-38ea-ecb4-c8f1-8ee557184c41@linux.dev> (Yonghong Song's message of "Mon, 31 Jul 2023 11:20:55 -0700")
Hi, Yonghong!
>>>>> On Mon, 31 Jul 2023 11:20:55 -0700, Yonghong Song wrote:
>> >> +
>> >> + /* __bpf_prog_run() requires *regs as the first parameter */
>> > This comment is not correct.
>> > static __always_inline u32 __bpf_prog_run(const struct bpf_prog
>> *prog,
>> > const void *ctx,
>> > bpf_dispatcher_fn dfunc)
>> > {
>> > ...
>> > }
>> > The first parameter is 'prog'.
>> > Also there is no __bpf_prog_run() referenced in this function
>> > so this comment may confuse readers. So I suggest removing
>> > this comment. The same for perf_call_bpf_exit() below.
>> Again, in [1] we agreed that it's better to have the comment
>> since it's even more confusing.
>> Could you help to formulate it?
>> "__bpf_prog_run() requires *regs as the first argument for bpf
>> prog" or something?
>> But yes, I can remove it of course.
> You could have a comment like below:
> /* bpf prog requires 'regs' to be the first member in the ctx
> (a.k.a. ¶m) */
Thanks!
--
WBR,
Yauheni Kaliuta
next prev parent reply other threads:[~2023-08-01 7:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-27 15:06 [PATCH bpf-next] tracing: perf_call_bpf: use struct trace_entry in struct syscall_tp_t Yauheni Kaliuta
2023-07-27 17:37 ` Yonghong Song
2023-07-28 10:02 ` Yauheni Kaliuta
2023-07-28 14:27 ` [PATCH bpf-next v2] " Yauheni Kaliuta
2023-07-28 16:44 ` Yonghong Song
2023-07-31 8:07 ` Yauheni Kaliuta
2023-07-31 18:20 ` Yonghong Song
2023-08-01 7:49 ` Yauheni Kaliuta [this message]
2023-08-01 7:52 ` [PATCH bpf-next v3] " Yauheni Kaliuta
2023-08-01 14:31 ` Yonghong Song
2023-08-01 18:00 ` patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xunyjzuf19sv.fsf@redhat.com \
--to=ykaliuta@redhat.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=yonghong.song@linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.