wasmtime icon indicating copy to clipboard operation
wasmtime copied to clipboard

component HostFunc: add call hooks for calling and returning from host

Open pchickey opened this issue 2 years ago • 1 comments

This needs more fleshing out and testing.

Without this patch, @acfoltzer reported an unexpected trace when calling into a component:

#    7.148 p.v0 XQD| 2023-09-27T00:39:46.963691Z TRACE request{id=00000000-0000-0000-0000-000000000000}:service{sid=enabled}: xqd::guest::component: call_hook=CallingWasm\n
#    7.148 p.v0 XQD| 2023-09-27T00:39:46.964430Z TRACE request{id=00000000-0000-0000-0000-000000000000}:service{sid=enabled}: xqd::guest::component: call_hook=CallingWasm\n
#    7.148 p.v0 XQD| 2023-09-27T00:39:46.964485Z TRACE request{id=00000000-0000-0000-0000-000000000000}:service{sid=enabled}: xqd::guest::component: call_hook=ReturningFromWasm\n
#    7.148 p.v0 XQD| 2023-09-27T00:39:46.964932Z TRACE request{id=00000000-0000-0000-0000-000000000000}:service{sid=enabled}: xqd::guest::component: call_hook=ReturningFromWasm\n

pchickey avatar Sep 27 '23 04:09 pchickey

Subscribe to Label Action

cc @peterhuene

This issue or pull request has been labeled: "wasmtime:api"

Thus the following users have been cc'd because of the following labels:

  • peterhuene: wasmtime:api

To subscribe or unsubscribe from this label, edit the .github/subscribe-to-label.json configuration file.

Learn more.

github-actions[bot] avatar Sep 27 '23 06:09 github-actions[bot]

I forgot about this and I don't really think its critical, we can let someone re-open it if they need to.

pchickey avatar Mar 07 '24 23:03 pchickey