Home | History | Annotate | Download | only in coregrind

Lines Matching refs:VG_

40 #include "pub_core_seqmatch.h"     // VG_(string_match)
48 VexControl VG_(clo_vex_control);
49 VexRegisterUpdates VG_(clo_px_file_backed) = VexRegUpd_INVALID;
51 Bool VG_(clo_error_limit) = True;
52 Int VG_(clo_error_exitcode) = 0;
53 HChar *VG_(clo_error_markers)[2] = {NULL, NULL};
59 VgVgdb VG_(clo_vgdb) = Vg_VgdbNo; // currently disabled on Android
61 VgVgdb VG_(clo_vgdb) = Vg_VgdbYes;
63 Int VG_(clo_vgdb_poll) = 5000;
64 Int VG_(clo_vgdb_error) = 999999999;
65 UInt VG_(clo_vgdb_stop_at) = 0;
66 const HChar *VG_(clo_vgdb_prefix) = NULL;
67 const HChar *VG_(arg_vgdb_prefix) = NULL;
68 Bool VG_(clo_vgdb_shadow_registers) = False;
70 Bool VG_(clo_db_attach) = False;
71 const HChar* VG_(clo_db_command) = GDB_PATH " -nw %f %p";
72 Int VG_(clo_gen_suppressions) = 0;
73 Int VG_(clo_sanity_level) = 1;
74 Int VG_(clo_verbosity) = 1;
75 Bool VG_(clo_stats) = False;
76 Bool VG_(clo_xml) = False;
77 const HChar* VG_(clo_xml_user_comment) = NULL;
78 Bool VG_(clo_demangle) = True;
79 const HChar* VG_(clo_soname_synonyms) = NULL;
80 Bool VG_(clo_trace_children) = False;
81 const HChar* VG_(clo_trace_children_skip) = NULL;
82 const HChar* VG_(clo_trace_children_skip_by_arg) = NULL;
83 Bool VG_(clo_child_silent_after_fork) = False;
84 const HChar* VG_(clo_log_fname_expanded) = NULL;
85 const HChar* VG_(clo_xml_fname_expanded) = NULL;
86 Bool VG_(clo_time_stamp) = False;
87 Int VG_(clo_input_fd) = 0; /* stdin */
88 Bool VG_(clo_default_supp) = True;
89 XArray *VG_(clo_suppressions); // array of strings
90 XArray *VG_(clo_fullpath_after); // array of strings
91 const HChar* VG_(clo_extra_debuginfo_path) = NULL;
92 const HChar* VG_(clo_debuginfo_server) = NULL;
93 Bool VG_(clo_allow_mismatched_debuginfo) = False;
94 UChar VG_(clo_trace_flags) = 0; // 00000000b
95 Bool VG_(clo_profyle_sbs) = False;
96 UChar VG_(clo_profyle_flags) = 0; // 00000000b
97 ULong VG_(clo_profyle_interval) = 0;
98 Int VG_(clo_trace_notbelow) = -1; // unspecified
99 Int VG_(clo_trace_notabove) = -1; // unspecified
100 Bool VG_(clo_trace_syscalls) = False;
101 Bool VG_(clo_trace_signals) = False;
102 Bool VG_(clo_trace_symtab) = False;
103 const HChar* VG_(clo_trace_symtab_patt) = "*";
104 Bool VG_(clo_trace_cfi) = False;
105 Bool VG_(clo_debug_dump_syms) = False;
106 Bool VG_(clo_debug_dump_line) = False;
107 Bool VG_(clo_debug_dump_frames) = False;
108 Bool VG_(clo_trace_redir) = False;
110 VG_(clo_fair_sched) = disable_fair_sched;
111 Bool VG_(clo_trace_sched) = False;
112 Bool VG_(clo_profile_heap) = False;
113 Int VG_(clo_core_redzone_size) = CORE_REDZONE_DEFAULT_SZB;
115 // VG_(needs_malloc_replacement).tool_client_redzone_szB
116 Int VG_(clo_redzone_size) = -1;
117 Int VG_(clo_dump_error) = 0;
118 Int VG_(clo_backtrace_size) = 12;
119 Int VG_(clo_merge_recursive_frames) = 0; // default value: no merge
120 UInt VG_(clo_sim_hints) = 0;
121 Bool VG_(clo_sym_offsets) = False;
122 Bool VG_(clo_read_inline_info) = False; // Or should be put it to True by default ???
123 Bool VG_(clo_read_var_info) = False;
124 XArray *VG_(clo_req_tsyms); // array of strings
125 Bool VG_(clo_run_libc_freeres) = True;
126 Bool VG_(clo_track_fds) = False;
127 Bool VG_(clo_show_below_main)= False;
128 Bool VG_(clo_show_emwarns) = False;
129 Word VG_(clo_max_stackframe) = 2000000;
130 UInt VG_(clo_max_threads) = MAX_THREADS_DEFAULT;
131 Word VG_(clo_main_stacksize) = 0; /* use client's rlimit.stack */
132 Word VG_(clo_valgrind_stacksize) = VG_DEFAULT_STACK_ACTIVE_SZB;
133 Bool VG_(clo_wait_for_gdb) = False;
134 VgSmc VG_(clo_smc_check) = Vg_SmcStack;
135 UInt VG_(clo_kernel_variant) = 0;
136 Bool VG_(clo_dsymutil) = False;
137 Bool VG_(clo_sigill_diag) = True;
138 UInt VG_(clo_unw_stack_scan_thresh) = 0; /* disabled by default */
139 UInt VG_(clo_unw_stack_scan_frames) = 5;
142 UInt VG_(clo_resync_filter) = 1; /* enabled, but quiet */
144 UInt VG_(clo_resync_filter) = 0; /* disabled */
154 HChar* VG_(expand_file_name)(const HChar* option_name, const HChar* format)
161 base_dir = VG_(get_startup_wd)();
182 len = VG_(strlen)(format) + 1;
183 out = VG_(malloc)( "options.efn.1", len );
188 out = VG_(realloc)("options.efn.2(multiple)", out, len); \
207 Int pid = VG_(getpid)();
209 j += VG_(sprintf)(&out[j], "%d", pid);
225 VG_(strncpy)(qualname, format + begin_qualname,
228 qual = VG_(getenv)(qualname);
231 // VG_(fmsg_bad_option) will terminate the process.
232 HChar *str = VG_(malloc)("options.efn.3",
234 VG_(sprintf)(str,
245 ENSURE_THIS_MUCH_SPACE(VG_(strlen)(qual));
246 j += VG_(sprintf)(&out[j], "%s", qual);
264 len = VG_(strlen)(base_dir) + 1 + VG_(strlen)(out) + 1;
266 HChar *absout = VG_(malloc)("options.efn.4", len);
267 VG_(strcpy)(absout, base_dir);
268 VG_(strcat)(absout, "/");
269 VG_(strcat)(absout, out);
270 VG_(free)(out);
279 HChar opt[VG_(strlen)(option_name) + VG_(strlen)(format) + 2];
280 VG_(sprintf)(opt, "%s=%s", option_name, format);
281 VG_(fmsg_bad_option)(opt, "%s", message);
309 Bool VG_(should_we_trace_this_child) ( const HChar* child_exe_name,
315 if (child_exe_name == NULL || VG_(strlen)(child_exe_name) == 0)
316 return VG_(clo_trace_children); // we know narfink
319 if (! VG_(clo_trace_children))
325 if (VG_(clo_trace_children_skip)) {
326 HChar const* last = VG_(clo_trace_children_skip);
337 so we can use VG_(string_match) on it. */
338 patt = VG_(calloc)("m_options.swttc.1", last - first + 1, 1);
339 VG_(memcpy)(patt, first, last - first);
341 matches = VG_(string_match)(patt, name);
342 VG_(free)(patt);
350 if (VG_(clo_trace_children_skip_by_arg) && child_argv != NULL) {
351 HChar const* last = VG_(clo_trace_children_skip_by_arg);
362 so we can use VG_(string_match) on it. */
363 patt = VG_(calloc)("m_options.swttc.1", last - first + 1, 1);
364 VG_(memcpy)(patt, first, last - first);
367 matches = VG_(string_match)(patt, child_argv[i]);
369 VG_(free)(patt);
373 VG_(free)(patt);