BPF List
 help / color / mirror / Atom feed
From: Alan Maguire <alan.maguire@oracle.com>
To: acme@kernel.org
Cc: yonghong.song@linux.dev, dwarves@vger.kernel.org, ast@kernel.org,
	andrii@kernel.org, bpf@vger.kernel.org, daniel@iogearbox.net,
	kernel-team@fb.com, song@kernel.org, eddyz87@gmail.com,
	olsajiri@gmail.com
Subject: Re: [PATCH v3 dwarves 0/2] Check DW_OP_[GNU_]entry_value for possible parameter matching
Date: Fri, 15 Nov 2024 11:40:16 +0000	[thread overview]
Message-ID: <a1ffc678-5d72-45f5-a304-07be3cca7f86@oracle.com> (raw)
In-Reply-To: <20241115113605.1504796-1-alan.maguire@oracle.com>

On 15/11/2024 11:36, Alan Maguire wrote:
> Currently, pahole relies on DWARF to find whether a particular func
> has its parameter mismatched with standard or optimized away.
> In both these cases, the func will not be put in BTF and this
> will prevent fentry/fexit tracing for these functions.
> 
> The current parameter checking focuses on the first location/expression
> to match intended parameter register. But in some cases, the first
> location/expression does not have expected matching information,
> but further location like DW_OP_[GNU_]entry_value can provide
> information which matches the expected parameter register.
> 
> Patch 1 supports this; patch 2 adds locking around dwarf_getlocation*
> as it is unsafe in a multithreaded environment.
>

apologies, forgot to note

Changes since v2:

- handle multiple DW_OP_entry_value expressions by bailing if the
register matches expected, otherwise save reg in return value (Eduard
Yonghong, Jiri, patch 1)

> Alan Maguire (1):
>   dwarf_loader: use libdw__lock for dwarf_getlocation(s)
> 
> Eduard Zingerman (1):
>   dwarf_loader: Check DW_OP_[GNU_]entry_value for possible parameter
>     matching
> 
>  dwarf_loader.c | 123 +++++++++++++++++++++++++++++++++++++++----------
>  1 file changed, 98 insertions(+), 25 deletions(-)
> 


  parent reply	other threads:[~2024-11-15 11:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-15 11:36 [PATCH v3 dwarves 0/2] Check DW_OP_[GNU_]entry_value for possible parameter matching Alan Maguire
2024-11-15 11:36 ` [PATCH v3 dwarves 1/2] dwarf_loader: " Alan Maguire
2024-11-15 15:52   ` Yonghong Song
2024-11-15 11:36 ` [PATCH v3 dwarves 2/2] dwarf_loader: use libdw__lock for dwarf_getlocation(s) Alan Maguire
2024-11-15 11:40 ` Alan Maguire [this message]
2024-11-15 15:54   ` [PATCH v3 dwarves 0/2] Check DW_OP_[GNU_]entry_value for possible parameter matching Arnaldo Carvalho de Melo
2024-11-16 20:11     ` Arnaldo Carvalho de Melo

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=a1ffc678-5d72-45f5-a304-07be3cca7f86@oracle.com \
    --to=alan.maguire@oracle.com \
    --cc=acme@kernel.org \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=dwarves@vger.kernel.org \
    --cc=eddyz87@gmail.com \
    --cc=kernel-team@fb.com \
    --cc=olsajiri@gmail.com \
    --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