11use crate :: executor:: valgrind:: helpers:: ignored_objects_path:: get_objects_path_to_ignore;
22use crate :: executor:: wall_time:: perf:: debug_info:: debug_info_by_path;
33use crate :: executor:: wall_time:: perf:: naming;
4- use crate :: executor:: wall_time:: perf:: parse_perf_file:: { MountedModule , ProcessUnwindData } ;
4+ use crate :: executor:: wall_time:: perf:: parse_perf_file:: MountedModule ;
55use crate :: prelude:: * ;
66use libc:: pid_t;
77use rayon:: prelude:: * ;
88use runner_shared:: debug_info:: { DebugInfoPidMapping , ModuleDebugInfo } ;
99use runner_shared:: perf_map:: ProcessModuleLoadBias ;
10- use runner_shared:: unwind_data:: { UnwindData , UnwindDataPidMapping } ;
10+ use runner_shared:: unwind_data:: { MappedProcessUnwindData , ProcessUnwindData , UnwindData } ;
1111use std:: collections:: HashMap ;
1212use std:: path:: { Path , PathBuf } ;
1313
1414pub struct SavedArtifacts {
1515 pub symbol_pid_mappings_by_pid : HashMap < pid_t , Vec < ProcessModuleLoadBias > > ,
1616 pub debug_info : HashMap < String , ModuleDebugInfo > ,
1717 pub debug_info_pid_mappings_by_pid : HashMap < pid_t , Vec < DebugInfoPidMapping > > ,
18- pub unwind_data_pid_mappings_by_pid : HashMap < pid_t , Vec < UnwindDataPidMapping > > ,
18+ pub unwind_data_pid_mappings_by_pid : HashMap < pid_t , Vec < MappedProcessUnwindData > > ,
1919 pub ignored_modules : Vec < ( String , u64 , u64 ) > ,
2020 pub key_to_path : HashMap < String , PathBuf > ,
2121}
@@ -182,7 +182,7 @@ fn save_unwind_data(
182182 mounted_modules_by_path : & HashMap < PathBuf , MountedModule > ,
183183 jit_unwind_data_by_pid : & HashMap < pid_t , Vec < ( UnwindData , ProcessUnwindData ) > > ,
184184 path_to_key : & mut HashMap < PathBuf , String > ,
185- ) -> HashMap < pid_t , Vec < UnwindDataPidMapping > > {
185+ ) -> HashMap < pid_t , Vec < MappedProcessUnwindData > > {
186186 let unwind_data_count = mounted_modules_by_path
187187 . values ( )
188188 . filter ( |m| m. unwind_data . is_some ( ) )
@@ -196,7 +196,7 @@ fn save_unwind_data(
196196 }
197197 } ) ;
198198
199- let mut mappings_by_pid: HashMap < pid_t , Vec < UnwindDataPidMapping > > = HashMap :: new ( ) ;
199+ let mut mappings_by_pid: HashMap < pid_t , Vec < MappedProcessUnwindData > > = HashMap :: new ( ) ;
200200 for ( path, m) in mounted_modules_by_path {
201201 if m. unwind_data . is_none ( ) {
202202 continue ;
@@ -207,11 +207,13 @@ fn save_unwind_data(
207207 mappings_by_pid
208208 . entry ( pid)
209209 . or_default ( )
210- . push ( UnwindDataPidMapping {
210+ . push ( MappedProcessUnwindData {
211211 unwind_data_key : key. clone ( ) ,
212- timestamp : pud. timestamp ,
213- avma_range : pud. avma_range . clone ( ) ,
214- base_avma : pud. base_avma ,
212+ inner : runner_shared:: unwind_data:: ProcessUnwindData {
213+ timestamp : pud. timestamp ,
214+ avma_range : pud. avma_range . clone ( ) ,
215+ base_avma : pud. base_avma ,
216+ } ,
215217 } ) ;
216218 }
217219 }
@@ -226,11 +228,13 @@ fn save_unwind_data(
226228 mappings_by_pid
227229 . entry ( pid)
228230 . or_default ( )
229- . push ( UnwindDataPidMapping {
231+ . push ( MappedProcessUnwindData {
230232 unwind_data_key : key,
231- timestamp : process_unwind_data. timestamp ,
232- avma_range : process_unwind_data. avma_range . clone ( ) ,
233- base_avma : process_unwind_data. base_avma ,
233+ inner : runner_shared:: unwind_data:: ProcessUnwindData {
234+ timestamp : process_unwind_data. timestamp ,
235+ avma_range : process_unwind_data. avma_range . clone ( ) ,
236+ base_avma : process_unwind_data. base_avma ,
237+ } ,
234238 } ) ;
235239 }
236240 }
0 commit comments