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

Copy callstack API #4033

Open
wants to merge 32 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
68e4534
Iterate callstack API
Jan 17, 2025
d0c6da1
wamr bool type
Jan 27, 2025
1f4d3dd
clang-format
Jan 27, 2025
1b82ccc
meaning of the return bool type in the callback
Jan 27, 2025
813831d
keep devs notes out of public API
Jan 27, 2025
bf6b155
format
Jan 27, 2025
c8b8731
support standard frames as well
Jan 27, 2025
9ff8052
format
Jan 27, 2025
6bfc088
Calculate func_index instead of adding an extra field to wasm frame
Jan 28, 2025
b6daacb
ignore frames with no function
Jan 28, 2025
5bfbfd5
update typo in the comment
Jan 28, 2025
478b373
update signature
Jan 28, 2025
b9039f9
Merge branch 'main' into godjan/iterate_callstack
Jan 28, 2025
fb6c05e
add correct frame size for aot standard frames
Jan 28, 2025
f7204bd
standard frame is not supported when GC is enabled
Jan 28, 2025
267379c
Merge branch 'main' into godjan/iterate_callstack
Feb 5, 2025
32338bb
Copy read only API behind a flag instead of using user defined callback
Feb 24, 2025
cc3f0a0
Cleaning up
Feb 24, 2025
188eb1c
remove unnecessary includes
Feb 25, 2025
857e6b7
formatting
Feb 26, 2025
a5d8c0b
define if not defined
Feb 26, 2025
99cb6ec
formatting
Feb 26, 2025
fc3077b
address comments
Feb 27, 2025
bda012e
formatting
Feb 27, 2025
0b5084c
remove spare diff line
Feb 27, 2025
bc00b3e
address comments
Mar 3, 2025
ffcc157
clang format
Mar 3, 2025
32d0f55
spare line
Mar 3, 2025
6166788
spare lines
Mar 3, 2025
56bb7e7
last fixes
Mar 5, 2025
811f35b
identation
Mar 5, 2025
e488345
fix bug for return value when skip_n is passed
Mar 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
define if not defined
  • Loading branch information
Georgii Rylov committed Feb 26, 2025
commit a5d8c0b477a9a9e57dfb7d1892b46bfee72baeab
4 changes: 4 additions & 0 deletions core/iwasm/common/wasm_runtime_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,10 @@ wasm_runtime_create_exec_env(WASMModuleInstanceCommon *module_inst,
WASM_RUNTIME_API_EXTERN void
wasm_runtime_destroy_exec_env(WASMExecEnv *exec_env);

#ifndef WAMR_ENABLE_COPY_CALLSTACK
#define WAMR_ENABLE_COPY_CALLSTACK 0
#endif

#if WAMR_ENABLE_COPY_CALLSTACK != 0
WASM_RUNTIME_API_EXTERN uint32_t
wasm_copy_callstack(const wasm_exec_env_t exec_env, wasm_frame_ptr_t buffer,
Expand Down
Loading