All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 dwarves 0/2] Check DW_OP_[GNU_]entry_value for possible parameter matching
@ 2024-11-15 11:36 Alan Maguire
  2024-11-15 11:36 ` [PATCH v3 dwarves 1/2] dwarf_loader: " Alan Maguire
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Alan Maguire @ 2024-11-15 11:36 UTC (permalink / raw)
  To: acme
  Cc: yonghong.song, dwarves, ast, andrii, bpf, daniel, kernel-team,
	song, eddyz87, olsajiri, Alan Maguire

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.

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(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-11-16 20:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.