From: "Jose E. Marchesi" <jose.marchesi@oracle.com>
To: Simon Marchi <simark@simark.ca>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH V4 1/3] gdb: support for eBPF
Date: Fri, 10 Jul 2020 16:29:14 +0200 [thread overview]
Message-ID: <87blknqw91.fsf@oracle.com> (raw)
In-Reply-To: <199653b9-ee2a-b3cc-acbf-6a8293363407@simark.ca> (Simon Marchi's message of "Fri, 10 Jul 2020 09:51:38 -0400")
Hi Simon.
I have noted a few mostly stylistic comments. I don't know much
about eBPF, so I can't really comment on the behavior.
Thanks for the review.
> +/* Frame unwinder.
> +
> + XXX it is not clear how to unwind in eBPF, since the stack is not
> + guaranteed to be contiguous, and therefore no relative stack
> + addressing can be done in the callee in order to access the
> + caller's stack frame. To explore with xBPF, which will relax this
> + restriction. */
> +
> +/* Given THIS_FRAME, return its ID. */
> +
> +static void
> +bpf_frame_this_id (struct frame_info *this_frame,
> + void **this_prologue_cache,
> + struct frame_id *this_id)
> +{
> +}
So if I understand correctly, at the moment there's no unwinding at all,
there's always just one frame? What ID does that frame have? Would it
still be good to assign something (constant) to *THIS_ID to make sure it's
not random junk?
Would setting null_frame_id make sense there?
next prev parent reply other threads:[~2020-07-10 14:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-10 12:25 [PATCH V4 0/3] eBPF support Jose E. Marchesi
2020-07-10 12:25 ` [PATCH V4 1/3] gdb: support for eBPF Jose E. Marchesi
2020-07-10 12:38 ` Eli Zaretskii
2020-07-10 13:51 ` Simon Marchi
2020-07-10 14:29 ` Jose E. Marchesi [this message]
2020-07-10 14:49 ` Simon Marchi
2020-07-10 12:25 ` [PATCH V4 2/3] sim: eBPF simulator Jose E. Marchesi
2020-07-12 8:25 ` Andrew Burgess
2020-07-12 10:06 ` Jose E. Marchesi
2020-07-10 12:25 ` [PATCH V4 3/3] sim: generated files for the " Jose E. Marchesi
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=87blknqw91.fsf@oracle.com \
--to=jose.marchesi@oracle.com \
--cc=gdb-patches@sourceware.org \
--cc=simark@simark.ca \
/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