Home
last modified time | relevance | path

Searched full:thread (Results 1 – 25 of 3460) sorted by relevance

12345678910>>...139

/llvm-project/llvm/include/llvm/Support/
H A Dthread.h1 //===-- llvm/Support/thread.h - Wrapper for <thread> ------------*- C++ -*-===//
9 // This header is a wrapper for <thread> that works around problems with the
10 // MSVC headers when exceptions are disabled. It also provides llvm::thread,
11 // which is either a typedef of std::thread or a replacement that calls the
30 #include <thread>
36 /// LLVM thread following std::thread interface with added constructor to
38 class thread {
72 thread() : Thread(native_handle_type()) {} in thread() function
73 thread(thread &&Other) noexcept in thread() function
74 : Thread(std::exchange(Other.Thread, native_handle_type())) {} in thread()
[all …]
/llvm-project/lldb/test/API/functionalities/thread/state/
H A DTestThreadStates.py2 Test thread states.
16 bugnumber="llvm.org/pr15824 thread states not properly maintained",
18 …@skipIfDarwin # llvm.org/pr15824 thread states not properly maintained and <rdar://problem/285572…
21 bugnumber="llvm.org/pr18190 thread states not properly maintained",
25 """Test thread state after breakpoint."""
35 """Test thread state after continue."""
45 # thread states not properly maintained
48 """Test thread state after expression."""
52 # thread states not properly maintained
58 …@skipIfDarwin # llvm.org/pr15824 thread states not properly maintained and <rdar://problem/285572…
[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/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/bindings/interface/
H A DSBThreadDocstrings.i2 "Represents a thread of execution. :py:class:`SBProcess` contains SBThread(s).
4 SBThreads can be referred to by their ID, which maps to the system specific thread
6 system reuses its thread identifiers. The IndexID is a monotonically increasing identifier
7 that will always uniquely reference a particular thread, and when that thread goes
15 for thread in process:
17 print_stacktrace(thread)
18 ID = thread.GetThreadID()
19 if thread.GetStopReason() == lldb.eStopReasonBreakpoint:
21 for frame in thread:
59 Collects a thread's stop reason extended information dictionary and prints it
[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/compiler-rt/lib/hwasan/
H A Dhwasan_fuchsia.cpp28 // used to always find the hwasan thread object associated with the current
29 // running thread.
58 // These are known parameters passed to the hwasan runtime on thread creation.
59 struct Thread::InitState {
63 static void FinishThreadInitialization(Thread *thread);
77 // Create the hwasan thread object for the current (main) thread. Stack info in InitThreads()
78 // for this thread is known from information passed via in InitThreads()
80 const Thread::InitState state = { in InitThreads()
90 // This is called from the parent thread before the new thread is created. Here
91 // we can propagate known info like the stack bounds to Thread::Init before
[all …]
/llvm-project/lldb/include/lldb/Target/
H A DThread.h1 //===-- Thread.h ------------------------------------------------*- C++ -*-===//
44 /// thread won't stop in during "step-in" operations.
65 class Thread : public std::enable_shared_from_this<Thread>,
141 /// class. In that case, the Thread we are constructing represents
142 /// a thread from earlier in the program execution. We may have the
143 /// tid of the original thread that they represent but we don't want
144 /// to reuse the IndexID of that thread, or create a new one. If a
145 /// client wants to know the original thread's IndexID, they should use
146 /// Thread
[all...]
H A DStopInfo.h26 StopInfo(Thread &thread, uint64_t value);
49 // ShouldStopSynchronous will get called before any thread plans are
83 /// frame. The inlined stack gets adjusted before we call into the thread
92 virtual bool IsValidForOperatingSystemThread(Thread &thread) { return true; }
97 virtual bool WasContinueInterrupted(Thread &thread) { return false; }
99 // Sometimes the thread plan logic will know that it wants a given stop to in GetOverrideShouldStop()
121 CreateStopReasonWithBreakpointSiteID(Thread
80 IsValidForOperatingSystemThread(Thread & thread) IsValidForOperatingSystemThread() argument
85 WasContinueInterrupted(Thread & thread) WasContinueInterrupted() argument
[all...]
/llvm-project/lldb/test/API/macosx/thread_suspend/
H A DTestInternalThreadSuspension.py3 won't make them run, even if we call an expression on the thread.
17 """Test that debugserver doesn't disturb the suspend count of a thread
19 on other threads, or calling functions both on the suspended thread and
31 def try_an_expression(self, thread, correct_value, test_bp): argument
32 frame = thread.frames[0]
40 # Again, make sure we didn't let the suspend thread breakpoint run:
44 "First expression allowed the suspend thread to run",
53 (self.target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint(
57 # Make in the running thread, so the we will have to stop a number of times
59 # run expressions as well. Make sure we don't let the suspended thread run
[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/examples/python/templates/
H A Doperating_system.py24 - tid : thread ID (mandatory)
25 - name : thread name (optional key/value pair)
26 - queue : thread dispatch queue name (optional key/value pair)
27 - state : thread state (mandatory, set to 'stopped' for now)
28 - core : the index of the core (lldb) thread that this OS Thread should shadow
29 - stop_reason : thread stop reason. (mandatory, usually set to 'none')
31 - 'breakpoint': thread is stopped at a breakpoint
32 - 'none': thread is stopped because the process is stopped
33 - 'trace': thread is stopped after single stepping
36 Specifying this key/value pair for a thread will avoid a call to get_register_data()
[all …]
/llvm-project/lldb/test/API/functionalities/postmortem/netbsd-core/
H A DTestNetBSDCore.py88 # Thread.StepOut
89 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)
[all …]
/llvm-project/lldb/test/API/functionalities/thread/step_out/
H A DTestThreadStepOut.py17 """Test thread step out on one thread via command interpreter."""
28 """Test thread step out on all threads via command interpreter."""
36 """Test thread step out on one thread via Python API (dwarf)."""
67 for thread in self.process.threads:
68 if thread.GetIndexID() == self.step_out_thread.GetIndexID():
70 other_threads[thread.GetIndexID()] = thread.frames[0].line_entry
74 self.step_out_with_cmd("this-thread")
76 for thread in self.process.threads:
77 index_id = thread.GetIndexID()
81 thread.frames[0].line_entry.file.basename,
[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/libc/src/__support/threads/
H A Dthread.h1 //===--- A platform independent indirection for a thread class --*- C++ -*-===//
68 // Indicates that the detach operation performed thread cleanup.
74 // A data type to hold common thread attributes which have to be stored as
75 // thread state. Note that this is different from public attribute types like
77 // part of a thread's state. For example, the stack guard size.
79 // Thread attributes are typically stored on the stack. So, we align as required
83 // updated by one thread while the self thread is reading it. It is a tristate
85 // 1. The a thread is created in a detached state, then user code should never
90 // 2. If a thread i
142 struct Thread { global() struct
149 attribThread global() argument
151 ThreadThread Thread() argument
152 ThreadThread Thread() argument
158 runnerThread global() argument
168 runnerThread global() argument
175 joinThread join() argument
185 joinThread join() argument
[all...]
/llvm-project/lldb/test/API/commands/thread/select/
H A DTestThreadSelect.py16 "thread select 0x1ffffffff",
18 startstr="error: Invalid thread index '0x1ffffffff'",
21 "thread select -t 0x1ffffffff",
23 startstr="error: Invalid thread ID",
26 "thread select 1 2 3",
28 … startstr="error: 'thread select' takes exactly one thread index argument, or a thread ID option:",
31 "thread select -t 1234 1",
33 …startstr="error: 'thread select' cannot take both a thread ID option and a thread index argument:",
35 # Parses but not a valid thread id.
37 "thread select 0xffffffff",
[all …]
/llvm-project/lldb/source/Commands/
H A DCommandObjectThread.cpp33 #include "lldb/Target/Thread.h"
121 interpreter, "thread backtrace", in CommandObjectThreadBacktrace()
122 "Show backtraces of thread call stacks. Defaults to the current " in CommandObjectThreadBacktrace()
123 "thread, thread indexes can be specified as arguments.\n" in CommandObjectThreadBacktrace()
124 "Use the thread-index \"all\" to see all threads.\n" in CommandObjectThreadBacktrace()
125 "Use the thread-index \"unique\" to see threads grouped by unique " in CommandObjectThreadBacktrace()
128 "frames in the backtrace and 'settings set thread-format' to " in CommandObjectThreadBacktrace()
129 "customize the thread header.\n"
195 void DoExtendedBacktrace(Thread *threa in DoExtendedBacktrace()
187 DoExtendedBacktrace(Thread * thread,CommandReturnObject & result) DoExtendedBacktrace() argument
220 Thread *thread = thread_sp.get(); HandleOneThread() local
414 Thread *thread = nullptr; DoExecute() local
676 Thread *thread = DoExecute() local
698 Thread *thread = DoExecute() local
733 Thread *thread = process->GetThreadList().GetThreadAtIndex(idx).get(); DoExecute() local
891 Thread *thread = nullptr; DoExecute() local
1338 Thread *thread = thread_sp.get(); HandleOneThread() local
1539 Thread *thread = m_exe_ctx.GetThreadPtr(); DoExecute() local
1687 Thread *thread = m_exe_ctx.GetThreadPtr(); DoExecute() local
1904 Thread *thread = m_exe_ctx.GetThreadPtr(); DoExecute() local
[all...]
/llvm-project/clang/test/Sema/
H A Dthread-specifier.c4 …ple i686-pc-linux-gnu -fsyntax-only -Wno-private-extern -verify=expected,thread-local -pedantic -x…
6 …ple i686-pc-linux-gnu -fsyntax-only -Wno-private-extern -verify=expected,thread-local -pedantic -x…
7 …ple i686-pc-linux-gnu -fsyntax-only -Wno-private-extern -verify=expected,thread-local -pedantic %s…
9 __thread int t1; // thread-local-warning {{'_Thread_local' is a C11 extension}}
10 __thread extern int t2; // thread-local-warning {{'_Thread_local' is a C11 extension}}
11 __thread static int t3; // thread-local-warning {{'_Thread_local' is a C11 extension}}
17 __private_extern__ __thread int t4; // thread-local-warning {{'_Thread_local' is a C11 extension}}
18 struct t5 { __thread int x; }; // thread-local-warning {{'_Thread_local' is a C11 extension}}
26 __thread int t6(void); // thread-local-warning {{'_Thread_local' is a C11 extension}}
36 // thread-local-warning {{'_Thread_local' is a C11 extension}} in f()
[all …]
/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_thread_arg_retval.h11 // Tracks thread arguments and return value for leak checking.
27 // class keeps data up to the detach or join, as exited thread still can be
41 // prevent child thread from proceeding without thread handle.
42 template <typename CreateFn /* returns thread id on success, or 0 */>
47 if (uptr thread = fn()) in Create() local
48 CreateLocked(thread, detached, args); in Create()
51 // Returns thread arg and routine.
52 Args GetArgs(uptr thread) const;
54 // Mark thread as done and stores retval or remove if detached. Should be
55 // called by the thread.
[all …]
/llvm-project/lldb/test/API/commands/trace/multiple-threads/
H A DTestTraceStartStopMultipleThreads.py26 self.expect("thread trace dump instructions", substrs=["main.cpp:9"])
28 # We'll see here the second thread
30 self.expect("thread trace dump instructions", substrs=["main.cpp:4"])
49 # We'll see here the first thread
52 # We are in thread 2
53 self.expect("thread trace dump instructions", substrs=["main.cpp:9"])
54 self.expect("thread trace dump instructions 2", substrs=["main.cpp:9"])
57 self.expect("thread trace stop all")
60 self.expect("thread trace dump instructions 2", substrs=["main.cpp:9"])
62 … # We'll stop at the next breakpoint in thread 3, thread 2 and 3 will be alive, but only 3 traced.
[all …]
/llvm-project/llvm/test/tools/llvm-xray/X86/
H A Dstack-multithread.yaml1 #RUN: llvm-xray stack --per-thread-stacks %s | FileCheck %s --check-prefix PER-THREAD
12 - { type: 0, func-id: 1, cpu: 1, thread: 111, kind: function-enter, tsc: 10001 }
13 - { type: 0, func-id: 1, cpu: 1, thread: 111, kind: function-enter, tsc: 10100 }
14 - { type: 1, func-id: 1, cpu: 1, thread: 111, kind: function-exit, tsc: 10101 }
15 - { type: 1, func-id: 1, cpu: 1, thread: 111, kind: function-exit, tsc: 10301 }
16 - { type: 0, func-id: 1, cpu: 1, thread: 111, kind: function-enter, tsc: 10401 }
17 - { type: 0, func-id: 2, cpu: 1, thread: 111, kind: function-enter, tsc: 10501 }
18 - { type: 0, func-id: 3, cpu: 1, thread: 111, kind: function-enter, tsc: 10601 }
19 - { type: 1, func-id: 3, cpu: 1, thread: 111, kind: function-exit, tsc: 10701 }
20 - { type: 1, func-id: 2, cpu: 1, thread: 111, kind: function-exit, tsc: 10751 }
[all …]
/llvm-project/lldb/test/API/functionalities/gdb_remote_client/
H A DTestThreadSelectionBug.py28 thread = process.GetThreadByID(0x1)
30 thread.IsValid(),
31 "Make sure there is a thread 0x1 after we load the python OS plug-in",
33 thread = process.GetThreadByID(0x2)
35 thread.IsValid(),
36 "Make sure there is a thread 0x2 after we load the python OS plug-in",
38 thread = process.GetThreadByID(0x3)
40 thread.IsValid(),
41 "Make sure there is a thread 0x3 after we load the python OS plug-in",
44 # Verify that a thread other than 3 is selected.
[all …]

12345678910>>...139