@@ -35,7 +35,7 @@ use crate::exit::out32;
35
35
36
36
impl GuestHandle {
37
37
/// Get user memory region as bytes.
38
- #[ hyperlight_guest_tracing_macro :: trace_function]
38
+ #[ hyperlight_guest_tracing :: trace_function]
39
39
pub fn read_n_bytes_from_user_memory ( & self , num : u64 ) -> Result < Vec < u8 > > {
40
40
let peb_ptr = self . peb ( ) . unwrap ( ) ;
41
41
let user_memory_region_ptr = unsafe { ( * peb_ptr) . init_data . ptr as * mut u8 } ;
@@ -64,7 +64,7 @@ impl GuestHandle {
64
64
///
65
65
/// When calling `call_host_function<T>`, this function is called
66
66
/// internally to get the return value.
67
- #[ hyperlight_guest_tracing_macro :: trace_function]
67
+ #[ hyperlight_guest_tracing :: trace_function]
68
68
pub fn get_host_return_value < T : TryFrom < ReturnValue > > ( & self ) -> Result < T > {
69
69
let return_value = self
70
70
. try_pop_shared_input_data_into :: < ReturnValue > ( )
@@ -85,7 +85,7 @@ impl GuestHandle {
85
85
///
86
86
/// Note: The function return value must be obtained by calling
87
87
/// `get_host_return_value`.
88
- #[ hyperlight_guest_tracing_macro :: trace_function]
88
+ #[ hyperlight_guest_tracing :: trace_function]
89
89
pub fn call_host_function_without_returning_result (
90
90
& self ,
91
91
function_name : & str ,
@@ -117,7 +117,7 @@ impl GuestHandle {
117
117
/// sends it to the host, and then retrieves the return value.
118
118
///
119
119
/// The return value is deserialized into the specified type `T`.
120
- #[ hyperlight_guest_tracing_macro :: trace_function]
120
+ #[ hyperlight_guest_tracing :: trace_function]
121
121
pub fn call_host_function < T : TryFrom < ReturnValue > > (
122
122
& self ,
123
123
function_name : & str ,
@@ -128,7 +128,7 @@ impl GuestHandle {
128
128
self . get_host_return_value :: < T > ( )
129
129
}
130
130
131
- #[ hyperlight_guest_tracing_macro :: trace_function]
131
+ #[ hyperlight_guest_tracing :: trace_function]
132
132
pub fn get_host_function_details ( & self ) -> HostFunctionDetails {
133
133
let peb_ptr = self . peb ( ) . unwrap ( ) ;
134
134
let host_function_details_buffer =
@@ -145,7 +145,7 @@ impl GuestHandle {
145
145
}
146
146
147
147
/// Write an error to the shared output data buffer.
148
- #[ hyperlight_guest_tracing_macro :: trace_function]
148
+ #[ hyperlight_guest_tracing :: trace_function]
149
149
pub fn write_error ( & self , error_code : ErrorCode , message : Option < & str > ) {
150
150
let guest_error: GuestError = GuestError :: new (
151
151
error_code,
@@ -161,7 +161,7 @@ impl GuestHandle {
161
161
}
162
162
163
163
/// Log a message with the specified log level, source, caller, source file, and line number.
164
- #[ hyperlight_guest_tracing_macro :: trace_function]
164
+ #[ hyperlight_guest_tracing :: trace_function]
165
165
pub fn log_message (
166
166
& self ,
167
167
log_level : LogLevel ,
0 commit comments