Home
last modified time | relevance | path

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

12345678910>>...15

/external/chromium-trace/trace-viewer/src/model/
Dprocess_base.js27 this.threads = {};
45 for (var p in this.threads) {
56 for (var tid in this.threads)
57 this.threads[tid].shiftTimestampsForward(amount);
66 for (var tid in this.threads) {
67 var thread = this.threads[tid];
76 for (var tid in this.threads) {
77 var thread = this.threads[tid];
84 for (var tid in this.threads) {
85 this.threads[tid].updateBounds();
[all …]
/external/linux-tools-perf/util/
Dthread_map.c17 struct thread_map *threads; in thread_map__new_by_pid() local
28 threads = malloc(sizeof(*threads) + sizeof(pid_t) * items); in thread_map__new_by_pid()
29 if (threads != NULL) { in thread_map__new_by_pid()
31 threads->map[i] = atoi(namelist[i]->d_name); in thread_map__new_by_pid()
32 threads->nr = items; in thread_map__new_by_pid()
39 return threads; in thread_map__new_by_pid()
44 struct thread_map *threads = malloc(sizeof(*threads) + sizeof(pid_t)); in thread_map__new_by_tid() local
46 if (threads != NULL) { in thread_map__new_by_tid()
47 threads->map[0] = tid; in thread_map__new_by_tid()
48 threads->nr = 1; in thread_map__new_by_tid()
[all …]
Devlist.c32 struct thread_map *threads) in perf_evlist__init() argument
39 perf_evlist__set_maps(evlist, cpus, threads); in perf_evlist__init()
43 struct thread_map *threads) in perf_evlist__new() argument
48 perf_evlist__init(evlist, cpus, threads); in perf_evlist__new()
103 int nfds = evlist->cpus->nr * evlist->threads->nr * evlist->nr_entries; in perf_evlist__alloc_pollfd()
261 evlist->nr_mmaps = evlist->threads->nr; in perf_evlist__alloc_mmap()
288 for (thread = 0; thread < evlist->threads->nr; thread++) { in perf_evlist__mmap_per_cpu()
326 for (thread = 0; thread < evlist->threads->nr; thread++) { in perf_evlist__mmap_per_thread()
351 for (thread = 0; thread < evlist->threads->nr; thread++) { in perf_evlist__mmap_per_thread()
381 const struct thread_map *threads = evlist->threads; in perf_evlist__mmap() local
[all …]
Devlist.h32 struct thread_map *threads; member
39 struct thread_map *threads);
41 struct thread_map *threads);
64 struct thread_map *threads) in perf_evlist__set_maps() argument
67 evlist->threads = threads; in perf_evlist__set_maps()
Dvalues.c14 values->threads = 0; in perf_read_values_init()
33 for (i = 0; i < values->threads; i++) in perf_read_values_destroy()
61 for (i = 0; i < values->threads; i++) in perf_read_values__findnew_thread()
65 if (values->threads == values->threads_max) in perf_read_values__findnew_thread()
68 i = values->threads++; in perf_read_values__findnew_thread()
90 for (i = 0; i < values->threads; i++) { in perf_read_values__enlarge_counters()
143 for (i = 0; i < values->threads; i++) { in perf_read_values__display_pretty()
164 for (i = 0; i < values->threads; i++) { in perf_read_values__display_pretty()
187 for (i = 0; i < values->threads; i++) { in perf_read_values__display_raw()
203 for (i = 0; i < values->threads; i++) { in perf_read_values__display_raw()
[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_()
84 vg_assert(VG_(threads)[tid].tid == tid); in VG_()
85 return &VG_(threads)[tid]; in VG_()
93 if (VG_(threads)[tid].status == VgTs_Empty) return False; in VG_() local
117 return VG_(threads)[tid].exitreason != VgSrc_None; in VG_()
127 if (VG_(threads)[tid].status != VgTs_Empty && in VG_()
[all …]
Dm_machine.c49 return INSTR_PTR( VG_(threads)[tid].arch ); in VG_()
52 return STACK_PTR( VG_(threads)[tid].arch ); in VG_()
55 return FRAME_PTR( VG_(threads)[tid].arch ); in VG_()
59 INSTR_PTR( VG_(threads)[tid].arch ) = ip; in VG_()
62 STACK_PTR( VG_(threads)[tid].arch ) = sp; in VG_()
69 regs->r_pc = (ULong)VG_(threads)[tid].arch.vex.guest_EIP; in VG_()
70 regs->r_sp = (ULong)VG_(threads)[tid].arch.vex.guest_ESP; in VG_()
72 = VG_(threads)[tid].arch.vex.guest_EBP; in VG_()
74 regs->r_pc = VG_(threads)[tid].arch.vex.guest_RIP; in VG_()
75 regs->r_sp = VG_(threads)[tid].arch.vex.guest_RSP; in VG_()
[all …]
/external/chromium/chrome/browser/resources/gpu_internals/
Dtimeline_model.js92 this.threads = {};
97 if (!this.threads[tid])
98 this.threads[tid] = new TimelineThread(this, tid);
99 return this.threads[tid];
205 var threads = this.getAllThreads();
206 for (var tI = 0; tI < threads.length; tI++) {
207 var thread = threads[tI];
218 var threads = this.getAllThreads();
219 for (var tI = 0; tI < threads.length; tI++) {
220 var thread = threads[tI];
[all …]
/external/v8/test/cctest/
Dtest-lockers.cc192 static void StartJoinAndDeleteThreads(const i::List<JoinableThread*>& threads) { in StartJoinAndDeleteThreads() argument
193 for (int i = 0; i < threads.length(); i++) { in StartJoinAndDeleteThreads()
194 threads[i]->Start(); in StartJoinAndDeleteThreads()
196 for (int i = 0; i < threads.length(); i++) { in StartJoinAndDeleteThreads()
197 threads[i]->Join(); in StartJoinAndDeleteThreads()
199 for (int i = 0; i < threads.length(); i++) { in StartJoinAndDeleteThreads()
200 delete threads[i]; in StartJoinAndDeleteThreads()
212 i::List<JoinableThread*> threads(kNThreads); in TEST() local
215 threads.Add(new IsolateLockingThreadWithLocalContext(isolate)); in TEST()
217 StartJoinAndDeleteThreads(threads); in TEST()
[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/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_mutex_test.cc105 pthread_t threads[kThreads]; in TEST() local
107 pthread_create(&threads[i], 0, lock_thread<SpinMutex>, &data); in TEST()
109 pthread_join(threads[i], 0); in TEST()
116 pthread_t threads[kThreads]; in TEST() local
118 pthread_create(&threads[i], 0, try_thread<SpinMutex>, &data); in TEST()
120 pthread_join(threads[i], 0); in TEST()
127 pthread_t threads[kThreads]; in TEST() local
129 pthread_create(&threads[i], 0, lock_thread<BlockingMutex>, &data); in TEST()
131 pthread_join(threads[i], 0); in TEST()
/external/skia/tests/
DAtomicTest.cpp36 SkThread* threads[SK_ARRAY_COUNT(gAdds)]; in test_atomicAddTests() local
42 threads[i] = new SkThread(addABunchOfTimes, &gAdds[i]); in test_atomicAddTests()
43 threads[i]->setProcessorAffinity(gAdds[i].processorAffinity); in test_atomicAddTests()
44 threads[i]->start(); in test_atomicAddTests()
49 threads[i]->join(); in test_atomicAddTests()
50 delete threads[i]; in test_atomicAddTests()
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-trace/trace-viewer/src/tracks/
Dprocess_track.js64 var threads = [];
65 for (var tid in this.process.threads)
66 threads.push(this.process.threads[tid]);
67 threads.sort(tracing.model.Thread.compare);
70 threads.forEach(function(thread) {
/external/valgrind/main/coregrind/m_scheduler/
Dscheduler.c233 if (VG_(threads)[i].status == VgTs_Empty) { in VG_() local
234 VG_(threads)[i].status = VgTs_Init; in VG_() local
235 VG_(threads)[i].exitreason = VgSrc_None; in VG_() local
355 == VG_(threads)[tid].os_state.lwpid); in VG_()
372 vg_assert(VG_(threads)[tid].exitreason != VgSrc_None); in VG_()
388 if (VG_(threads)[tid].status == VgTs_WaitSys) { in VG_() local
392 tid, VG_(threads)[tid].os_state.lwpid); in VG_()
400 thread_abort(VG_(threads)[tid].os_state.lwpid); in VG_()
405 Int r = VG_(tkill)(VG_(threads)[tid].os_state.lwpid, VG_SIGVGKILL); in VG_()
433 vg_assert(VG_(threads)[tid].os_state.lwpid == VG_(gettid)()); in VG_()
[all …]
/external/compiler-rt/lib/tsan/tests/rtl/
Dtsan_thread.cc50 pthread_t threads[kAlive] = {}; in TEST() local
52 if (threads[i % kAlive]) in TEST()
53 pthread_join(threads[i % kAlive], 0); in TEST()
54 pthread_create(&threads[i % kAlive], 0, thread_alot_func, 0); in TEST()
57 pthread_join(threads[i], 0); in TEST()
/external/valgrind/main/none/tests/
Dpth_cvsimple.c65 pthread_t threads[3]; in main() local
67 pthread_create(&threads[0], NULL, watch_count, NULL); in main()
69 pthread_create(&threads[1], NULL, inc_count, NULL); in main()
70 pthread_create(&threads[2], NULL, inc_count, NULL); in main()
73 pthread_join(threads[i], NULL); in main()
/external/linux-tools-perf/
Dbuiltin-test.c267 struct thread_map *threads; in test__open_syscall_event() local
278 threads = thread_map__new(-1, getpid()); in test__open_syscall_event()
279 if (threads == NULL) { in test__open_syscall_event()
293 if (perf_evsel__open_per_thread(evsel, threads, false) < 0) { in test__open_syscall_event()
318 perf_evsel__close_fd(evsel, 1, threads->nr); in test__open_syscall_event()
322 thread_map__delete(threads); in test__open_syscall_event()
331 struct thread_map *threads; in test__open_syscall_event_on_all_cpus() local
344 threads = thread_map__new(-1, getpid()); in test__open_syscall_event_on_all_cpus()
345 if (threads == NULL) { in test__open_syscall_event_on_all_cpus()
368 if (perf_evsel__open(evsel, cpus, threads, false) < 0) { in test__open_syscall_event_on_all_cpus()
[all …]
/external/eigen/demos/mandelbrot/
Dmandelbrot.h45 MandelbrotThread **threads; variable
60 threads = new MandelbrotThread*[threadcount]; in MandelbrotWidget()
61 for(int th = 0; th < threadcount; th++) threads[th] = new MandelbrotThread(this, th); in MandelbrotWidget()
66 for(int th = 0; th < threadcount; th++) delete threads[th]; in ~MandelbrotWidget() local
67 delete[] threads; in ~MandelbrotWidget()
/external/chromium/chrome/browser/net/
Dchrome_net_log_unittest.cc57 ChromeNetLogTestThread threads[kThreads]; in TEST() local
60 threads[i].Init(&log); in TEST()
61 threads[i].Start(); in TEST()
65 threads[i].ReallyStart(); in TEST()
68 threads[i].Join(); in TEST()
/external/chromium/base/threading/
Dthread_local_storage_unittest.cc76 DelegateSimpleThread* threads[kNumThreads]; in TEST() local
84 threads[index] = new DelegateSimpleThread(thread_delegates[index], in TEST()
86 threads[index]->Start(); in TEST()
91 threads[index]->Join(); in TEST()
92 delete threads[index]; in TEST()
/external/valgrind/main/callgrind/tests/
DMakefile.am21 threads.vgtest threads.stderr.exp \
22 threads-use.vgtest threads-use.stderr.exp
24 check_PROGRAMS = clreq simwork threads program
/external/regex-re2/re2/testing/
Ddfa_test.cc17 DEFINE_int32(threads, 4, "number of threads");
65 vector<BuildThread*> threads; in TEST() local
69 threads.push_back(t); in TEST()
72 threads[j]->Start(); in TEST()
74 threads[j]->Join(); in TEST()
75 delete threads[j]; in TEST()
292 vector<SearchThread*> threads; in TEST() local
296 threads.push_back(t); in TEST()
299 threads[j]->Start(); in TEST()
301 threads[j]->Join(); in TEST()
[all …]
/external/protobuf/src/google/protobuf/stubs/
Donce_unittest.cc209 scoped_ptr<TestThread> threads[4]; in TEST_F() local
212 threads[i].reset(RunInitOnceInNewThread()); in TEST_F()
215 threads[i]->Join(); in TEST_F()
226 scoped_ptr<TestThread> threads[8]; in TEST_F() local
231 threads[i].reset(RunInitOnceInNewThread()); in TEST_F()
234 threads[i].reset(RunInitRecursiveOnceInNewThread()); in TEST_F()
246 threads[i]->Join(); in TEST_F()

12345678910>>...15