Home
last modified time | relevance | path

Searched refs:thread_id (Results 1 – 25 of 238) sorted by relevance

12345678910

/external/tensorflow/tensorflow/lite/experimental/ruy/
Dtrace.cc49 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 …]
Dtrace.h41 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/
Dthread-id.cc23 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/
Dlibdw_alloc.c47 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/
Dplatform_thread_linux.cc49 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/
Dhost_tracer_test.cc40 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/
Dthread.rs3 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/
Drun_handler.cc382 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/
Dtst_safe_pthread.h36 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/
Drecording_tpu_driver.cc159 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/
Dasan_debugging.cc84 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/
Dmallocstress.c32 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/
Dsafe_pthread.c13 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/
Dcpu_posix.cc71 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/
Ddebug_stacks.cc30 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/
Du_current.c149 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/
Dtrace_event.h386 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/
Dpipe_barrier_test.c73 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/
Dminidump_unittest.cc264 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/
DNonBlockingThreadPool.h79 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()
DSimpleThreadPool.h79 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/
Dfvp_topology.c63 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/
Dsanitizer_stoptheworld.h37 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/
Dmap_lock.c37 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/
Dclient_info.cc41 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()

12345678910