/external/valgrind/main/callgrind/ |
D | threads.c | 62 ThreadId CLG_(current_tid); 66 thread_info** CLG_(get_threads)() in CLG_() function 71 thread_info* CLG_(get_current_thread)() in CLG_() function 73 return thread[CLG_(current_tid)]; in CLG_() 76 void CLG_(init_threads)() in CLG_() function 81 CLG_(current_tid) = VG_INVALID_THREADID; in CLG_() 85 void CLG_(forall_threads)(void (*func)(thread_info*)) in CLG_() function 87 Int t, orig_tid = CLG_(current_tid); in CLG_() 91 CLG_(switch_thread)(t); in CLG_() 94 CLG_(switch_thread)(orig_tid); in CLG_() [all …]
|
D | callstack.c | 46 call_stack CLG_(current_call_stack); 48 void CLG_(init_call_stack)(call_stack* s) in CLG_() function 63 call_entry* CLG_(get_call_entry)(Int sp) in CLG_() function 65 CLG_ASSERT(sp <= CLG_(current_call_stack).sp); in CLG_() 66 return &(CLG_(current_call_stack).entry[sp]); in CLG_() 69 void CLG_(copy_current_call_stack)(call_stack* dst) in CLG_() function 73 dst->size = CLG_(current_call_stack).size; in CLG_() 74 dst->entry = CLG_(current_call_stack).entry; in CLG_() 75 dst->sp = CLG_(current_call_stack).sp; in CLG_() 78 void CLG_(set_current_call_stack)(call_stack* s) in CLG_() function [all …]
|
D | global.h | 678 extern Addr CLG_(bb_base); 679 extern ULong* CLG_(cost_base); 695 extern struct event_sets CLG_(sets); 697 #define fullOffset(group) (CLG_(sets).full->offset[group]) 706 void CLG_(set_clo_defaults)(void); 707 void CLG_(update_fn_config)(fn_node*); 708 Bool CLG_(process_cmd_line_option)(Char*); 709 void CLG_(print_usage)(void); 710 void CLG_(print_debug_usage)(void); 713 extern struct cachesim_if CLG_(cachesim); [all …]
|
D | bbcc.c | 43 void CLG_(init_bbcc_hash)(bbcc_hash* bbccs) in CLG_() function 57 void CLG_(copy_current_bbcc_hash)(bbcc_hash* dst) in CLG_() function 66 bbcc_hash* CLG_(get_current_bbcc_hash)() in CLG_() function 71 void CLG_(set_current_bbcc_hash)(bbcc_hash* h) in CLG_() function 83 void CLG_(zero_bbcc)(BBCC* bbcc) in CLG_() function 104 CLG_(init_cost)( CLG_(sets).full, jcc->cost ); in CLG_() 112 void CLG_(forall_bbccs)(void (*func)(BBCC*)) in CLG_() function 164 if (!CLG_(clo).separate_threads) { in lookup_bbcc() 168 if (bbcc->tid == CLG_(current_tid)) return bbcc; in lookup_bbcc() 171 CLG_(stat).bbcc_lru_misses++; in lookup_bbcc() [all …]
|
D | events.h | 36 #define CLG_(str) VGAPPEND(vgCallgrind_,str) macro 55 EventGroup* CLG_(register_event_group) (int id, Char*); 56 EventGroup* CLG_(register_event_group2)(int id, Char*, Char*); 57 EventGroup* CLG_(register_event_group3)(int id, Char*, Char*, Char*); 58 EventGroup* CLG_(register_event_group4)(int id, Char*, Char*, Char*, Char*); 59 EventGroup* CLG_(get_event_group)(int id); 73 EventSet* CLG_(get_event_set)(Int id); 74 EventSet* CLG_(get_event_set2)(Int id1, Int id2); 75 EventSet* CLG_(get_event_set3)(Int id1, Int id2, Int id3); 76 EventSet* CLG_(add_event_group)(EventSet*, Int id); [all …]
|
D | main.c | 47 CommandLineOptions CLG_(clo); 48 Statistics CLG_(stat); 49 Bool CLG_(instrument_state) = True; /* Instrumentation on ? */ 52 exec_state CLG_(current_state); 59 static void CLG_(init_statistics)(Statistics* s) in CLG_() function 109 CLG_(bb_base) + ii->instr_offset, ii->instr_size); in log_global_event() 111 if (!CLG_(current_state).collect) return; in log_global_event() 115 CLG_(current_state).cost[ fullOffset(EG_BUS) ]++; in log_global_event() 117 if (CLG_(current_state).nonskipped) in log_global_event() 118 cost_Bus = CLG_(current_state).nonskipped->skipped + fullOffset(EG_BUS); in log_global_event() [all …]
|
D | context.c | 39 fn_stack CLG_(current_fn_stack); 41 void CLG_(init_fn_stack)(fn_stack* s) in CLG_() function 52 void CLG_(copy_current_fn_stack)(fn_stack* dst) in CLG_() function 56 dst->size = CLG_(current_fn_stack).size; in CLG_() 57 dst->bottom = CLG_(current_fn_stack).bottom; in CLG_() 58 dst->top = CLG_(current_fn_stack).top; in CLG_() 61 void CLG_(set_current_fn_stack)(fn_stack* s) in CLG_() function 65 CLG_(current_fn_stack).size = s->size; in CLG_() 66 CLG_(current_fn_stack).bottom = s->bottom; in CLG_() 67 CLG_(current_fn_stack).top = s->top; in CLG_() [all …]
|
D | clo.c | 396 void CLG_(update_fn_config)(fn_node* fn) in CLG_() function 408 Bool CLG_(process_cmd_line_option)(Char* arg) in CLG_() function 412 if VG_BOOL_CLO(arg, "--skip-plt", CLG_(clo).skip_plt) {} in CLG_() 414 else if VG_BOOL_CLO(arg, "--collect-jumps", CLG_(clo).collect_jumps) {} in CLG_() 416 else if VG_BOOL_CLO(arg, "--trace-jump", CLG_(clo).collect_jumps) {} in CLG_() 418 else if VG_BOOL_CLO(arg, "--combine-dumps", CLG_(clo).combine_dumps) {} in CLG_() 420 else if VG_BOOL_CLO(arg, "--collect-atstart", CLG_(clo).collect_atstart) {} in CLG_() 422 else if VG_BOOL_CLO(arg, "--instr-atstart", CLG_(clo).instrument_atstart) {} in CLG_() 424 else if VG_BOOL_CLO(arg, "--separate-threads", CLG_(clo).separate_threads) {} in CLG_() 426 else if VG_BOOL_CLO(arg, "--compress-strings", CLG_(clo).compress_strings) {} in CLG_() [all …]
|
D | sim.c | 113 Addr CLG_(bb_base); 114 ULong* CLG_(cost_base); 847 idx, CLG_(bb_base) + current_ii->instr_offset, memline); in update_LL_use() 852 CLG_(current_state).collect, loaded->use_base); in update_LL_use() 854 if (CLG_(current_state).collect && loaded->use_base) { in update_LL_use() 864 loaded->iaddr = CLG_(bb_base) + current_ii->instr_offset; in update_LL_use() 865 loaded->use_base = (CLG_(current_state).nonskipped) ? in update_LL_use() 866 CLG_(current_state).nonskipped->skipped : in update_LL_use() 867 CLG_(cost_base) + current_ii->cost_offset; in update_LL_use() 935 cache->name, idx, CLG_(bb_base) + current_ii->instr_offset, memline, mask); \ [all …]
|
D | debug.c | 47 void CLG_(print_bb)(int s, BB* bb) in CLG_() function 75 void CLG_(print_cxt)(int s, Context* cxt, int rec_index) in CLG_() function 83 UInt *pactive = CLG_(get_fn_entry)(cxt->fn[0]->number); in CLG_() 97 void CLG_(print_execstate)(int s, exec_state* es) in CLG_() function 115 void CLG_(print_bbcc)(int s, BBCC* bbcc) in CLG_() function 135 CLG_(print_cxt)(s+8, bbcc->cxt, bbcc->rec_index); in CLG_() 138 void CLG_(print_eventset)(int s, EventSet* es) in CLG_() function 164 eg = CLG_(get_event_group)(i); in CLG_() 175 void CLG_(print_cost)(int s, EventSet* es, ULong* c) in CLG_() function 205 eg = CLG_(get_event_group)(i); in CLG_() [all …]
|
D | command.c | 65 dir = CLG_(get_out_directory)(); in setup_control() 66 out_file = CLG_(get_out_file)(); in setup_control() 152 void CLG_(init_command)() in CLG_() function 158 void CLG_(finish_command)() in CLG_() function 229 int t = CLG_(current_tid); in dump_state_of_thread() 236 CLG_(init_cost_lz)( CLG_(sets).full, &sum ); in dump_state_of_thread() 237 CLG_(copy_cost_lz)( CLG_(sets).full, &tmp, ti->lastdump_cost ); in dump_state_of_thread() 238 CLG_(add_diff_cost)( CLG_(sets).full, sum, in dump_state_of_thread() 241 CLG_(copy_cost)( CLG_(sets).full, ti->lastdump_cost, tmp ); in dump_state_of_thread() 242 p += CLG_(sprint_mappingcost)(buf + p, CLG_(dumpmap), sum); in dump_state_of_thread() [all …]
|
D | dump.c | 49 FullCost CLG_(total_cost) = 0; 52 EventMapping* CLG_(dumpmap) = 0; 60 Int CLG_(get_dump_counter)(void) in CLG_() function 65 Char* CLG_(get_out_file)() in CLG_() function 67 CLG_(init_dumps)(); in CLG_() 71 Char* CLG_(get_out_directory)() in CLG_() function 73 CLG_(init_dumps)(); in CLG_() 103 dump_array_size = CLG_(stat).distinct_objs + in init_dump_array() 104 CLG_(stat).distinct_files + in init_dump_array() 105 CLG_(stat).distinct_fns + in init_dump_array() [all …]
|
D | events.c | 71 EventGroup* CLG_(register_event_group) (int id, Char* n1) in CLG_() function 79 EventGroup* CLG_(register_event_group2)(int id, Char* n1, Char* n2) in CLG_() function 88 EventGroup* CLG_(register_event_group3)(int id, Char* n1, Char* n2, Char* n3) in CLG_() function 98 EventGroup* CLG_(register_event_group4)(int id, in CLG_() function 110 EventGroup* CLG_(get_event_group)(int id) in CLG_() function 149 EventSet* CLG_(get_event_set)(Int id) in CLG_() function 155 EventSet* CLG_(get_event_set2)(Int id1, Int id2) in CLG_() function 162 EventSet* CLG_(get_event_set3)(Int id1, Int id2, Int id3) in CLG_() function 170 EventSet* CLG_(add_event_group)(EventSet* es, Int id) in CLG_() function 177 EventSet* CLG_(add_event_group2)(EventSet* es, Int id1, Int id2) in CLG_() function [all …]
|
D | fn.c | 208 void CLG_(init_obj_table)() in CLG_() function 241 CLG_(stat).distinct_objs ++; in new_obj_node() 242 obj->number = CLG_(stat).distinct_objs; in new_obj_node() 264 obj_node* CLG_(get_obj_node)(DebugInfo* di) in CLG_() function 299 CLG_(stat).distinct_files++; in new_file_node() 300 file->number = CLG_(stat).distinct_files; in new_file_node() 307 file_node* CLG_(get_file_node)(obj_node* curr_obj_node, in CLG_() function 340 CLG_(stat).distinct_fns++; in new_fn_node() 341 fn->number = CLG_(stat).distinct_fns; in new_fn_node() 352 fn->pop_on_jump = CLG_(clo).pop_on_jump; in new_fn_node() [all …]
|
D | costs.c | 35 UInt CLG_(costarray_entries) = 0; 36 UInt CLG_(costarray_chunks) = 0; 40 ULong* CLG_(get_costarray)(Int size) in CLG_() function 59 CLG_(costarray_chunks)++; in CLG_() 65 CLG_(costarray_entries) += size; in CLG_() 70 void CLG_(free_costarrays)() in CLG_() function
|
D | costs.h | 12 #define CLG_(str) VGAPPEND(vgCallgrind_,str) macro 14 extern UInt CLG_(costarray_entries); 15 extern UInt CLG_(costarray_chunks); 31 ULong* CLG_(get_costarray)(Int size); 32 void CLG_(free_costarrays)(void);
|
D | bb.c | 38 void CLG_(init_bb_hash)() in CLG_() function 50 bb_hash* CLG_(get_bb_hash)() in CLG_() function 112 CLG_(stat).bb_hash_resizes++; in resize_bb_table() 158 CLG_(stat).distinct_bbs++; in new_bb() 165 CLG_(stat).distinct_bbs); in new_bb() 166 CLG_(print_bb)(0, bb); in new_bb() 171 CLG_(get_fn_node)(bb); in new_bb() 205 obj = CLG_(get_obj_node)( di ); in obj_of_address() 242 BB* CLG_(get_bb)(Addr addr, IRSB* bbIn, /*OUT*/ Bool *seen_before) in CLG_() function 256 CLG_(collectBlockInfo)(bbIn, &n_instrs, &n_jmps, &cjmp_inverted); in CLG_() [all …]
|
D | jumps.c | 41 void CLG_(init_jcc_hash)(jcc_hash* jccs) in CLG_() function 58 void CLG_(copy_current_jcc_hash)(jcc_hash* dst) in CLG_() function 68 void CLG_(set_current_jcc_hash)(jcc_hash* h) in CLG_() function 132 CLG_(stat).jcc_hash_resizes++; in resize_jcc_table() 178 CLG_(stat).distinct_jccs++; in new_jcc() 182 CLG_(stat).distinct_jccs, jcc); in new_jcc() 190 jCC* CLG_(get_jcc)(BBCC* from, UInt jmp, BBCC* to) in CLG_() function 213 CLG_(stat).jcc_lru_misses++; in CLG_()
|