Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i#7046 Add Linux support to dr_create_memory_dump. #7047

Merged
merged 26 commits into from
Nov 7, 2024

Conversation

ivankyluk
Copy link
Contributor

@ivankyluk ivankyluk commented Oct 18, 2024

This is the first change to add Linux support to dr_create_memory_dump. The memory dump is written in ELF format and saved under the logs directory following the Windows example in win32/os.c.

Add a new test, memory_dump_test, to test dr_create_memory_dump for X64 Linux.

Issue: #7046

@ivankyluk ivankyluk force-pushed the i7046-add-linux-support-to-dr_create_memory_dump branch from a6cee2c to f37ddc3 Compare October 18, 2024 21:04
@ivankyluk ivankyluk changed the title Add Linux (x64 only) support to dr_create_memory_dump. i#7046 Add Linux (x64 only) support to dr_create_memory_dump. Oct 18, 2024
@ivankyluk ivankyluk force-pushed the i7046-add-linux-support-to-dr_create_memory_dump branch 2 times, most recently from 1c8c659 to 971b2d1 Compare October 18, 2024 21:46
@ivankyluk ivankyluk changed the title i#7046 Add Linux (x64 only) support to dr_create_memory_dump. i#7046 Add Linux support to dr_create_memory_dump. Oct 18, 2024
@ivankyluk ivankyluk force-pushed the i7046-add-linux-support-to-dr_create_memory_dump branch 5 times, most recently from 39dcddf to 05727e4 Compare October 18, 2024 23:29
@ivankyluk ivankyluk self-assigned this Oct 19, 2024
@ivankyluk ivankyluk force-pushed the i7046-add-linux-support-to-dr_create_memory_dump branch from 05727e4 to 37f8abf Compare October 19, 2024 01:41
@derekbruening
Copy link
Contributor

Sorry for the delay: I missed this. Please ping earlier in the future.

@derekbruening
Copy link
Contributor

@ivankyluk ivankyluk force-pushed the i7046-add-linux-support-to-dr_create_memory_dump branch from a6cee2c to f37ddc3
4 days ago

Please don't force-push on shared branches (documented at https://dynamorio.org/page_code_reviews.html#autotoc_md118 and in other places)

@ivankyluk ivankyluk marked this pull request as draft October 22, 2024 22:50
@ivankyluk
Copy link
Contributor Author

I've pull a new request #7053.

core/CMakeLists.txt Show resolved Hide resolved
core/CMakeLists.txt Show resolved Hide resolved
core/lib/dr_tools.h Outdated Show resolved Hide resolved
core/lib/dr_tools.h Outdated Show resolved Hide resolved
core/unix/coredump.c Outdated Show resolved Hide resolved
core/unix/coredump.c Outdated Show resolved Hide resolved
core/unix/coredump.c Outdated Show resolved Hide resolved
core/unix/coredump.c Outdated Show resolved Hide resolved
core/unix/coredump.c Outdated Show resolved Hide resolved
core/utils.c Outdated Show resolved Hide resolved
@derekbruening
Copy link
Contributor

I've pull a new request #7053.

Is that b/c of the force pushes? Probably not necessary; if anyone had pulled the branch (not likely) the damage is already done; avoiding future ones will avoid review issues now that reviewing has started.

@ivankyluk ivankyluk marked this pull request as ready for review October 30, 2024 19:12
api/docs/release.dox Outdated Show resolved Hide resolved
api/docs/release.dox Outdated Show resolved Hide resolved
api/docs/release.dox Outdated Show resolved Hide resolved
api/docs/release.dox Outdated Show resolved Hide resolved
core/unix/elf_defines.h Outdated Show resolved Hide resolved
core/unix/coredump.c Outdated Show resolved Hide resolved
core/unix/coredump.c Show resolved Hide resolved
core/unix/coredump.c Show resolved Hide resolved
core/unix/coredump.c Outdated Show resolved Hide resolved
core/unix/coredump.c Show resolved Hide resolved
Copy link
Contributor

@derekbruening derekbruening left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good; let's just make sure the test is built and run.

core/unix/coredump.c Outdated Show resolved Hide resolved
core/unix/coredump.c Outdated Show resolved Hide resolved
suite/tests/client-interface/memory_dump_test.dll.c Outdated Show resolved Hide resolved
suite/tests/client-interface/memroy_dump_test.runall Outdated Show resolved Hide resolved
suite/tests/client-interface/memroy_dump_test.runall Outdated Show resolved Hide resolved
suite/tests/client-interface/memory_dump_test.dll.c Outdated Show resolved Hide resolved
suite/tests/CMakeLists.txt Outdated Show resolved Hide resolved
suite/tests/CMakeLists.txt Outdated Show resolved Hide resolved
suite/tests/client-interface/memory_dump_test.dll.c Outdated Show resolved Hide resolved
core/lib/dr_tools.h Show resolved Hide resolved
suite/tests/client-interface/memory_dump_test.dll.c Outdated Show resolved Hide resolved
core/unix/coredump.c Outdated Show resolved Hide resolved
core/lib/dr_tools.h Outdated Show resolved Hide resolved
core/unix/coredump.c Outdated Show resolved Hide resolved
@ivankyluk ivankyluk merged commit 0ab4d54 into master Nov 7, 2024
17 checks passed
@ivankyluk ivankyluk deleted the i7046-add-linux-support-to-dr_create_memory_dump branch November 7, 2024 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants