Linux-RISC-V Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: Menglong Dong <menglong.dong@linux.dev>
Cc: ast@kernel.org,  Menglong Dong <menglong8.dong@gmail.com>,
	rostedt@goodmis.org,  daniel@iogearbox.net,
	 john.fastabend@gmail.com, andrii@kernel.org,
	 martin.lau@linux.dev,  eddyz87@gmail.com, song@kernel.org,
	 yonghong.song@linux.dev,  kpsingh@kernel.org, sdf@fomichev.me,
	 haoluo@google.com,  jolsa@kernel.org, mhiramat@kernel.org,
	 mark.rutland@arm.com, mathieu.desnoyers@efficios.com,
	 jiang.biao@linux.dev, bpf@vger.kernel.org,
	 linux-kernel@vger.kernel.org,
	linux-trace-kernel@vger.kernel.org,
	 linux-riscv@lists.infradead.org
Subject: Re: [PATCH bpf-next v3 3/6] bpf: fix the usage of BPF_TRAMP_F_SKIP_FRAME
Date: Fri, 19 Dec 2025 14:48:53 +0100	[thread overview]
Message-ID: <87cy4aeg56.fsf@igel.home> (raw)
In-Reply-To: <1948844.tdWV9SEqCh@7950hx> (Menglong Dong's message of "Fri, 19 Dec 2025 21:31:13 +0800")

On Dez 19 2025, Menglong Dong wrote:

> diff --git a/arch/riscv/net/bpf_jit_comp64.c b/arch/riscv/net/bpf_jit_comp64.c
> index 5f9457e910e8..09b70bf362d3 100644
> --- a/arch/riscv/net/bpf_jit_comp64.c
> +++ b/arch/riscv/net/bpf_jit_comp64.c
> @@ -1134,7 +1134,7 @@ static int __arch_prepare_bpf_trampoline(struct bpf_tramp_image *im,
>  	store_args(nr_arg_slots, args_off, ctx);
>  
>  	/* skip to actual body of traced function */
> -	if (flags & BPF_TRAMP_F_ORIG_STACK)
> +	if (flags & BPF_TRAMP_F_CALL_ORIG)
>  		orig_call += RV_FENTRY_NINSNS * 4;

There are now three occurrences of that condition, and only the third
one uses orig_call.  How about merging them?

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

  reply	other threads:[~2025-12-19 13:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20251118123639.688444-1-dongml2@chinatelecom.cn>
     [not found] ` <20251118123639.688444-4-dongml2@chinatelecom.cn>
2025-12-18 14:45   ` [PATCH bpf-next v3 3/6] bpf: fix the usage of BPF_TRAMP_F_SKIP_FRAME Andreas Schwab
2025-12-18 15:05     ` Menglong Dong
2025-12-19  2:22     ` Menglong Dong
2025-12-19 11:41       ` Andreas Schwab
2025-12-19 12:27         ` Menglong Dong
2025-12-19 13:31           ` Menglong Dong
2025-12-19 13:48             ` Andreas Schwab [this message]
2025-12-19 14:04               ` Menglong Dong
2025-12-19 14:50                 ` Andreas Schwab
2025-12-19 14:54                   ` Menglong Dong

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=87cy4aeg56.fsf@igel.home \
    --to=schwab@linux-m68k.org \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=eddyz87@gmail.com \
    --cc=haoluo@google.com \
    --cc=jiang.biao@linux.dev \
    --cc=john.fastabend@gmail.com \
    --cc=jolsa@kernel.org \
    --cc=kpsingh@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=linux-trace-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=martin.lau@linux.dev \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=menglong.dong@linux.dev \
    --cc=menglong8.dong@gmail.com \
    --cc=mhiramat@kernel.org \
    --cc=rostedt@goodmis.org \
    --cc=sdf@fomichev.me \
    --cc=song@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox