public inbox for dwarves@vger.kernel.org
 help / color / mirror / Atom feed
From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Alan Maguire <alan.maguire@oracle.com>
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: Sat, 16 Nov 2024 17:11:58 -0300	[thread overview]
Message-ID: <Zzj8jl4TKSEDnPrL@x1> (raw)
In-Reply-To: <Zzdupj2ifjERTijl@x1>

On Fri, Nov 15, 2024 at 12:54:17PM -0300, Arnaldo Carvalho de Melo wrote:
> On Fri, Nov 15, 2024 at 11:40:16AM +0000, Alan Maguire wrote:
> > 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)
> 
> Thanks, applied locally, will perform tests and push publicly later
> today.

Did the tests/tests run, passes, pushed out to the master branch.

Thanks!

- Arnaldo

      reply	other threads:[~2024-11-16 20:12 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 ` [PATCH v3 dwarves 0/2] Check DW_OP_[GNU_]entry_value for possible parameter matching Alan Maguire
2024-11-15 15:54   ` Arnaldo Carvalho de Melo
2024-11-16 20:11     ` Arnaldo Carvalho de Melo [this message]

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=Zzj8jl4TKSEDnPrL@x1 \
    --to=acme@kernel.org \
    --cc=alan.maguire@oracle.com \
    --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