Skip to content

Implement backtracing tool as a component - #328

Draft
0aids wants to merge 27 commits into
mainfrom
backtrace_testing
Draft

Implement backtracing tool as a component#328
0aids wants to merge 27 commits into
mainfrom
backtrace_testing

Conversation

@0aids

@0aids 0aids commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Implemented a backtracing tool. Requires llvm's version of libunwind for unwinding, and sddf_printf for printing the backtrace (will probably change later).

@0aids
0aids requested a review from midnightveil June 17, 2026 03:31
@0aids 0aids self-assigned this Jun 17, 2026

@midnightveil midnightveil left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Some initial comments

Comment thread components/backtracer/backtracer.c Outdated
Comment thread components/backtracer/backtracer.c Outdated
Comment thread .github/workflows/examples.yaml
Comment thread components/backtracer/backtracer.mk Outdated
Comment thread components/backtracer/backtracer.mk
Comment thread examples/backtrace_test/Makefile Outdated
Comment thread examples/backtrace_test/meta.py Outdated
Comment thread examples/posix_test/.Makefile.kak.lu27kW Outdated
Comment thread flake.nix Outdated
Comment thread components/backtracer/monitor.h Outdated
Comment on lines +7 to +14
/*
* The Microkit Monitor.
*
* The monitor is the highest priority Protection Domain
* exclusively in a Microkit system. It fulfills one purpose:
*
* Acting as the fault handler for protection domains.
*/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should remove most of this file and only keep the relevant parts.

0aids added 23 commits June 17, 2026 15:39
cmake -B build -S .    -DCMAKE_SYSTEM_NAME=Generic -DCMAKE_C_COMPILER_TARGET=aarch64-none-elf -DCMAKE_CXX_COMPILER_TARGET=aarch64-none-elf -DCMAKE_C_COMPILER_WORKS=ON -DCMAKE_CXX_COMPILER_WORKS=ON -DLIBUNWIND_IS_BAREMETAL=ON -DLIBUNWIND_ENABLE_SHARED=OFF -DLIBUNWIND_ENABLE_THREADS=OFF -DLIBUNWIND_USE_COMPILER_RT=ON -DLIBUNWIND_ENABLE_PEDANTIC=OFF -DLIBUNWIND_ENABLE_ASSERTIONS=OFF -DCMAKE_BUILD_TYPE=Debug  -DLIBUNWIND_ENABLE_STATIC=ON -DCMAKE_ASM_COMPILER="$CC" -DCMAKE_ASM_COMPILER_WORKS=ON  -DCMAKE_CXX_FLAGS="-fno-exceptions"

Signed-off-by: 0aids <aidanlldanu@gmail.com>
Signed-off-by: 0aids <aidanlldanu@gmail.com>
Signed-off-by: 0aids <aidanlldanu@gmail.com>
Signed-off-by: 0aids <aidanlldanu@gmail.com>
Signed-off-by: 0aids <aidanlldanu@gmail.com>
Signed-off-by: 0aids <aidanlldanu@gmail.com>
Signed-off-by: 0aids <aidanlldanu@gmail.com>
Signed-off-by: 0aids <aidanlldanu@gmail.com>
Signed-off-by: 0aids <aidanlldanu@gmail.com>
Signed-off-by: 0aids <aidanlldanu@gmail.com>
Signed-off-by: 0aids <aidanlldanu@gmail.com>
Signed-off-by: 0aids <aidanlldanu@gmail.com>
…ion in mk

Signed-off-by: 0aids <aidanlldanu@gmail.com>
Signed-off-by: 0aids <aidanlldanu@gmail.com>
Signed-off-by: 0aids <aidanlldanu@gmail.com>
Having llvm-project as a submodule was causing problems with shallow
cloning.

Signed-off-by: 0aids <aidanlldanu@gmail.com>
Signed-off-by: 0aids <aidanlldanu@gmail.com>
Signed-off-by: 0aids <aidanlldanu@gmail.com>
Signed-off-by: 0aids <aidanlldanu@gmail.com>
Signed-off-by: 0aids <aidanlldanu@gmail.com>
Signed-off-by: 0aids <aidanlldanu@gmail.com>
Signed-off-by: 0aids <aidanlldanu@gmail.com>
@0aids
0aids force-pushed the backtrace_testing branch from 8328764 to 694cfe1 Compare June 17, 2026 05:45
0aids added 3 commits June 17, 2026 15:51
Signed-off-by: 0aids <aidanlldanu@gmail.com>
Signed-off-by: 0aids <aidanlldanu@gmail.com>
Signed-off-by: 0aids <aidanlldanu@gmail.com>
@0aids
0aids force-pushed the backtrace_testing branch from 484e82c to c08a4a8 Compare June 17, 2026 05:55
@0aids

0aids commented Jun 17, 2026

Copy link
Copy Markdown
Contributor Author

should be cleaned up now. lmk if i've forgotten anything

@midnightveil

Copy link
Copy Markdown
Contributor

You missed a few, especially around the monitor.h. There's still unresolved comments. (If you've fixed something, mark the comment as resolved, and then if we have things unresolved then it's easier to see)

Signed-off-by: 0aids <aidanlldanu@gmail.com>
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