Support in-memory return values for s390
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | dwarf_loader: Support in-memory return values for s390dwarf_loader.c dwarves.h | +67 | 0 replies | |
| 2/2 | tests: Add test for in-memory return valuestests/ | +113 | 0 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Ilya Leoshkevich |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH dwarves v1 0/2] Support in-memory return values for s390
The s390 ABI returns any aggregate and scalars larger than 8 bytes, such as __int128, in a return value buffer allocated by the caller. This buffer's address is treated like a "hidden argument" and passed by the caller in %r2. The function's first parameter is passed in %r3.
Without this change pahole skips such functions and with "--verbose" prints a message like this:
<function> : skipping BTF encoding of function due to unexpected register usage for parameter
Set the first parameter register index (reg_idx) to the proper value. Move function's return type resolution before parameters are analyzed, because the analysis depends on the return type.
Although param_loc_supported is not set for s390, calculate the reg_idx in function__match_clang_parameter_locations in case the flag is enabled in the future.
Add test for in-memory return values.
The change affects only s390.
Maxim Khmelevskii (2):
dwarf_loader: Support in-memory return values for s390
tests: Add test for in-memory return values
dwarf_loader.c | 84 +++++++++++++++++++++++------- dwarves.h | 1 + tests/ret_in_memory.sh | 113 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 180 insertions(+), 18 deletions(-) create mode 100755 tests/ret_in_memory.sh
Signature · 1 line
2.56.0