Home
last modified time | relevance | path

Searched refs:threads (Results 1 – 25 of 702) sorted by relevance

12345678910>>...29

/external/linux-tools-perf/perf-3.12.0/tools/perf/util/
Dthread_map.c24 struct thread_map *threads; in thread_map__new_by_pid() local
35 threads = malloc(sizeof(*threads) + sizeof(pid_t) * items); in thread_map__new_by_pid()
36 if (threads != NULL) { in thread_map__new_by_pid()
38 threads->map[i] = atoi(namelist[i]->d_name); in thread_map__new_by_pid()
39 threads->nr = items; in thread_map__new_by_pid()
46 return threads; in thread_map__new_by_pid()
51 struct thread_map *threads = malloc(sizeof(*threads) + sizeof(pid_t)); in thread_map__new_by_tid() local
53 if (threads != NULL) { in thread_map__new_by_tid()
54 threads->map[0] = tid; in thread_map__new_by_tid()
55 threads->nr = 1; in thread_map__new_by_tid()
[all …]
/external/chromium_org/v8/src/base/platform/
Dcondition-variable-unittest.cc62 ThreadWithMutexAndConditionVariable threads[kThreadCount]; in TEST() local
65 LockGuard<Mutex> lock_guard(&threads[n].mutex_); in TEST()
66 EXPECT_FALSE(threads[n].running_); in TEST()
67 EXPECT_FALSE(threads[n].finished_); in TEST()
68 threads[n].Start(); in TEST()
70 while (!threads[n].running_) { in TEST()
71 threads[n].cv_.Wait(&threads[n].mutex_); in TEST()
76 LockGuard<Mutex> lock_guard(&threads[n].mutex_); in TEST()
77 EXPECT_TRUE(threads[n].running_); in TEST()
78 EXPECT_FALSE(threads[n].finished_); in TEST()
[all …]
/external/chromium_org/third_party/tcmalloc/vendor/packages/deb/
Ddocs25 doc/tcmalloc-opspercpusec.vs.threads.1024.bytes.png
26 doc/tcmalloc-opspercpusec.vs.threads.128.bytes.png
27 doc/tcmalloc-opspercpusec.vs.threads.131072.bytes.png
28 doc/tcmalloc-opspercpusec.vs.threads.16384.bytes.png
29 doc/tcmalloc-opspercpusec.vs.threads.2048.bytes.png
30 doc/tcmalloc-opspercpusec.vs.threads.256.bytes.png
31 doc/tcmalloc-opspercpusec.vs.threads.32768.bytes.png
32 doc/tcmalloc-opspercpusec.vs.threads.4096.bytes.png
33 doc/tcmalloc-opspercpusec.vs.threads.512.bytes.png
34 doc/tcmalloc-opspercpusec.vs.threads.64.bytes.png
[all …]
/external/chromium-trace/trace-viewer/src/tracing/trace_model/
Dprocess_base.js32 this.threads = {};
57 for (var p in this.threads) {
82 for (var tid in this.threads)
83 this.threads[tid].shiftTimestampsForward(amount);
93 for (var tid in this.threads) {
94 var thread = this.threads[tid];
122 for (var tid in this.threads) {
123 var thread = this.threads[tid];
130 for (var tid in this.threads) {
131 this.threads[tid].updateBounds();
[all …]
/external/chromium-trace/trace-viewer/src/tracing/importer/linux_perf/
Dcpufreq_parser_test.js22 var threads = m.getAllThreads();
23 assertEquals(1, threads.length);
25 var thread = threads[0];
48 var threads = m.getAllThreads();
49 assertEquals(1, threads.length);
51 var thread = threads[0];
72 var threads = m.getAllThreads();
73 assertEquals(1, threads.length);
75 var thread = threads[0];
88 var threads = m.getAllThreads();
[all …]
Dsync_parser_test.js35 var threads = m.getAllThreads();
36 assertEquals(4, threads.length);
38 var threads = m.findAllThreadsNamed('s3c-fb');
39 assertEquals(1, threads.length);
40 assertEquals(1, threads[0].sliceGroup.length);
42 var threads = m.findAllThreadsNamed('kworker/u:5');
43 assertEquals(1, threads.length);
44 assertEquals(1, threads[0].sliceGroup.length);
46 threads[0].sliceGroup.slices[0].title);
Dandroid_parser_test.js45 var threads = m.getAllThreads();
46 assertEquals(1, threads.length);
48 var thread = threads[0];
63 var threads = m.getAllThreads();
64 assertEquals(1, threads.length);
66 var thread = threads[0];
85 var threads = m.getAllThreads();
86 assertEquals(1, threads.length);
88 var thread = threads[0];
133 var threads = m.getAllThreads();
[all …]
Dirq_parser_test.js25 var threads = m.getAllThreads();
26 assertEquals(2, threads.length);
28 var threads = m.findAllThreadsNamed('irqs cpu 1');
29 assertEquals(1, threads.length);
30 assertEquals(1, threads[0].sliceGroup.length);
32 var threads = m.findAllThreadsNamed('softirq cpu 0');
33 assertEquals(1, threads.length);
34 assertEquals(1, threads[0].sliceGroup.length);
/external/chromium-trace/trace-viewer/src/tracing/importer/
Dv8_log_importer_test.js19 var threads = p.findAllThreadsNamed('V8 PC');
20 var t = threads[0];
32 var threads = p.findAllThreadsNamed('V8 PC');
33 var t = threads[0];
45 var threads = p.findAllThreadsNamed('V8 PC');
46 var t = threads[0];
55 var threads = p.findAllThreadsNamed('V8 Timers');
56 assertNotUndefined(threads);
57 assertEquals(threads.length, 1);
58 var t = threads[0];
[all …]
/external/lldb/test/lang/c/stepping/
DTestStepAndBreakpoints.py71 threads = lldbutil.get_threads_stopped_at_breakpoint (process, break_1_in_main)
73 if len(threads) != 1:
76 thread = threads[0]
85 threads = lldbutil.get_threads_stopped_at_breakpoint (process, break_in_a)
86 if len(threads) != 1:
93 thread = threads[0]
98 threads = lldbutil.get_threads_stopped_at_breakpoint (process, break_in_b)
99 if len(threads) != 1:
101 thread = threads[0]
168 threads = lldbutil.get_threads_stopped_at_breakpoint (process, break_in_b)
[all …]
/external/valgrind/main/coregrind/
Dm_threadstate.c47 ThreadState VG_(threads)[VG_N_THREADS] __attribute__((aligned(16)));
59 ANNOTATE_BENIGN_RACE_SIZED(&VG_(threads)[tid].status, in VG_()
60 sizeof(VG_(threads)[tid].status), "")); in VG_()
62 ANNOTATE_BENIGN_RACE_SIZED(&VG_(threads)[tid].os_state.exitcode, in VG_()
63 sizeof(VG_(threads)[tid].os_state.exitcode), in VG_()
95 vg_assert(VG_(threads)[tid].tid == tid); in VG_()
96 return &VG_(threads)[tid]; in VG_()
104 if (VG_(threads)[tid].status == VgTs_Empty) return False; in VG_() local
128 return VG_(threads)[tid].exitreason != VgSrc_None; in VG_()
138 if (VG_(threads)[tid].status != VgTs_Empty && in VG_()
[all …]
/external/lldb/test/lang/objc/objc-stepping/
DTestObjCStepping.py87 threads = lldbutil.get_threads_stopped_at_breakpoint (process, break1)
88 if len(threads) != 1:
91 thread = threads[0]
116 threads = lldbutil.continue_to_breakpoint (process, break2)
117 self.assertTrue (len(threads) == 1, "Continued to second breakpoint in main.")
120 thread = threads[0]
125 threads = lldbutil.continue_to_breakpoint (process, break_returnStruct_call_super)
126 … self.assertTrue (len(threads) == 1, "Stepped to the call super line in Source returnsStruct.")
127 thread = threads[0]
136 threads = lldbutil.continue_to_breakpoint (process, break3)
[all …]
/external/chromium_org/third_party/webrtc/test/channel_transport/
Dudp_socket_manager_unittest.cc28 uint8_t threads = 1; in TEST() local
29 UdpSocketManager* mgr = UdpSocketManager::Create(id, threads); in TEST()
31 EXPECT_FALSE(mgr->Init(id, threads)) in TEST()
40 uint8_t threads = 1; in TEST() local
41 UdpSocketManager* mgr = UdpSocketManager::Create(id, threads); in TEST()
65 uint8_t threads = 1; in TEST()
66 UdpSocketManager* mgr = UdpSocketManager::Create(id, threads); in TEST()
/external/lldb/test/functionalities/inline-stepping/
DTestInlineStepping.py68 threads = lldbutil.get_stopped_threads (self.process, lldb.eStopReasonPlanComplete)
69 if len(threads) != 1:
74 self.thread = threads[0]
129 threads = lldbutil.get_threads_stopped_at_breakpoint (self.process, break_1_in_main)
131 if len(threads) != 1:
134 self.thread = threads[0]
163 threads = lldbutil.continue_to_breakpoint (self.process, break_2_in_main)
164 …self.assertTrue (len(threads) == 1, "Successfully ran to call site of second caller_trivial_1 call…
165 self.thread = threads[0]
193 threads = lldbutil.continue_to_breakpoint (self.process, break_3_in_main)
[all …]
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/EventModifiers/
DThreadOnlyModifierDebuggee.java84 Thread[] threads = new Thread[10]; in run() local
85 for (int i = 0; i < threads.length; ++i) { in run()
86 threads[i] = new Thread(new TestThread(obj)); in run()
87 threads[i].setName("TestThread#" + i); in run()
91 THREAD_ONLY = threads[threads.length - 1]; in run()
101 for (int i = 0; i < threads.length; ++i) { in run()
102 runThread(threads[i]); in run()
/external/lldb/test/lang/objc/objc-dynamic-value/
DTestObjCDynamicValue.py84 threads = lldbutil.get_threads_stopped_at_breakpoint (process, main_before_setProperty_bkpt)
85 self.assertTrue (len(threads) == 1)
86 thread = threads[0]
129 threads = lldbutil.get_stopped_threads (process, lldb.eStopReasonPlanComplete)
130 self.assertTrue (len(threads) == 1)
131 line_entry = threads[0].GetFrameAtIndex(0).GetLineEntry()
138 threads = lldbutil.continue_to_breakpoint (process, handle_SourceBase_bkpt)
139 self.assertTrue (len(threads) == 1)
140 thread = threads[0]
173 threads = lldbutil.continue_to_breakpoint (process, handle_SourceBase_bkpt)
[all …]
/external/eigen/Eigen/src/Core/products/
DParallelizer.h117 Index threads = std::min<Index>(nbThreads(), max_threads); in parallelize_gemm()
119 if(threads==1) in parallelize_gemm()
128 Index blockCols = (cols / threads) & ~Index(0x3); in parallelize_gemm()
129 Index blockRows = (rows / threads) & ~Index(0x7); in parallelize_gemm()
131 GemmParallelInfo<Index>* info = new GemmParallelInfo<Index>[threads]; in parallelize_gemm()
133 #pragma omp parallel for schedule(static,1) num_threads(threads) in parallelize_gemm()
134 for(Index i=0; i<threads; ++i) in parallelize_gemm()
137 Index actualBlockRows = (i+1==threads) ? rows-r0 : blockRows; in parallelize_gemm()
140 Index actualBlockCols = (i+1==threads) ? cols-c0 : blockCols; in parallelize_gemm()
/external/compiler-rt/lib/tsan/tests/unit/
Dtsan_mutex_test.cc99 pthread_t threads[kThreads]; in TEST() local
101 pthread_create(&threads[i], 0, write_mutex_thread<Mutex>, &data); in TEST()
103 pthread_join(threads[i], 0); in TEST()
109 pthread_t threads[kThreads]; in TEST() local
111 pthread_create(&threads[i], 0, read_mutex_thread<Mutex>, &data); in TEST()
113 pthread_join(threads[i], 0); in TEST()
119 pthread_t threads[kThreads]; in TEST() local
121 pthread_create(&threads[i], 0, write_mutex_thread<SpinMutex>, &data); in TEST()
123 pthread_join(threads[i], 0); in TEST()
/external/libcxx/test/thread/thread.threads/thread.thread.class/thread.thread.id/
DAndroid.mk17 test_makefile := external/libcxx/test/thread/thread.threads/thread.thread.class/thread.thread.id/An…
19 test_name := thread/thread.threads/thread.thread.class/thread.thread.id/default
23 test_name := thread/thread.threads/thread.thread.class/thread.thread.id/thread_id
27 test_name := thread/thread.threads/thread.thread.class/thread.thread.id/lt
31 test_name := thread/thread.threads/thread.thread.class/thread.thread.id/copy
35 test_name := thread/thread.threads/thread.thread.class/thread.thread.id/assign
39 test_name := thread/thread.threads/thread.thread.class/thread.thread.id/stream
43 test_name := thread/thread.threads/thread.thread.class/thread.thread.id/eq
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_mutex_test.cc107 pthread_t threads[kThreads]; in TEST() local
109 PTHREAD_CREATE(&threads[i], 0, lock_thread<SpinMutex>, &data); in TEST()
111 PTHREAD_JOIN(threads[i], 0); in TEST()
118 pthread_t threads[kThreads]; in TEST() local
120 PTHREAD_CREATE(&threads[i], 0, try_thread<SpinMutex>, &data); in TEST()
122 PTHREAD_JOIN(threads[i], 0); in TEST()
129 pthread_t threads[kThreads]; in TEST() local
131 PTHREAD_CREATE(&threads[i], 0, lock_thread<BlockingMutex>, &data); in TEST()
133 PTHREAD_JOIN(threads[i], 0); in TEST()
/external/chromium_org/v8/test/cctest/
Dtest-lockers.cc194 static void StartJoinAndDeleteThreads(const i::List<JoinableThread*>& threads) { in StartJoinAndDeleteThreads() argument
195 for (int i = 0; i < threads.length(); i++) { in StartJoinAndDeleteThreads()
196 threads[i]->Start(); in StartJoinAndDeleteThreads()
198 for (int i = 0; i < threads.length(); i++) { in StartJoinAndDeleteThreads()
199 threads[i]->Join(); in StartJoinAndDeleteThreads()
201 for (int i = 0; i < threads.length(); i++) { in StartJoinAndDeleteThreads()
202 delete threads[i]; in StartJoinAndDeleteThreads()
214 i::List<JoinableThread*> threads(kNThreads); in TEST() local
217 threads.Add(new IsolateLockingThreadWithLocalContext(isolate)); in TEST()
219 StartJoinAndDeleteThreads(threads); in TEST()
[all …]
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/VirtualMachine/
DAllThreadsTest.java72 int threads = reply.getNextValueAsInt(); in testAllThreads003() local
73 logWriter.println("Number of threads = " + threads); in testAllThreads003()
74 assertTrue("Number of threads must be > 0", threads > 0); in testAllThreads003()
76 for (int i = 0; i < threads; i++) { in testAllThreads003()
131 int threads = reply.getNextValueAsInt(); in testAllThreads002() local
132 logWriter.println("Number of threads = " + threads); in testAllThreads002()
133 assertTrue("Number of threads must be > 0", threads > 0); in testAllThreads002()
136 for (int i = 0; i < threads; i++) { in testAllThreads002()
202 int threads = reply.getNextValueAsInt(); in testAllThreads001() local
203 logWriter.println("Number of threads = " + threads); in testAllThreads001()
[all …]
/external/skia/tests/
DAtomicTest.cpp36 SkThread* threads[SK_ARRAY_COUNT(gAdds)]; in DEF_TEST() local
42 threads[i] = new SkThread(addABunchOfTimes, &gAdds[i]); in DEF_TEST()
43 threads[i]->setProcessorAffinity(gAdds[i].processorAffinity); in DEF_TEST()
44 threads[i]->start(); in DEF_TEST()
49 threads[i]->join(); in DEF_TEST()
50 delete threads[i]; in DEF_TEST()
DTLSTest.cpp34 SkThread* threads[8]; in test_threads() local
35 int N = SK_ARRAY_COUNT(threads); in test_threads()
39 threads[i] = new SkThread(proc); in test_threads()
43 threads[i]->start(); in test_threads()
47 threads[i]->join(); in test_threads()
51 delete threads[i]; in test_threads()
/external/chromium_org/third_party/skia/tests/
DTLSTest.cpp34 SkThread* threads[8]; in test_threads() local
35 int N = SK_ARRAY_COUNT(threads); in test_threads()
39 threads[i] = new SkThread(proc); in test_threads()
43 threads[i]->start(); in test_threads()
47 threads[i]->join(); in test_threads()
51 delete threads[i]; in test_threads()

12345678910>>...29