Home
last modified time | relevance | path

Searched refs:thread (Results 1 – 25 of 1799) sorted by relevance

12345678910>>...72

/llvm-project/llvm/include/llvm/Support/
H A Dthread.h38 class thread {
72 thread() : Thread(native_handle_type()) {} in thread() function
73 thread(thread &&Other) noexcept in thread() function
77 explicit thread(Function &&f, Args &&...args) in thread() function
78 : thread(DefaultStackSize, f, args...) {} in thread()
81 explicit thread(std::optional<unsigned> StackSizeInBytes, Function &&f,
83 thread(const thread &) = delete;
85 ~thread() { in ~thread()
90 thread &operator=(thread &&Other) noexcept {
104 return std::thread::hardware_concurrency(); in hardware_concurrency()
[all …]
/llvm-project/libcxx/include/
H A Dthread15 thread synopsis
20 class thread
26 thread() noexcept;
27 template <class F, class ...Args> explicit thread(F&& f, Args&&... args);
28 ~thread();
30 thread(const thread&) = delete;
31 thread(thread&& t) noexcept;
33 thread
[all...]
/llvm-project/lldb/test/API/functionalities/plugins/python_os_plugin/
H A DTestPythonOSPlugin.py23 """Test that the Python operating system plugin works correctly when single stepping a virtual thread"""
27 def verify_os_thread_registers(self, thread): argument
28 frame = thread.GetFrameAtIndex(0)
30 reg_value = thread.GetThreadID() + 1
66 # Make sure there are no OS plug-in created thread when we first stop
68 thread = process.GetThreadByID(0x111111111)
70 thread.IsValid(),
71 "Make sure there is no thread 0x111111111 before we load the python OS plug-in",
73 thread = process.GetThreadByID(0x222222222)
75 thread
[all...]
/llvm-project/lldb/test/API/python_api/thread/
H A DTestThreadAPI.py70 "main2.cpp", "// thread step-out of malloc into function b."
94 thread = get_stopped_thread(process, lldb.eStopReasonBreakpoint)
96 thread.IsValid(), "There should be a thread stopped due to breakpoint"
100 proc_of_thread = thread.GetProcess()
118 thread = get_stopped_thread(process, lldb.eStopReasonBreakpoint)
120 thread.IsValid(), "There should be a thread stopped due to breakpoint"
128 "breakpoint 1.1", thread.GetStopDescription(len("breakpoint 1.1") + 1)
132 self.assertEqual("breakpoint", thread
[all...]
/llvm-project/lldb/examples/test/tmp/
H A Dlldb_log-x86_64-clang-TestBreakpointCommand.BreakpointCommandTestCase.test_with_dsym.txt1 com.apple.main-thread /Volumes/data/lldb/svn/ToT/build/Debug/LLDB.framework/Versions/A/Resources/de…
9 com.apple.main-thread Host::LaunchProcess (launch_info) => pid=55237, path='/Volumes/data/lldb/svn/…
10 com.apple.main-thread ProcessGDBRemote::StartAsyncThread ()
11 ….gdb-remote.async> ProcessGDBRemote::AsyncThread (arg = 0x7fabc1883400, pid = 0) thread starting...
13 com.apple.main-thread < 1> send packet: +
14 com.apple.main-thread history[1] tid=0x1307 < 1> send packet: +
15 com.apple.main-thread < 19> send packet: $QStartNoAckMode#b0
16 com.apple.main-thread < 1> read packet: +
17 com.apple.main-thread < 6> read packet: $OK#9a
18 com.apple.main-thread < 1> send packet: +
[all …]
H A Dlldb_log-x86_64-clang-TestBreakpointCommand.BreakpointCommandTestCase.test_with_dwarf.txt1 com.apple.main-thread /Volumes/data/lldb/svn/ToT/build/Debug/LLDB.framework/Versions/A/Resources/de…
9 com.apple.main-thread Host::LaunchProcess (launch_info) => pid=55287, path='/Volumes/data/lldb/svn/…
10 com.apple.main-thread ProcessGDBRemote::StartAsyncThread ()
11 ….gdb-remote.async> ProcessGDBRemote::AsyncThread (arg = 0x7fabc0997600, pid = 0) thread starting...
13 com.apple.main-thread < 1> send packet: +
14 com.apple.main-thread history[1] tid=0x1307 < 1> send packet: +
15 com.apple.main-thread < 19> send packet: $QStartNoAckMode#b0
16 com.apple.main-thread < 1> read packet: +
17 com.apple.main-thread < 6> read packet: $OK#9a
18 com.apple.main-thread < 1> send packet: +
[all …]
/llvm-project/lldb/test/API/lang/c/stepping/
H A DTestStepAndBreakpoints.py35 "// frame select 2, thread step-out while stopped at .c.1..",
48 "// thread step-out while stopped at .c.2..", self.main_source_spec
64 # The stop reason of the thread should be breakpoint.
70 thread = threads[0]
76 thread.StepOver()
78 # The stop reason of the thread should be breakpoint.
87 thread = threads[0]
90 thread.StepOver()
95 thread = threads[0]
99 frame = thread
[all...]
/llvm-project/clang/test/SemaCXX/
H A Ddeclspec-thread.cpp4 __thread __declspec(thread) int a; // expected-error {{already has a thread-local storage specifier…
5 __declspec(thread) __thread int b; // expected-error {{already has a thread-local storage specifier…
6 __declspec(thread) int c(); // expected-warning {{only applies to variables}}
7 __declspec(thread) int d;
10 __declspec(thread) int e = foo();
12 __declspec(thread) int e = foo(); // expected-error {{must be a constant expression}} expected-note…
17 __declspec(thread) HasCtor f;
19 __declspec(thread) HasCtor f; // expected-error {{must be a constant expression}} expected-note {{t…
24 __declspec(thread) HasDtor g;
26 __declspec(thread) HasCtor g; // expected-error {{must be a constant expression}} expected-note {{t…
[all …]
/llvm-project/lldb/test/API/functionalities/postmortem/netbsd-core/
H A DTestNetBSDCore.py89 thread = process.GetSelectedThread()
90 thread.StepOut()
103 def check_backtrace(self, thread, filename, backtrace): argument
104 self.assertGreaterEqual(thread.GetNumFrames(), len(backtrace))
107 frame = thread.GetFrameAtIndex(i)
140 thread = process.GetSelectedThread()
141 self.assertTrue(thread)
142 self.assertEqual(thread.GetThreadID(), 1)
143 self.assertStopReason(thread.GetStopReason(), lldb.eStopReasonSignal)
144 self.assertEqual(thread.GetStopReasonDataCount(), 1)
[all …]
/llvm-project/lldb/test/API/functionalities/thread/state/
H A DTestThreadStates.py89 thread = lldbutil.get_stopped_thread(process, lldb.eStopReasonBreakpoint)
90 self.assertIsNotNone(thread)
94 thread.IsStopped(), "Thread state isn't 'stopped' during breakpoint 1."
97 thread.IsSuspended(), "Thread state is 'suspended' during breakpoint 1."
127 thread = lldbutil.get_stopped_thread(process, lldb.eStopReasonBreakpoint)
128 self.assertIsNotNone(thread)
138 thread.IsStopped(), "Thread state is 'stopped' when it should be running."
141 thread.IsSuspended(),
171 thread = lldbutil.get_stopped_thread(process, lldb.eStopReasonBreakpoint)
172 self.assertIsNotNone(thread)
[all …]
/llvm-project/lldb/test/API/lang/objc/objc-stepping/
H A DTestObjCStepping.py95 thread = threads[0]
97 mySource = thread.GetFrameAtIndex(0).FindVariable("mySource")
111 thread.StepInto()
112 line_number = thread.GetFrameAtIndex(0).GetLineEntry().GetLine()
121 thread.StepInto()
122 line_number = thread.GetFrameAtIndex(0).GetLineEntry().GetLine()
134 thread = threads[0]
135 thread.StepInto()
136 line_number = thread.GetFrameAtIndex(0).GetLineEntry().GetLine()
149 thread = threads[0]
[all …]
/llvm-project/lldb/source/Plugins/Process/Linux/
H A DNativeProcessLinux.cpp377 // be handled by exactly one process, but thread creation events require in SigchldHandler()
380 // child thread) and they can arrive in any order nondeterministically. The in SigchldHandler()
381 // parent event carries the information about the child thread, but not in SigchldHandler()
383 // be handled by any process (because it doesn't know the thread belongs to in SigchldHandler()
390 // Store the thread creation event for later collection. in SigchldHandler()
403 return; // We've encountered this thread already. in CollectThread()
438 NativeThreadLinux &thread = AddThread(tid, /*resume*/ false); in NativeProcessLinux() local
439 ThreadWasCreated(thread); in NativeProcessLinux()
442 // Let our process instance know the thread has stopped. in NativeProcessLinux()
461 // An attach will cause the thread t in Attach()
551 if (NativeThreadLinux *thread = GetThreadByID(pid)) { TryHandleWaitStatus() local
558 MonitorCallback(NativeThreadLinux & thread,WaitStatus status) MonitorCallback() argument
626 MonitorSIGTRAP(const siginfo_t & info,NativeThreadLinux & thread) MonitorSIGTRAP() argument
814 MonitorTrace(NativeThreadLinux & thread) MonitorTrace() argument
824 MonitorBreakpoint(NativeThreadLinux & thread) MonitorBreakpoint() argument
839 MonitorWatchpoint(NativeThreadLinux & thread,uint32_t wp_index) MonitorWatchpoint() argument
855 MonitorSignal(const siginfo_t & info,NativeThreadLinux & thread) MonitorSignal() argument
1013 for (const auto &thread : m_threads) { Resume() local
1030 for (const auto &thread : m_threads) { Resume() local
1096 for (const auto &thread : m_threads) { Detach() local
1130 for (const auto &thread : m_threads) { Interrupt() local
1353 NativeThreadLinux &thread = *GetCurrentThread(); Syscall() local
1758 for (const auto &thread : m_threads) { HasThreadNoLock() local
1770 StopTrackingThread(NativeThreadLinux & thread) StopTrackingThread() argument
1825 NativeThreadLinux &thread = AddThread() local
1887 ResumeThread(NativeThreadLinux & thread,lldb::StateType state,int signo) ResumeThread() argument
1937 for (const auto &thread : m_threads) { StopRunningThreads() local
1974 ThreadWasCreated(NativeThreadLinux & thread) ThreadWasCreated() argument
[all...]
/llvm-project/openmp/runtime/src/
H A Dkmp_taskdeps.h21 static inline void __kmp_node_deref(kmp_info_t *thread, kmp_depnode_t *node) { in __kmp_node_deref() argument
33 __kmp_fast_free(thread, node); in __kmp_node_deref()
35 __kmp_thread_free(thread, node); in __kmp_node_deref()
40 static inline void __kmp_depnode_list_free(kmp_info_t *thread, in __kmp_depnode_list_free() argument
47 __kmp_node_deref(thread, list->node); in __kmp_depnode_list_free()
49 __kmp_fast_free(thread, list); in __kmp_depnode_list_free()
51 __kmp_thread_free(thread, list); in __kmp_depnode_list_free()
56 static inline void __kmp_dephash_free_entries(kmp_info_t *thread, in __kmp_dephash_free_entries() argument
63 __kmp_depnode_list_free(thread, entry->last_set); in __kmp_dephash_free_entries()
64 __kmp_depnode_list_free(thread, entry->prev_set); in __kmp_dephash_free_entries()
[all …]
/llvm-project/lldb/test/API/lang/cpp/std-function-step-into-callable/
H A DTestStdFunctionStepIntoCallable.py39 (target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint(
43 thread.StepInto()
45 thread.GetFrameAtIndex(0).GetLineEntry().GetLine(),
49 thread.GetFrameAtIndex(0).GetLineEntry().GetFileSpec().GetFilename(),
53 thread.StepInto()
55 thread.GetFrameAtIndex(0).GetLineEntry().GetLine(), self.source_foo_line
58 thread.GetFrameAtIndex(0).GetLineEntry().GetFileSpec().GetFilename(),
63 thread.StepInto()
65 thread.GetFrameAtIndex(0).GetLineEntry().GetLine(),
69 thread.GetFrameAtIndex(0).GetLineEntry().GetFileSpec().GetFilename(),
[all …]
/llvm-project/clang/test/OpenMP/
H A Dgeneric_loop_messages.cpp10 #pragma omp loop bind(thread) in foo()
19 #pragma omp loop bind(thread) in foo()
28 #pragma omp loop bind(thread) in foo()
39 #pragma omp loop bind(thread) in foo()
46 #pragma omp loop bind(thread) in foo()
53 #pragma omp loop bind(thread) in foo()
61 #pragma omp loop bind(thread) bind(thread) in foo()
83 #pragma omp loop collapse(2) bind(thread) in foo()
88 #pragma omp loop collapse(2) collapse(2) bind(thread) in foo()
96 #pragma omp loop order(foo) bind(thread) in foo()
[all …]
H A Dteams_generic_loop_messages.cpp10 #pragma omp teams loop bind(thread) in foo()
19 #pragma omp teams loop bind(thread) in foo()
28 #pragma omp teams loop bind(thread) in foo()
39 #pragma omp teams loop bind(thread) in foo()
46 #pragma omp teams loop bind(thread) in foo()
53 #pragma omp teams loop bind(thread) in foo()
61 #pragma omp teams loop bind(thread) bind(thread) in foo()
75 #pragma omp teams loop collapse(2) bind(thread) in foo()
80 #pragma omp teams loop collapse(2) collapse(2) bind(thread) in foo()
88 #pragma omp teams loop order(foo) bind(thread) in foo()
[all …]
H A Dparallel_generic_loop_messages.cpp10 #pragma omp parallel loop bind(thread) in foo()
19 #pragma omp parallel loop bind(thread) in foo()
28 #pragma omp parallel loop bind(thread) in foo()
39 #pragma omp parallel loop bind(thread) in foo()
46 #pragma omp parallel loop bind(thread) in foo()
53 #pragma omp parallel loop bind(thread) in foo()
61 #pragma omp parallel loop bind(thread) bind(thread) in foo()
74 #pragma omp parallel loop collapse(2) bind(thread) in foo()
79 #pragma omp parallel loop collapse(2) collapse(2) bind(thread) in foo()
87 #pragma omp parallel loop order(foo) bind(thread) in foo()
[all …]
H A Dtarget_teams_generic_loop_messages.cpp10 #pragma omp target teams loop bind(thread) in foo()
19 #pragma omp target teams loop bind(thread) in foo()
28 #pragma omp target teams loop bind(thread) in foo()
39 #pragma omp target teams loop bind(thread) in foo()
46 #pragma omp target teams loop bind(thread) in foo()
53 #pragma omp target teams loop bind(thread) in foo()
61 #pragma omp target teams loop bind(thread) bind(thread) in foo()
74 #pragma omp target teams loop collapse(2) bind(thread) in foo()
79 #pragma omp target teams loop collapse(2) collapse(2) bind(thread) in foo()
87 #pragma omp target teams loop order(foo) bind(thread) in foo()
[all …]
/llvm-project/lldb/docs/use/
H A Dformatting.rst7 thread stopped and where:
11 * thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
18 (lldb) thread backtrace
19 * thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
28 (lldb) settings set thread-stop-format STRING
31 The first of these is an abbreviated thread output, that just contains data
32 about the thread, and not the stop frame. It will always get used in situations
36 There is another thread forma
[all...]
/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/
H A Dpthread_join.cpp29 pthread_t thread[5]; in main() local
30 assert(!pthread_create(&thread[0], nullptr, fn, (void *)1000)); in main()
31 assert(!pthread_create(&thread[1], nullptr, fn, (void *)1001)); in main()
32 assert(!pthread_create(&thread[2], nullptr, fn, (void *)1002)); in main()
33 assert(!pthread_create(&thread[3], nullptr, fn, (void *)1003)); in main()
37 assert(!pthread_create(&thread[4], &attr, fn, (void *)1004)); in main()
40 assert(!pthread_detach(thread[0])); in main()
44 while (pthread_tryjoin_np(thread[1], &res)) in main()
48 (pthread_tryjoin_np(thread[1], &res) == EBUSY)); in main()
54 while (pthread_timedjoin_np(thread[2], &res, &tm)) in main()
[all …]
/llvm-project/lldb/utils/lui/
H A Dlldbutil.py309 for thread in process:
320 if thread.GetStopReason() == reason or reason is None:
321 list.append(thread)
672 for thread in stopped_threads:
674 break_id = thread.GetStopReasonDataAtIndex(0)
676 threads.append(thread)
690 def get_caller_symbol(thread): argument
694 depth = thread.GetNumFrames()
697 caller = thread.GetFrameAtIndex(1).GetSymbol()
704 def get_function_names(thread): argument
[all …]
/llvm-project/lldb/test/API/commands/watchpoints/step_over_watchpoint/
H A DTestStepOverWatchpoint.py16 target, process, thread, bkpt = lldbutil.run_to_source_breakpoint(
19 return (target, process, thread, frame, read_watchpoint)
29 target, process, thread, bkpt = lldbutil.run_to_source_breakpoint(
33 frame = thread.GetFrameAtIndex(0)
50 thread.StepOver()
52 thread.GetStopReason(),
56 self.assertEqual(thread.GetStopDescription(20), "watchpoint 1")
60 self.assertEqual(thread.GetStopDescription(20), "step over")
72 target, process, thread, bkpt = lldbutil.run_to_source_breakpoint(
80 frame = thread.GetFrameAtIndex(0)
[all …]
/llvm-project/llvm/test/Transforms/LoopVectorize/
H A Dincorrect-dom-info.ll41 br i1 %arg, label %thread-pre-split.preheader, label %.preheader
43 thread-pre-split.preheader: ; preds = %9
44 br i1 %arg, label %thread-pre-split._crit_edge, label %.lr.ph21
46 .thread-pre-split.loopexit_crit_edge: ; preds = %19
49 br label %thread-pre-split.loopexit
51 thread-pre-split.loopexit: ; preds = %11, %.thread-pre-split.loopexit_crit_edge
52 %d.1.lcssa = phi ptr [ %scevgep45, %.thread-pre-split.loopexit_crit_edge ], [ %d.020, %11 ]
53 br i1 false, label %thread-pre-split._crit_edge, label %.lr.ph21
55 .lr.ph21: ; preds = %26, %thread
[all...]
/llvm-project/lldb/examples/python/
H A Dperformance.py83 def ThreadStopped(self, thread): argument
93 def ThreadStopped(self, thread): argument
94 if thread.GetStopReason() == lldb.eStopReasonPlanComplete:
97 self.callback(self.callback_owner, thread)
99 self.callback(thread)
146 def ThreadStopped(self, thread): argument
147 if thread.GetStopReason() == lldb.eStopReasonBreakpoint:
149 if bp.GetID() == thread.GetStopReasonDataAtIndex(0):
152 self.callback(self.callback_owner, thread)
154 self.callback(thread)
[all …]
/llvm-project/lldb/test/API/functionalities/tail_call_frames/thread_step_out_or_return/
H A DTestSteppingOutWithArtificialFrames.py44 thread = threads[0]
52 return thread
57 thread = self.prepare_thread()
61 thread.StepOut()
62 frame2 = thread.GetSelectedFrame()
67 thread.StepOut()
68 frame4 = thread.GetSelectedFrame()
75 thread = self.prepare_thread()
81 thread.ReturnFromFrame(thread.GetSelectedFrame(), value)
82 frame2 = thread.GetSelectedFrame()
[all …]

12345678910>>...72