Home | History | Annotate | Download | only in coregrind

Lines Matching refs:VG_

40 #include "pub_core_seqmatch.h"     // VG_(string_match)
46 VexControl VG_(clo_vex_control);
47 Bool VG_(clo_error_limit) = True;
48 Int VG_(clo_error_exitcode) = 0;
49 Bool VG_(clo_db_attach) = False;
50 Char* VG_(clo_db_command) = GDB_PATH " -nw %f %p";
51 Int VG_(clo_gen_suppressions) = 0;
52 Int VG_(clo_sanity_level) = 1;
53 Int VG_(clo_verbosity) = 1;
54 Bool VG_(clo_stats) = False;
55 Bool VG_(clo_xml) = False;
56 HChar* VG_(clo_xml_user_comment) = NULL;
57 Bool VG_(clo_demangle) = True;
58 Bool VG_(clo_trace_children) = False;
59 HChar* VG_(clo_trace_children_skip) = NULL;
60 Bool VG_(clo_child_silent_after_fork) = False;
61 Char* VG_(clo_log_fname_expanded) = NULL;
62 Char* VG_(clo_xml_fname_expanded) = NULL;
63 Bool VG_(clo_time_stamp) = False;
64 Int VG_(clo_input_fd) = 0; /* stdin */
65 Int VG_(clo_n_suppressions) = 0;
66 Char* VG_(clo_suppressions)[VG_CLO_MAX_SFILES];
67 Int VG_(clo_n_fullpath_after) = 0;
68 Char* VG_(clo_fullpath_after)[VG_CLO_MAX_FULLPATH_AFTER];
69 UChar VG_(clo_trace_flags) = 0; // 00000000b
70 UChar VG_(clo_profile_flags) = 0; // 00000000b
71 Int VG_(clo_trace_notbelow) = 999999999;
72 Bool VG_(clo_trace_syscalls) = False;
73 Bool VG_(clo_trace_signals) = False;
74 Bool VG_(clo_trace_symtab) = False;
75 HChar* VG_(clo_trace_symtab_patt) = "*";
76 Bool VG_(clo_trace_cfi) = False;
77 Bool VG_(clo_debug_dump_syms) = False;
78 Bool VG_(clo_debug_dump_line) = False;
79 Bool VG_(clo_debug_dump_frames) = False;
80 Bool VG_(clo_trace_redir) = False;
81 Bool VG_(clo_trace_sched) = False;
82 Bool VG_(clo_profile_heap) = False;
83 Int VG_(clo_dump_error) = 0;
84 Int VG_(clo_backtrace_size) = 12;
85 Char* VG_(clo_sim_hints) = NULL;
86 Bool VG_(clo_sym_offsets) = False;
87 Bool VG_(clo_read_var_info) = False;
88 Int VG_(clo_n_req_tsyms) = 0;
89 HChar* VG_(clo_req_tsyms)[VG_CLO_MAX_REQ_TSYMS];
90 HChar* VG_(clo_require_text_symbol) = NULL;
91 Bool VG_(clo_run_libc_freeres) = True;
92 Bool VG_(clo_track_fds) = False;
93 Bool VG_(clo_show_below_main)= False;
94 Bool VG_(clo_show_emwarns) = False;
95 Word VG_(clo_max_stackframe) = 2000000;
96 Word VG_(clo_main_stacksize) = 0; /* use client's rlimit.stack */
97 Bool VG_(clo_wait_for_gdb) = False;
98 VgSmc VG_(clo_smc_check) = Vg_SmcStack;
99 HChar* VG_(clo_kernel_variant) = NULL;
100 Bool VG_(clo_dsymutil) = False;
101 Char* VG_(clo_memfs_malloc_path) = NULL;
102 Int VG_(clo_memfs_page_size) = 2048; /* 2M */
111 Char* VG_(expand_file_name)(Char* option_name, Char* format)
117 Bool ok = VG_(get_startup_wd)(base_dir, VKI_PATH_MAX);
122 VG_(fmsg)("%s: filename is empty", option_name);
131 VG_(fmsg)(
143 j += VG_(strlen)(base_dir);
147 len = j + VG_(strlen)(format) + 10;
148 out = VG_(malloc)( "options.efn.1", len );
150 VG_(strcpy)(out, base_dir);
157 out = VG_(realloc)("options.efn.2(multiple)", out, len); \
176 Int pid = VG_(getpid)();
178 j += VG_(sprintf)(&out[j], "%d", pid);
191 VG_(fmsg)("%s: malformed %%q specifier\n", option_name);
197 qual = VG_(getenv)(qualname);
199 VG_(fmsg)("%s: environment variable %s is not set\n",
210 ENSURE_THIS_MUCH_SPACE(VG_(strlen)(qual));
211 j += VG_(sprintf)(&out[j], "%s", qual);
213 VG_(fmsg)("%s: expected '{' after '%%q'\n", option_name);
219 VG_(fmsg)("%s: expected 'p' or 'q' or '%%' after '%%'\n",
232 VG_(malloc)( "options.efn.3",
233 VG_(strlen)(option_name) + VG_(strlen)(format) + 2 );
234 VG_(strcpy)(opt, option_name);
235 VG_(strcat)(opt, "=");
236 VG_(strcat)(opt, format);
237 VG_(fmsg_bad_option)(opt, "");
262 Bool VG_(should_we_trace_this_child) ( HChar* child_exe_name )
267 if (child_exe_name == NULL || VG_(strlen)(child_exe_name) == 0)
268 return VG_(clo_trace_children); // we know narfink
272 if (! VG_(clo_trace_children))
277 if (VG_(clo_trace_children_skip)) {
278 HChar const* last = VG_(clo_trace_children_skip);
289 so we can use VG_(string_match) on it. */
290 patt = VG_(calloc)("m_options.swttc.1", last - first + 1, 1);
291 VG_(memcpy)(patt, first, last - first);
293 matches = VG_(string_match)(patt, name);
294 VG_(free)(patt);