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

Trace system calls #2763

Closed
Nav196 opened this issue Jan 21, 2022 · 3 comments
Closed

Trace system calls #2763

Nav196 opened this issue Jan 21, 2022 · 3 comments
Labels
❓ question I've a question!

Comments

@Nav196
Copy link

Nav196 commented Jan 21, 2022

Is there a way to trace the system calls or ABI calls made by the app running in the wasmer runtime?
If there isn't a built solution in wasmer, how can i do that ?

I've tried to search a solution for that but didn't find it yet.
Thanks in advance.

@Nav196 Nav196 added the ❓ question I've a question! label Jan 21, 2022
@Nav196 Nav196 changed the title Track system calls Trace system calls Jan 21, 2022
@Nav196
Copy link
Author

Nav196 commented Jan 24, 2022

What is the current status of this?

#827
#1182
#1210
#2619
#2152

Is wasmer able to trace (2152) ?
Thanks in advance.

@jcaesar
Copy link
Contributor

jcaesar commented Jan 26, 2022

You can get a wasmer run --debug flag that will output wasi-syscall related information, but you'll have to compile yourself to enable the optional feature.

$ cargo install wasmer-cli --features singlepass,cranelift,debug

@Nav196
Copy link
Author

Nav196 commented Jan 28, 2022

Thanks a lot for your help.
You have solved my issue, it's awesome.

@Amanieu Amanieu closed this as completed Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❓ question I've a question!
Projects
None yet
Development

No branches or pull requests

3 participants