/external/tensorflow/tensorflow/lite/experimental/ruy/ |
D | trace.cc | 49 std::uint16_t thread_id = 0; member 116 fprintf(trace_file, "ThreadStart: %lld, %d\n", time, entry.thread_id); in Dump() 120 entry.thread_id); in Dump() 123 fprintf(trace_file, "ThreadEnd: %lld, %d\n", time, entry.thread_id); in Dump() 133 entry.thread_id, block_id, block[Side::kLhs], block[Side::kRhs], in Dump() 143 entry.thread_id, block, start, end); in Dump() 151 entry.thread_id, block, start, end); in Dump() 159 entry.thread_id, block_id, block[Side::kLhs], in Dump() 256 void TraceRecordThreadStart(std::uint32_t thread_id, Trace* trace) { in TraceRecordThreadStart() argument 261 entry.thread_id = thread_id; in TraceRecordThreadStart() [all …]
|
D | trace.h | 41 void TraceRecordThreadStart(std::uint32_t thread_id, Trace* trace); 42 void TraceRecordThreadLoopStart(std::uint32_t thread_id, Trace* trace); 43 void TraceRecordBlockReserved(std::uint32_t thread_id, std::uint32_t block_id, 45 void TraceRecordBlockPacked(std::uint32_t thread_id, Side side, int block, 47 void TraceRecordBlockFinished(std::uint32_t thread_id, std::uint32_t block_id, 49 void TraceRecordThreadEnd(std::uint32_t thread_id, Trace* trace);
|
/external/v8/src/execution/ |
D | thread-id.cc | 23 int thread_id = base::Thread::GetThreadLocalInt(*GetThreadIdKey()); in TryGetCurrent() local 24 return thread_id == 0 ? Invalid() : ThreadId(thread_id); in TryGetCurrent() 30 int thread_id = base::Thread::GetThreadLocalInt(key); in GetCurrentThreadId() local 31 if (thread_id == 0) { in GetCurrentThreadId() 32 thread_id = next_thread_id.fetch_add(1); in GetCurrentThreadId() 33 CHECK_LE(1, thread_id); in GetCurrentThreadId() 34 base::Thread::SetThreadLocalInt(key, thread_id); in GetCurrentThreadId() 36 return thread_id; in GetCurrentThreadId()
|
/external/elfutils/libdw/ |
D | libdw_alloc.c | 47 static __thread size_t thread_id = THREAD_ID_UNSET; variable 53 if (thread_id == THREAD_ID_UNSET) in __libdw_alloc_tail() 54 thread_id = atomic_fetch_add (&next_id, 1); in __libdw_alloc_tail() 57 if (thread_id >= dbg->mem_stacks) in __libdw_alloc_tail() 65 if (thread_id >= dbg->mem_stacks) in __libdw_alloc_tail() 67 dbg->mem_tails = realloc (dbg->mem_tails, (thread_id+1) in __libdw_alloc_tail() 74 for (size_t i = dbg->mem_stacks; i <= thread_id; i++) in __libdw_alloc_tail() 76 dbg->mem_stacks = thread_id + 1; in __libdw_alloc_tail() 86 struct libdw_memblock *result = dbg->mem_tails[thread_id]; in __libdw_alloc_tail() 94 dbg->mem_tails[thread_id] = result; in __libdw_alloc_tail() [all …]
|
/external/libchrome/base/threading/ |
D | platform_thread_linux.cc | 49 void SetThreadCgroup(PlatformThreadId thread_id, in SetThreadCgroup() argument 52 std::string tid = IntToString(thread_id); in SetThreadCgroup() 59 void SetThreadCgroupForThreadPriority(PlatformThreadId thread_id, in SetThreadCgroupForThreadPriority() argument 70 SetThreadCgroup(thread_id, cgroup_directory); in SetThreadCgroupForThreadPriority() 73 void SetThreadCgroupsForThreadPriority(PlatformThreadId thread_id, in SetThreadCgroupsForThreadPriority() argument 77 thread_id, cgroup_filepath.Append(FILE_PATH_LITERAL("cpuset")), priority); in SetThreadCgroupsForThreadPriority() 79 thread_id, cgroup_filepath.Append(FILE_PATH_LITERAL("schedtune")), in SetThreadCgroupsForThreadPriority() 153 void PlatformThread::SetThreadPriority(PlatformThreadId thread_id, in SetThreadPriority() argument 158 CHECK_NE(thread_id, getpid()); in SetThreadPriority() 160 SetThreadCgroupsForThreadPriority(thread_id, priority); in SetThreadPriority() [all …]
|
/external/tensorflow/tensorflow/core/profiler/internal/cpu/ |
D | host_tracer_test.cc | 40 NodeExecStats MakeNodeStats(const string& name, int32 thread_id, in MakeNodeStats() argument 44 ns.set_thread_id(thread_id); in MakeNodeStats() 59 p.thread_id() == expected_.thread_id() && in MatchAndExplain() 78 int32 thread_id = Env::Default()->GetCurrentThreadId(); in TEST() local 99 EqualsNodeStats(MakeNodeStats("hello", thread_id)), in TEST() 100 EqualsNodeStats(MakeNodeStats("world", thread_id)), in TEST() 101 EqualsNodeStats(MakeNodeStats("contains#inside", thread_id)), in TEST() 102 EqualsNodeStats(MakeNodeStats("good", thread_id, "key1=value1")), in TEST() 104 MakeNodeStats("morning", thread_id, "key1=value1,key2=value2")), in TEST() 106 MakeNodeStats("incomplete", thread_id, "key1=value1,key2")))); in TEST() [all …]
|
/external/rust/crates/syn/0.15.42/src/ |
D | thread.rs | 3 use self::thread_id::ThreadId; 10 thread_id: ThreadId, field 22 thread_id: thread_id::current(), in new() 27 if thread_id::current() == self.thread_id { in get() 45 mod thread_id { module 56 mod thread_id { module
|
/external/tensorflow/tensorflow/core/framework/ |
D | run_handler.cc | 382 constexpr PerThread() : pool(nullptr), thread_id(-1) {} in PerThread() 384 int thread_id; // Worker thread index in pool. member 525 return pt->thread_id; in CurrentThreadId() 537 void WorkerLoop(int thread_id, bool may_steal_blocking_work); 543 int searching_range_start, int searching_range_end, int thread_id, 549 void WaitForWork(bool is_blocking, int thread_id, 606 int searching_range_start, int searching_range_end, int thread_id, in FindTask() argument 612 int current_index = thread_data_[thread_id].current_index; in FindTask() 635 t = (*tws)->PopNonBlockingTask(thread_id, true); in FindTask() 640 thread_data_[thread_id].current_index = current_index; in FindTask() [all …]
|
/external/ltp/include/ |
D | tst_safe_pthread.h | 36 pthread_t *thread_id, const pthread_attr_t *attr, 38 #define SAFE_PTHREAD_CREATE(thread_id, attr, thread_fn, arg) \ argument 39 safe_pthread_create(__FILE__, __LINE__, thread_id, attr, thread_fn, arg) 42 pthread_t thread_id, void **retval); 43 #define SAFE_PTHREAD_JOIN(thread_id, retval) \ argument 44 safe_pthread_join(__FILE__, __LINE__, thread_id, retval)
|
/external/tensorflow/tensorflow/compiler/xla/python/tpu_driver/ |
D | recording_tpu_driver.cc | 159 auto thread_id = GetCurrentThreadId(); in Allocate() local 172 PopulateAndSaveEntry(&r, wait_for, handle_id, thread_id); in Allocate() 183 auto thread_id = GetCurrentThreadId(); in Allocate() local 195 PopulateAndSaveEntry(&r, wait_for, handle_id, thread_id); in Allocate() 217 auto thread_id = GetCurrentThreadId(); in AllocateTuple() local 233 PopulateAndSaveEntry(&r, wait_for, handle_id, thread_id); in AllocateTuple() 244 auto thread_id = GetCurrentThreadId(); in Deallocate() local 255 PopulateAndSaveEntry(&r, wait_for, event_id, thread_id); in Deallocate() 267 auto thread_id = GetCurrentThreadId(); in TransferToDevice() local 285 PopulateAndSaveEntry(&r, wait_for, event_id, thread_id); in TransferToDevice() [all …]
|
/external/compiler-rt/lib/asan/ |
D | asan_debugging.cc | 84 static uptr AsanGetStack(uptr addr, uptr *trace, u32 size, u32 *thread_id, in AsanGetStack() argument 93 if (thread_id) *thread_id = chunk.AllocTid(); in AsanGetStack() 97 if (thread_id) *thread_id = chunk.FreeTid(); in AsanGetStack() 126 uptr __asan_get_alloc_stack(uptr addr, uptr *trace, uptr size, u32 *thread_id) { in __asan_get_alloc_stack() argument 127 return AsanGetStack(addr, trace, size, thread_id, /* alloc_stack */ true); in __asan_get_alloc_stack() 131 uptr __asan_get_free_stack(uptr addr, uptr *trace, uptr size, u32 *thread_id) { in __asan_get_free_stack() argument 132 return AsanGetStack(addr, trace, size, thread_id, /* alloc_stack */ false); in __asan_get_free_stack()
|
/external/ltp/testcases/kernel/mem/mtest07/ |
D | mallocstress.c | 32 static pthread_t *thread_id; /* Spawned thread */ variable 157 SAFE_PTHREAD_CREATE(&thread_id[thread_index], NULL, alloc_mem, in stress_malloc() 168 SAFE_PTHREAD_JOIN(thread_id[thread_index], &status); in stress_malloc() 180 thread_id = SAFE_MALLOC(sizeof(pthread_t) * NUM_THREADS); in setup() 185 if (thread_id) { in cleanup() 186 free(thread_id); in cleanup() 187 thread_id = NULL; in cleanup()
|
/external/ltp/lib/ |
D | safe_pthread.c | 13 pthread_t *thread_id, const pthread_attr_t *attr, in safe_pthread_create() argument 18 rval = pthread_create(thread_id, attr, thread_fn, arg); in safe_pthread_create() 22 "pthread_create(%p,%p,%p,%p) failed: %s", thread_id, in safe_pthread_create() 30 pthread_t thread_id, void **retval) in safe_pthread_join() argument 34 rval = pthread_join(thread_id, retval); in safe_pthread_join()
|
/external/grpc-grpc/src/core/lib/gpr/ |
D | cpu_posix.cc | 71 unsigned int* thread_id = in gpr_cpu_current_cpu() local 73 if (thread_id == nullptr) { in gpr_cpu_current_cpu() 74 thread_id = static_cast<unsigned int*>(gpr_malloc(sizeof(unsigned int))); in gpr_cpu_current_cpu() 75 pthread_setspecific(thread_id_key, thread_id); in gpr_cpu_current_cpu() 78 return (unsigned)GPR_HASH_POINTER(thread_id, gpr_cpu_num_cores()); in gpr_cpu_current_cpu()
|
/external/compiler-rt/test/asan/TestCases/ |
D | debug_stacks.cc | 30 int thread_id; in main() local 31 num_frames = __asan_get_alloc_stack(mem, trace, num_frames, &thread_id); in main() 36 fprintf(stderr, "thread id = %d\n", thread_id); in main() 44 num_frames = __asan_get_free_stack(mem, trace, num_frames, &thread_id); in main() 49 fprintf(stderr, "thread id = %d\n", thread_id); in main()
|
/external/mesa3d/src/mapi/ |
D | u_current.c | 149 typedef DWORD thread_id; typedef 151 typedef thrd_t thread_id; typedef 155 static inline thread_id 174 thread_id_equal(thread_id t1, thread_id t2) in thread_id_equal() 183 static thread_id knownID;
|
/external/libchrome/base/trace_event/ |
D | trace_event.h | 386 phase, category_group, name, id, thread_id, timestamp, flags, ...) \ argument 396 thread_id, timestamp, \ 405 category_group, name, id, thread_id, begin_timestamp, end_timestamp, \ argument 419 thread_id, begin_timestamp, \ 798 int thread_id, in AddTraceEventWithThreadIdAndTimestamp() argument 809 phase, category_group_enabled, name, scope, id, bind_id, thread_id, in AddTraceEventWithThreadIdAndTimestamp() 822 int thread_id, in AddTraceEventWithThreadIdAndTimestamp() argument 840 phase, category_group_enabled, name, scope, id, bind_id, thread_id, in AddTraceEventWithThreadIdAndTimestamp() 853 int thread_id, in AddTraceEventWithThreadIdAndTimestamp() argument 872 phase, category_group_enabled, name, scope, id, bind_id, thread_id, in AddTraceEventWithThreadIdAndTimestamp() [all …]
|
/external/mesa3d/src/gallium/tests/unit/ |
D | pipe_barrier_test.c | 73 int thread_id = *((int *) thread_data); in thread_function() local 75 LOG("thread %d starting\n", thread_id); in thread_function() 76 os_time_sleep(thread_id * 100 * 1000); in thread_function() 77 LOG("thread %d before barrier\n", thread_id); in thread_function() 88 LOG("thread %d exiting\n", thread_id); in thread_function()
|
/external/google-breakpad/src/processor/ |
D | minidump_unittest.cc | 264 uint32_t thread_id; in TEST() local 265 ASSERT_TRUE(md_thread->GetThreadID(&thread_id)); in TEST() 266 ASSERT_EQ(0xa898f11bU, thread_id); in TEST() 335 uint32_t thread_id; in TEST() local 336 ASSERT_TRUE(md_thread->GetThreadID(&thread_id)); in TEST() 337 ASSERT_EQ(0xa898f11bU, thread_id); in TEST() 378 uint32_t thread_id; in TEST() local 379 ASSERT_TRUE(md_thread->GetThreadID(&thread_id)); in TEST() 380 ASSERT_EQ(0xa898f11bU, thread_id); in TEST() 579 uint32_t thread_id; in TEST() local [all …]
|
/external/eigen/unsupported/Eigen/CXX11/src/ThreadPool/ |
D | NonBlockingThreadPool.h | 79 Queue* q = queues_[pt->thread_id]; in Schedule() 108 return pt->thread_id; in CurrentThreadId() 118 constexpr PerThread() : pool(NULL), rand(0), thread_id(-1) { } in PerThread() 121 int thread_id; // Worker thread index in pool. member 135 void WorkerLoop(int thread_id) { in WorkerLoop() argument 139 pt->thread_id = thread_id; in WorkerLoop() 140 Queue* q = queues_[thread_id]; in WorkerLoop() 141 EventCount::Waiter* waiter = &waiters_[thread_id]; in WorkerLoop()
|
D | SimpleThreadPool.h | 79 return pt->thread_id; in CurrentThreadId() 86 void WorkerLoop(int thread_id) { in WorkerLoop() argument 90 pt->thread_id = thread_id; in WorkerLoop() 131 constexpr PerThread() : pool(NULL), thread_id(-1) { } in PerThread() 133 int thread_id; // Worker thread index in pool. member
|
/external/arm-trusted-firmware/plat/arm/board/fvp/ |
D | fvp_topology.c | 63 unsigned int clus_id, cpu_id, thread_id; in plat_core_pos_by_mpidr() local 67 thread_id = MPIDR_AFFLVL0_VAL(mpidr); in plat_core_pos_by_mpidr() 71 thread_id = 0; in plat_core_pos_by_mpidr() 80 if (thread_id >= FVP_MAX_PE_PER_CPU) in plat_core_pos_by_mpidr()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_stoptheworld.h | 37 bool Contains(SuspendedThreadID thread_id) const { in Contains() argument 39 if (thread_ids_[i] == thread_id) in Contains() 44 void Append(SuspendedThreadID thread_id) { in Append() argument 45 thread_ids_.push_back(thread_id); in Append()
|
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/ |
D | map_lock.c | 37 pthread_t thread_id[6]; in test_map_lock() local 57 if (CHECK_FAIL(pthread_create(&thread_id[i], NULL, in test_map_lock() 61 if (CHECK_FAIL(pthread_create(&thread_id[i], NULL, in test_map_lock() 66 if (CHECK_FAIL(pthread_join(thread_id[i], &ret) || in test_map_lock() 70 if (CHECK_FAIL(pthread_join(thread_id[i], &ret) || in test_map_lock()
|
/external/google-breakpad/src/client/windows/crash_generation/ |
D | client_info.cc | 41 DWORD* thread_id, in ClientInfo() argument 51 thread_id_(thread_id), in ClientInfo() 149 bool ClientInfo::GetClientThreadId(DWORD* thread_id) const { in GetClientThreadId() 153 thread_id, in GetClientThreadId() 154 sizeof(*thread_id), in GetClientThreadId() 159 return bytes_count == sizeof(*thread_id); in GetClientThreadId()
|