All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] btf_encoder: do not encode functions consuming packed structs on stack
@ 2025-07-07 14:02 Alexis Lothoré (eBPF Foundation)
  2025-07-07 14:02 ` [PATCH v3 1/3] btf_encoder: skip functions consuming packed structs passed by value " Alexis Lothoré (eBPF Foundation)
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Alexis Lothoré (eBPF Foundation) @ 2025-07-07 14:02 UTC (permalink / raw)
  To: dwarves
  Cc: bpf, Alan Maguire, Arnaldo Carvalho de Melo, Alexei Starovoitov,
	Thomas Petazzoni, Bastien Curutchet, ebpf,
	Alexis Lothoré (eBPF Foundation)

Hello,
this is the v3 of the packed-struct-passed-on-stack series. This
revision follows on Ihor's comments on v2.

Signed-off-by: Alexis Lothoré (eBPF Foundation) <alexis.lothore@bootlin.com>
---
Changes in v3:
- add uncertain param loc logic to saved_functions_combine to
  deduplicate functions
- remove unneeded call to class__infer_holes
- bring a userspace binary instead of a OoT kernel module for testing
- consolidate paths used in the new test
- Link to v2: https://lore.kernel.org/r/20250703-btf_skip_structs_on_stack-v2-0-4767e3ba10c9@bootlin.com

Changes in v2:
- infer structs attributes
- skip function encoded if some consumed struct (passed on stack) is
  marked as packed
- add some tests in btf_functions.sh
- drop RFC prefix
- Link to v1: https://lore.kernel.org/r/20250618-btf_skip_structs_on_stack-v1-1-e70be639cc53@bootlin.com

---
Alexis Lothoré (eBPF Foundation) (3):
      btf_encoder: skip functions consuming packed structs passed by value on stack
      tests: add some tests validating skipped functions due to uncertain arg location
      gitignore: ignore all the test kmod build-related files

 .gitignore             |  3 ++
 btf_encoder.c          | 53 +++++++++++++++++++++++++++--
 dwarves.h              |  1 +
 tests/bin/Makefile     | 10 ++++++
 tests/bin/test_bin.c   | 66 ++++++++++++++++++++++++++++++++++++
 tests/btf_functions.sh | 91 ++++++++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 221 insertions(+), 3 deletions(-)
---
base-commit: 042d73962d35fdd1466e056f1ea14590b1cdbb9b
change-id: 20250617-btf_skip_structs_on_stack-006adf457d50

Best regards,
-- 
Alexis Lothoré, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


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

end of thread, other threads:[~2025-08-06 11:14 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-07 14:02 [PATCH v3 0/3] btf_encoder: do not encode functions consuming packed structs on stack Alexis Lothoré (eBPF Foundation)
2025-07-07 14:02 ` [PATCH v3 1/3] btf_encoder: skip functions consuming packed structs passed by value " Alexis Lothoré (eBPF Foundation)
2025-07-07 17:05   ` Alexei Starovoitov
2025-07-07 17:45   ` Ihor Solodrai
2025-08-04  7:13   ` Alexis Lothoré
2025-08-04  9:58   ` Jiri Olsa
2025-07-07 14:02 ` [PATCH v3 2/3] tests: add some tests validating skipped functions due to uncertain arg location Alexis Lothoré (eBPF Foundation)
2025-07-07 14:14   ` Alexis Lothoré
2025-07-07 19:36     ` Ihor Solodrai
2025-07-09 16:21       ` Alan Maguire
2025-07-15  8:04         ` Alexis Lothoré
2025-07-15 15:36           ` Ihor Solodrai
2025-08-05 15:09   ` Alan Maguire
2025-08-05 19:06     ` Alexis Lothoré
2025-08-06 11:14       ` Alan Maguire
2025-07-07 14:02 ` [PATCH v3 3/3] gitignore: ignore all the test kmod build-related files Alexis Lothoré (eBPF Foundation)

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.