Home
last modified time | relevance | path

Searched refs:thread_sync (Results 1 – 4 of 4) sorted by relevance

/external/perfetto/src/traced/probes/ftrace/
Dftrace_controller.cc166 FtraceThreadSync* thread_sync) { in OnCpuReaderRead() argument
170 std::lock_guard<std::mutex> lock(thread_sync->mutex); in OnCpuReaderRead()
173 bool post_drain_task = thread_sync->cpus_to_drain.none(); in OnCpuReaderRead()
174 thread_sync->cpus_to_drain[cpu] = true; in OnCpuReaderRead()
179 base::WeakPtr<FtraceController> weak_ctl = thread_sync->trace_controller_weak; in OnCpuReaderRead()
180 base::TaskRunner* task_runner = thread_sync->task_runner; in OnCpuReaderRead()
203 FtraceThreadSync* thread_sync) { in OnCpuReaderFlush() argument
208 std::lock_guard<std::mutex> lock(thread_sync->mutex); in OnCpuReaderFlush()
209 thread_sync->cpus_to_drain[cpu] = true; in OnCpuReaderFlush()
210 thread_sync->flush_acks[cpu] = true; in OnCpuReaderFlush()
[all …]
Dcpu_reader.cc152 FtraceThreadSync* thread_sync, in CpuReader() argument
157 thread_sync_(thread_sync), in CpuReader()
219 FtraceThreadSync* thread_sync, in RunWorkerThread() argument
326 std::unique_lock<std::mutex> lock(thread_sync->mutex); in RunWorkerThread()
327 while (thread_sync->cmd_id == last_cmd_id) in RunWorkerThread()
328 thread_sync->cond.wait(lock); in RunWorkerThread()
329 cmd = thread_sync->cmd; in RunWorkerThread()
330 last_cmd_id = thread_sync->cmd_id; in RunWorkerThread()
371 FtraceController::OnCpuReaderRead(cpu, generation, thread_sync); in RunWorkerThread()
381 FtraceController::OnCpuReaderFlush(cpu, generation, thread_sync); in RunWorkerThread()
[all …]
Dftrace_controller_unittest.cc229 auto* thread_sync = &thread_sync_; in GetDataAvailableCallback() local
230 return [cpu, generation, thread_sync] { in GetDataAvailableCallback()
231 FtraceController::OnCpuReaderRead(cpu, generation, thread_sync); in GetDataAvailableCallback()
/external/virglrenderer/src/
Dvrend_renderer.c5005 static int thread_sync(UNUSED void *arg) in thread_sync() function
5066 vrend_state.sync_thread = pipe_thread_create(thread_sync, NULL); in vrend_renderer_use_threaded_sync()