• Home
  • Raw
  • Download

Lines Matching refs:Job

134     auto Job = new FuzzJob;  in CreateNewJob()  local
145 Job->DftTimeInSeconds = duration_cast<seconds>(Time2 - Time1).count(); in CreateNewJob()
148 Job->SeedListPath = in CreateNewJob()
150 WriteToFile(Seeds, Job->SeedListPath); in CreateNewJob()
151 Cmd.addFlag("seed_inputs", "@" + Job->SeedListPath); in CreateNewJob()
153 Job->LogPath = DirPlusFile(TempDir, std::to_string(JobId) + ".log"); in CreateNewJob()
154 Job->CorpusDir = DirPlusFile(TempDir, "C" + std::to_string(JobId)); in CreateNewJob()
155 Job->FeaturesDir = DirPlusFile(TempDir, "F" + std::to_string(JobId)); in CreateNewJob()
156 Job->CFPath = DirPlusFile(TempDir, std::to_string(JobId) + ".merge"); in CreateNewJob()
157 Job->JobId = JobId; in CreateNewJob()
160 Cmd.addArgument(Job->CorpusDir); in CreateNewJob()
161 Cmd.addFlag("features_dir", Job->FeaturesDir); in CreateNewJob()
163 for (auto &D : {Job->CorpusDir, Job->FeaturesDir}) { in CreateNewJob()
168 Cmd.setOutputFile(Job->LogPath); in CreateNewJob()
171 Job->Cmd = Cmd; in CreateNewJob()
174 Printf("Job %zd/%p Created: %s\n", JobId, Job, in CreateNewJob()
175 Job->Cmd.toString().c_str()); in CreateNewJob()
177 return Job; in CreateNewJob()
180 void RunOneMergeJob(FuzzJob *Job) { in RunOneMergeJob()
181 auto Stats = ParseFinalStatsFromLog(Job->LogPath); in RunOneMergeJob()
187 GetSizedFilesFromDir(Job->CorpusDir, &TempFiles); in RunOneMergeJob()
191 FeatureFile.replace(0, Job->CorpusDir.size(), Job->FeaturesDir); in RunOneMergeJob()
208 secondsSinceProcessStartUp(), Job->JobId, Job->DftTimeInSeconds); in RunOneMergeJob()
215 &NewFeatures, Cov, &NewCov, Job->CFPath, false); in RunOneMergeJob()
256 void Push(FuzzJob *Job) { in Push()
259 Qu.push(Job); in Push()
268 auto Job = Qu.front(); in Pop() local
270 return Job; in Pop()
275 while (auto Job = FuzzQ->Pop()) { in WorkerThread() local
277 Job->ExitCode = ExecuteCommand(Job->Cmd); in WorkerThread()
278 MergeQ->Push(Job); in WorkerThread()
343 std::unique_ptr<FuzzJob> Job(MergeQ.Pop()); in FuzzWithFork() local
344 if (!Job) in FuzzWithFork()
346 ExitCode = Job->ExitCode; in FuzzWithFork()
354 Env.RunOneMergeJob(Job.get()); in FuzzWithFork()
364 std::ifstream In(Job->LogPath); in FuzzWithFork()
373 FileToString(Job->LogPath).c_str()); in FuzzWithFork()