Home
last modified time | relevance | path

Searched refs:CLG_ (Results 1 – 17 of 17) sorted by relevance

/external/valgrind/callgrind/
Dthreads.c62 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
84 CLG_(current_tid) = VG_INVALID_THREADID; in CLG_()
88 void CLG_(forall_threads)(void (*func)(thread_info*)) in CLG_() function
90 Int t, orig_tid = CLG_(current_tid); in CLG_()
94 CLG_(switch_thread)(t); in CLG_()
97 CLG_(switch_thread)(orig_tid); in CLG_()
[all …]
Dcallstack.c46 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 …]
Dglobal.h666 #define fullOffset(group) (CLG_(sets).full->offset[group])
675 void CLG_(set_clo_defaults)(void);
676 void CLG_(update_fn_config)(fn_node*);
677 Bool CLG_(process_cmd_line_option)(const HChar*);
678 void CLG_(print_usage)(void);
679 void CLG_(print_debug_usage)(void);
682 void CLG_(init_eventsets)(void);
685 Bool CLG_(get_debug_info)(Addr, const HChar **dirname,
688 void CLG_(collectBlockInfo)(IRSB* bbIn, UInt*, UInt*, Bool*);
689 void CLG_(set_instrument_state)(const HChar*,Bool);
[all …]
Dbbcc.c43 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 …]
Dmain.c49 CommandLineOptions CLG_(clo);
50 Statistics CLG_(stat);
51 Bool CLG_(instrument_state) = True; /* Instrumentation on ? */
54 exec_state CLG_(current_state);
58 Int CLG_(min_line_size) = 0;
65 static void CLG_(init_statistics)(Statistics* s) in CLG_() function
115 CLG_(bb_base) + ii->instr_offset, ii->instr_size); in log_global_event()
117 if (!CLG_(current_state).collect) return; in log_global_event()
121 CLG_(current_state).cost[ fullOffset(EG_BUS) ]++; in log_global_event()
123 if (CLG_(current_state).nonskipped) in log_global_event()
[all …]
Devents.h36 #define CLG_(str) VGAPPEND(vgCallgrind_,str) macro
55 EventGroup* CLG_(register_event_group) (int id, const HChar*);
56 EventGroup* CLG_(register_event_group2)(int id, const HChar*, const HChar*);
57 EventGroup* CLG_(register_event_group3)(int id, const HChar*, const HChar*,
59 EventGroup* CLG_(register_event_group4)(int id, const HChar*, const HChar*,
61 EventGroup* CLG_(get_event_group)(int id);
75 EventSet* CLG_(get_event_set)(Int id);
76 EventSet* CLG_(get_event_set2)(Int id1, Int id2);
77 EventSet* CLG_(add_event_group)(EventSet*, Int id);
78 EventSet* CLG_(add_event_group2)(EventSet*, Int id1, Int id2);
[all …]
Dcontext.c39 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 …]
Dsim.c113 Addr CLG_(bb_base);
114 ULong* CLG_(cost_base);
859 idx, CLG_(bb_base) + current_ii->instr_offset, memline); in update_LL_use()
864 CLG_(current_state).collect, loaded->use_base); in update_LL_use()
866 if (CLG_(current_state).collect && loaded->use_base) { in update_LL_use()
876 loaded->iaddr = CLG_(bb_base) + current_ii->instr_offset; in update_LL_use()
877 loaded->use_base = (CLG_(current_state).nonskipped) ? in update_LL_use()
878 CLG_(current_state).nonskipped->skipped : in update_LL_use()
879 CLG_(cost_base) + current_ii->cost_offset; in update_LL_use()
947 cache->name, idx, CLG_(bb_base) + current_ii->instr_offset, memline, mask); \
[all …]
Ddump.c48 FullCost CLG_(total_cost) = 0;
51 EventMapping* CLG_(dumpmap) = 0;
53 Int CLG_(get_dump_counter)(void) in CLG_() function
84 dump_array_size = CLG_(stat).distinct_objs + in init_dump_array()
85 CLG_(stat).distinct_files + in init_dump_array()
86 CLG_(stat).distinct_fns + in init_dump_array()
87 CLG_(stat).context_counter; in init_dump_array()
92 file_dumped = obj_dumped + CLG_(stat).distinct_objs; in init_dump_array()
93 fn_dumped = file_dumped + CLG_(stat).distinct_files; in init_dump_array()
94 cxt_dumped = fn_dumped + CLG_(stat).distinct_fns; in init_dump_array()
[all …]
Dclo.c397 void CLG_(update_fn_config)(fn_node* fn) in CLG_() function
409 Bool CLG_(process_cmd_line_option)(const HChar* arg) in CLG_() function
413 if VG_BOOL_CLO(arg, "--skip-plt", CLG_(clo).skip_plt) {} in CLG_()
415 else if VG_BOOL_CLO(arg, "--collect-jumps", CLG_(clo).collect_jumps) {} in CLG_()
417 else if VG_BOOL_CLO(arg, "--trace-jump", CLG_(clo).collect_jumps) {} in CLG_()
419 else if VG_BOOL_CLO(arg, "--combine-dumps", CLG_(clo).combine_dumps) {} in CLG_()
421 else if VG_BOOL_CLO(arg, "--collect-atstart", CLG_(clo).collect_atstart) {} in CLG_()
423 else if VG_BOOL_CLO(arg, "--instr-atstart", CLG_(clo).instrument_atstart) {} in CLG_()
425 else if VG_BOOL_CLO(arg, "--separate-threads", CLG_(clo).separate_threads) {} in CLG_()
427 else if VG_BOOL_CLO(arg, "--compress-strings", CLG_(clo).compress_strings) {} in CLG_()
[all …]
Ddebug.c47 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 …]
Devents.c71 EventGroup* CLG_(register_event_group) (int id, const HChar* n1) in CLG_() function
79 EventGroup* CLG_(register_event_group2)(int id, const HChar* n1, in CLG_() function
89 EventGroup* CLG_(register_event_group3)(int id, const HChar* n1, in CLG_() function
100 EventGroup* CLG_(register_event_group4)(int id, const HChar* n1, in CLG_() function
113 EventGroup* CLG_(get_event_group)(int id) in CLG_() function
152 EventSet* CLG_(get_event_set)(Int id) in CLG_() function
158 EventSet* CLG_(get_event_set2)(Int id1, Int id2) in CLG_() function
165 EventSet* CLG_(add_event_group)(EventSet* es, Int id) in CLG_() function
172 EventSet* CLG_(add_event_group2)(EventSet* es, Int id1, Int id2) in CLG_() function
180 EventSet* CLG_(add_event_set)(EventSet* es1, EventSet* es2) in CLG_() function
[all …]
Dfn.c208 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
348 CLG_(stat).distinct_fns++; in new_fn_node()
349 fn->number = CLG_(stat).distinct_fns; in new_fn_node()
360 fn->pop_on_jump = CLG_(clo).pop_on_jump; in new_fn_node()
[all …]
Dcosts.c35 UInt CLG_(costarray_entries) = 0;
36 UInt CLG_(costarray_chunks) = 0;
40 ULong* CLG_(get_costarray)(Int size) in CLG_() function
61 CLG_(costarray_chunks)++; in CLG_()
67 CLG_(costarray_entries) += size; in CLG_()
Dbb.c38 void CLG_(init_bb_hash)() in CLG_() function
50 bb_hash* CLG_(get_bb_hash)() in CLG_() function
110 CLG_(stat).bb_hash_resizes++; in resize_bb_table()
156 CLG_(stat).distinct_bbs++; in new_bb()
163 CLG_(stat).distinct_bbs); in new_bb()
164 CLG_(print_bb)(0, bb); in new_bb()
169 CLG_(get_fn_node)(bb); in new_bb()
203 obj = CLG_(get_obj_node)( di ); in obj_of_address()
240 BB* CLG_(get_bb)(Addr addr, IRSB* bbIn, /*OUT*/ Bool *seen_before) in CLG_() function
254 CLG_(collectBlockInfo)(bbIn, &n_instrs, &n_jmps, &cjmp_inverted); in CLG_()
[all …]
Dcosts.h36 #define CLG_(str) VGAPPEND(vgCallgrind_,str) macro
38 extern UInt CLG_(costarray_entries);
39 extern UInt CLG_(costarray_chunks);
55 ULong* CLG_(get_costarray)(Int size);
Djumps.c39 void CLG_(init_jcc_hash)(jcc_hash* jccs) in CLG_() function
56 void CLG_(copy_current_jcc_hash)(jcc_hash* dst) in CLG_() function
66 void CLG_(set_current_jcc_hash)(jcc_hash* h) in CLG_() function
128 CLG_(stat).jcc_hash_resizes++; in resize_jcc_table()
174 CLG_(stat).distinct_jccs++; in new_jcc()
178 CLG_(stat).distinct_jccs, jcc); in new_jcc()
186 jCC* CLG_(get_jcc)(BBCC* from, UInt jmp, BBCC* to) in CLG_() function
209 CLG_(stat).jcc_lru_misses++; in CLG_()