Files
wasmtime/crates
Jakub Konka 78772cf5e1 Generate trace logs in wiggle albeit behind a feature gate
This commit augments `wiggle` with trace log generation for the shims,
returned errno values, and returned values proper (if any, i.e.,
different than unit type `()`). What that means is that every syscall
will have auto-generated up to 3 traces, for instance,

```
 TRACE wasi_common::wasi::wasi_snapshot_preview1 > fd_prestat_get(fd=Fd(3))
 TRACE wasi_common::wasi::wasi_snapshot_preview1 >      | result=(buf=Dir(PrestatDir { pr_name_len: 1 }))
 TRACE wasi_common::wasi::wasi_snapshot_preview1 >      | errno=No error occurred. System call completed successfully. (Errno::Success(0))
```

Putting logging behind a feature gate in this case means that the log calls
are generated by the `wiggle` crate regardless if the client requested
the feature or not, however, then their usage in the client lib is
dictated by the presence of the feature flag. So, for instance, `wasi-common`
has this feature enabled by default, while any other client lib
using `wiggle` if they don't want tracing enabled, they will just
leave the feature off. I'm not sure if this is what we wanted
but seemed easiest to implement quickly. Lemme y'all know your thoughts
about this!
2020-03-30 19:58:15 +02:00
..
2020-03-26 21:53:42 -07:00
2020-03-26 21:53:42 -07:00
2020-03-26 21:53:42 -07:00
2020-03-26 21:53:42 -07:00
2020-03-26 21:53:42 -07:00
2020-03-26 21:53:42 -07:00
2020-03-26 21:53:42 -07:00
2020-03-26 21:53:42 -07:00
2020-03-26 21:53:42 -07:00
2020-03-26 21:53:42 -07:00
2020-03-26 21:53:42 -07:00