Home
last modified time | relevance | path

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

12345678910>>...15

/external/llvm-project/lldb/test/API/tools/lldb-server/
DTestGdbRemoteRegisterState.py48 thread_id = threads[0]
49 self.assertIsNotNone(thread_id)
50 self.trace("Running on thread: 0x{:x}".format(thread_id))
52 thread_id = None
56 self.add_QSaveRegisterState_packets(thread_id)
68 gpr_reg_infos, endian, thread_id=thread_id)
73 gpr_reg_infos, endian, thread_id=thread_id)
78 gpr_reg_infos, endian, thread_id=thread_id)
83 self.add_QRestoreRegisterState_packets(state_id, thread_id)
90 gpr_reg_infos, endian, thread_id=thread_id)
/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()
99 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/llvm-project/lldb/tools/intel-features/intel-pt/
Dcli-wrapper-pt.cpp95 lldb::tid_t &thread_id) { in ParseCommandArgThread() argument
98 thread_id = LLDB_INVALID_THREAD_ID; in ParseCommandArgThread()
119 thread_id = thread.GetThreadID(); in ParseCommandArgThread()
141 lldb::tid_t thread_id; in DoExecute() local
152 if (!ParseCommandArgThread(command, result, process, i, thread_id)) in DoExecute()
165 thread_id = thread.GetThreadID(); in DoExecute()
175 lldb_SBTraceOptions.setThreadID(thread_id); in DoExecute()
218 lldb::tid_t thread_id; in DoExecute() local
225 if (!ParseCommandArgThread(command, result, process, i, thread_id)) in DoExecute()
237 thread_id = thread.GetThreadID(); in DoExecute()
[all …]
/external/llvm-project/lldb/source/Plugins/Process/Windows/Common/
DDebuggerThread.h49 DWORD thread_id);
51 DWORD thread_id);
53 DWORD thread_id);
55 DWORD thread_id);
57 DWORD thread_id);
58 DWORD HandleLoadDllEvent(const LOAD_DLL_DEBUG_INFO &info, DWORD thread_id);
60 DWORD thread_id);
61 DWORD HandleODSEvent(const OUTPUT_DEBUG_STRING_INFO &info, DWORD thread_id);
62 DWORD HandleRipEvent(const RIP_INFO &info, DWORD thread_id);
DExceptionRecord.h27 ExceptionRecord(const EXCEPTION_RECORD &record, lldb::tid_t thread_id) { in ExceptionRecord() argument
32 new ExceptionRecord(*record.ExceptionRecord, thread_id)); in ExceptionRecord()
34 m_thread_id = thread_id; in ExceptionRecord()
40 ExceptionRecord(const MINIDUMP_EXCEPTION &record, lldb::tid_t thread_id) in ExceptionRecord() argument
44 m_thread_id(thread_id), in ExceptionRecord()
51 thread_id)); in ExceptionRecord()
DDebuggerThread.cpp348 DWORD thread_id) { in HandleExceptionEvent() argument
373 new ExceptionRecord(info.ExceptionRecord, thread_id)); in HandleExceptionEvent()
376 info.ExceptionRecord.ExceptionCode, thread_id); in HandleExceptionEvent()
392 DWORD thread_id) { in HandleCreateThreadEvent() argument
395 LLDB_LOG(log, "Thread {0} spawned in process {1}", thread_id, in HandleCreateThreadEvent()
405 DWORD thread_id) { in HandleCreateProcessEvent() argument
434 DWORD thread_id) { in HandleExitThreadEvent() argument
437 LLDB_LOG(log, "Thread {0} exited with code {1} in process {2}", thread_id, in HandleExitThreadEvent()
439 m_debug_delegate->OnExitThread(thread_id, info.dwExitCode); in HandleExitThreadEvent()
445 DWORD thread_id) { in HandleExitProcessEvent() argument
[all …]
/external/tensorflow/tensorflow/core/profiler/internal/cpu/
Dhost_tracer_test.cc46 NodeExecStats MakeNodeStats(absl::string_view name, uint32 thread_id, in MakeNodeStats() argument
50 ns.set_thread_id(thread_id); in MakeNodeStats()
65 p.thread_id() == expected_.thread_id() && in MatchAndExplain()
84 uint32 thread_id = Env::Default()->GetCurrentThreadId(); in TEST() local
105 EqualsNodeStats(MakeNodeStats("hello", thread_id)), in TEST()
106 EqualsNodeStats(MakeNodeStats("world", thread_id)), in TEST()
107 EqualsNodeStats(MakeNodeStats("contains#inside", thread_id)), in TEST()
108 EqualsNodeStats(MakeNodeStats("good", thread_id, "key1=value1")), in TEST()
110 MakeNodeStats("morning", thread_id, "key1=value1,key2=value2")), in TEST()
112 MakeNodeStats("incomplete", thread_id, "key1=value1,key2")))); in TEST()
[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/core/framework/
Drun_handler.cc452 return pt->thread_id; in CurrentThreadId()
482 int searching_range_start, int searching_range_end, int thread_id, in FindTask() argument
488 int current_index = thread_data_[thread_id].current_index; in FindTask()
510 t = (*tws)->PopNonBlockingTask(thread_id, true); in FindTask()
515 thread_data_[thread_id].current_index = current_index; in FindTask()
520 void RunHandlerThreadPool::WorkerLoop(int thread_id, in WorkerLoop() argument
524 pt->thread_id = thread_id; in WorkerLoop()
534 mutex_lock l(thread_data_[thread_id].mu); in WorkerLoop()
535 if (thread_data_[thread_id].current_version < in WorkerLoop()
536 thread_data_[thread_id].new_version) { in WorkerLoop()
[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/llvm-project/compiler-rt/lib/asan/
Dasan_debugging.cpp49 uptr AsanGetStack(uptr addr, uptr *trace, u32 size, u32 *thread_id, in AsanGetStack() argument
58 if (thread_id) *thread_id = chunk.AllocTid(); in AsanGetStack()
62 if (thread_id) *thread_id = chunk.FreeTid(); in AsanGetStack()
131 uptr __asan_get_alloc_stack(uptr addr, uptr *trace, uptr size, u32 *thread_id) { in __asan_get_alloc_stack() argument
132 return AsanGetStack(addr, trace, size, thread_id, /* alloc_stack */ true); in __asan_get_alloc_stack()
136 uptr __asan_get_free_stack(uptr addr, uptr *trace, uptr size, u32 *thread_id) { in __asan_get_free_stack() argument
137 return AsanGetStack(addr, trace, size, thread_id, /* alloc_stack */ false); in __asan_get_free_stack()
/external/llvm-project/lldb/source/API/
DSBTrace.cpp28 size_t offset, lldb::tid_t thread_id) { in GetTraceData() argument
31 error, buf, size, offset, thread_id); in GetTraceData()
41 process_sp->GetData(GetTraceUID(), thread_id, buffer, offset)); in GetTraceData()
47 size_t offset, lldb::tid_t thread_id) { in GetMetaData() argument
50 error, buf, size, offset, thread_id); in GetMetaData()
60 process_sp->GetMetaData(GetTraceUID(), thread_id, buffer, offset)); in GetMetaData()
65 void SBTrace::StopTrace(SBError &error, lldb::tid_t thread_id) { in StopTrace() argument
67 error, thread_id); in StopTrace()
76 error.SetError(process_sp->StopTrace(GetTraceUID(), thread_id)); in StopTrace()
/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/rust/crates/grpcio-sys/grpc/src/core/lib/gpr/
Dcpu_posix.cc70 unsigned int* thread_id = in gpr_cpu_current_cpu() local
72 if (thread_id == nullptr) { in gpr_cpu_current_cpu()
76 thread_id = static_cast<unsigned int*>(malloc(sizeof(unsigned int))); in gpr_cpu_current_cpu()
77 pthread_setspecific(thread_id_key, thread_id); in gpr_cpu_current_cpu()
80 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/tensorflow/tensorflow/compiler/xla/python/tpu_driver/
Drecording_tpu_driver.cc162 auto thread_id = GetCurrentThreadId(); in Allocate() local
175 PopulateAndSaveEntry(&r, wait_for, handle_id, thread_id); in Allocate()
186 auto thread_id = GetCurrentThreadId(); in Allocate() local
198 PopulateAndSaveEntry(&r, wait_for, handle_id, thread_id); in Allocate()
220 auto thread_id = GetCurrentThreadId(); in AllocateTuple() local
236 PopulateAndSaveEntry(&r, wait_for, handle_id, thread_id); in AllocateTuple()
247 auto thread_id = GetCurrentThreadId(); in Deallocate() local
258 PopulateAndSaveEntry(&r, wait_for, event_id, thread_id); in Deallocate()
270 auto thread_id = GetCurrentThreadId(); in TransferToDevice() local
288 PopulateAndSaveEntry(&r, wait_for, event_id, thread_id); in TransferToDevice()
[all …]
/external/llvm-project/compiler-rt/test/asan/TestCases/
Ddebug_stacks.cpp36 int thread_id; in main() local
37 num_frames = __asan_get_alloc_stack(mem, trace, num_frames, &thread_id); in main()
42 fprintf(stderr, "thread id = %d\n", thread_id); in main()
50 num_frames = __asan_get_free_stack(mem, trace, num_frames, &thread_id); in main()
55 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/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/libchrome/base/trace_event/
Dtrace_event.h392 phase, category_group, name, id, thread_id, timestamp, flags, ...) \ argument
402 thread_id, timestamp, \
411 category_group, name, id, thread_id, begin_timestamp, end_timestamp, \ argument
425 thread_id, begin_timestamp, \
804 int thread_id, in AddTraceEventWithThreadIdAndTimestamp() argument
815 phase, category_group_enabled, name, scope, id, bind_id, thread_id, in AddTraceEventWithThreadIdAndTimestamp()
828 int thread_id, in AddTraceEventWithThreadIdAndTimestamp() argument
846 phase, category_group_enabled, name, scope, id, bind_id, thread_id, in AddTraceEventWithThreadIdAndTimestamp()
859 int thread_id, in AddTraceEventWithThreadIdAndTimestamp() argument
878 phase, category_group_enabled, name, scope, id, bind_id, thread_id, in AddTraceEventWithThreadIdAndTimestamp()
[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()
/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()

12345678910>>...15