Home | History | Annotate | Download | only in binary_search_tool

Lines Matching refs:execargs

80 def log_to_file(path, execargs, link_from=None, link_to=None):
83 Log current working directory, current execargs, and a from-to relationship
87 log.write('cd: %s; %s\n' % (os.getcwd(), ' '.join(execargs)))
92 def exec_and_return(execargs):
95 Execute according to execargs and return immediately. Don't inspect
98 return subprocess.call(execargs)
124 def get_obj_path(execargs):
133 i = execargs.index('-o')
134 _ = execargs.index('-c')
138 obj_path = execargs[i + 1]
157 def get_dep_path(execargs):
164 if '-MD' not in execargs and '-MMD' not in execargs:
169 if '-MF' in execargs:
170 i = execargs.index('-MF')
171 dep_path = execargs[i + 1]
174 full_obj_path = get_obj_path(execargs)
181 def get_dwo_path(execargs):
188 if '-gsplit-dwarf' not in execargs:
191 full_obj_path = get_obj_path(execargs)
211 def get_side_effects(execargs):
220 full_dep_path = get_dep_path(execargs)
225 full_dwo_path = get_dwo_path(execargs)
232 def cache_file(execargs, bisect_dir, cache, abs_file_path):
236 execargs: compiler execution arguments.
248 log_to_file(pop_log, execargs, abs_file_path, bisect_path)
293 def bisect_populate(execargs, bisect_dir, population_name):
302 execargs: compiler execution arguments.
306 retval = exec_and_return(execargs)
310 full_obj_path = get_obj_path(execargs)
320 if not cache_file(execargs, bisect_dir, population_name, full_obj_path):
327 for side_effect in get_side_effects(execargs):
328 _ = cache_file(execargs, bisect_dir, population_name, side_effect)
333 def bisect_triage(execargs, bisect_dir):
343 execargs: compiler execution arguments.
346 full_obj_path = get_obj_path(execargs)
351 return exec_and_return(execargs)
358 log_to_file(log_file, execargs, '? compiler', full_obj_path)
359 return exec_and_return(execargs)
371 retval = exec_and_return(execargs)
380 for side_effect in get_side_effects(execargs):
391 def bisect_driver(bisect_stage, bisect_dir, execargs):
394 return bisect_populate(execargs, bisect_dir, GOOD_CACHE)
396 return bisect_populate(execargs, bisect_dir, BAD_CACHE)
398 return bisect_triage(execargs, bisect_dir)