All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 dwarves 0/5] btf_encoder: implement shared elf_functions table
@ 2024-10-16  0:10 Ihor Solodrai
  2024-10-16  0:10 ` [PATCH v3 dwarves 1/5] dwarf_loader: introduce pre_load_module hook to conf_load Ihor Solodrai
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Ihor Solodrai @ 2024-10-16  0:10 UTC (permalink / raw)
  To: dwarves; +Cc: acme, alan.maguire, andrii, eddyz87

v3 of the patchset fixes a couple of bugs and addresses feedback.

Notable changes in comparison to v2:

* use proper interface from stdatomic.h for atomic operations in
  btf_encoder__find_function()
* simplify btf_encoder__add_saved_funcs(), because actually we don't
  need to accumulate gathered elf_function states there, we only need
  to determine if a function should be added to BTF
* fix segfault in a case when the number of btf encoders is less than
  the number of threads
* correctly clean up elf_functions->entries in
  elf_functions__collect() when no functions are present in the Elf
* correctly clean up elf_functions_list at the end of
  btf_encoder__encode()
* remove post_cus__load_module() hook as it was unused
* remove btf_encoders__merge() as it is redundant

v2: https://lore.kernel.org/dwarves/20241009233520.989453-1-ihor.solodrai@pm.me/
v1: https://lore.kernel.org/dwarves/20241004051347.41143-1-ihor.solodrai@pm.me/

Ihor Solodrai (5):
  dwarf_loader: introduce pre_load_module hook to conf_load
  btf_encoder: introduce elf_functions struct type
  btf_encoder: collect elf_functions in btf_encoder__pre_load_module
  btf_encoder: store a list of elf_function per function name
  btf_encoder: switch to shared elf_functions table

 btf_encoder.c  | 387 +++++++++++++++++++++++++++++++++----------------
 btf_encoder.h  |   3 +
 dwarf_loader.c |  14 +-
 dwarves.h      |  11 +-
 pahole.c       |  12 +-
 5 files changed, 292 insertions(+), 135 deletions(-)

-- 
2.43.0



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

end of thread, other threads:[~2024-11-07 15:45 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-16  0:10 [PATCH v3 dwarves 0/5] btf_encoder: implement shared elf_functions table Ihor Solodrai
2024-10-16  0:10 ` [PATCH v3 dwarves 1/5] dwarf_loader: introduce pre_load_module hook to conf_load Ihor Solodrai
2024-10-17 10:44   ` Alan Maguire
2024-10-16  0:10 ` [PATCH v3 dwarves 2/5] btf_encoder: introduce elf_functions struct type Ihor Solodrai
2024-10-17 10:29   ` Alan Maguire
2024-10-16  0:10 ` [PATCH v3 dwarves 3/5] btf_encoder: collect elf_functions in btf_encoder__pre_load_module Ihor Solodrai
2024-10-17 10:56   ` Alan Maguire
2024-10-17 20:13     ` Arnaldo Carvalho de Melo
2024-10-18 20:17       ` Ihor Solodrai
2024-10-16  0:10 ` [PATCH v3 dwarves 4/5] btf_encoder: store a list of elf_function per function name Ihor Solodrai
2024-10-21 17:51   ` Alan Maguire
2024-10-31  0:14     ` Ihor Solodrai
2024-11-06 23:28       ` Ihor Solodrai
2024-11-07 15:45         ` Alan Maguire
2024-10-16  0:10 ` [PATCH v3 dwarves 5/5] btf_encoder: switch to shared elf_functions table Ihor Solodrai

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.