Home
last modified time | relevance | path

Searched full:threads (Results 1 – 25 of 2262) sorted by relevance

12345678910>>...91

/OK3568_Linux_fs/kernel/tools/perf/util/
H A Dthread_map.c35 struct perf_thread_map *threads; in thread_map__new_by_pid() local
46 threads = thread_map__alloc(items); in thread_map__new_by_pid()
47 if (threads != NULL) { in thread_map__new_by_pid()
49 perf_thread_map__set_pid(threads, i, atoi(namelist[i]->d_name)); in thread_map__new_by_pid()
50 threads->nr = items; in thread_map__new_by_pid()
51 refcount_set(&threads->refcnt, 1); in thread_map__new_by_pid()
58 return threads; in thread_map__new_by_pid()
63 struct perf_thread_map *threads = thread_map__alloc(1); in thread_map__new_by_tid() local
65 if (threads != NULL) { in thread_map__new_by_tid()
66 perf_thread_map__set_pid(threads, 0, tid); in thread_map__new_by_tid()
[all …]
/OK3568_Linux_fs/kernel/tools/perf/tests/
H A Dthread-map.c68 struct perf_thread_map *threads; in process_event() local
74 threads = thread_map__new_event(&event->thread_map); in process_event()
75 TEST_ASSERT_VAL("failed to alloc map", threads); in process_event()
77 TEST_ASSERT_VAL("wrong nr", threads->nr == 1); in process_event()
79 perf_thread_map__pid(threads, 0) == getpid()); in process_event()
81 perf_thread_map__comm(threads, 0) && in process_event()
82 !strcmp(perf_thread_map__comm(threads, 0), NAME)); in process_event()
84 refcount_read(&threads->refcnt) == 1); in process_event()
85 perf_thread_map__put(threads); in process_event()
91 struct perf_thread_map *threads; in test__thread_map_synthesize() local
[all …]
H A Dmmap-thread-lookup.c21 #define THREADS 4 macro
32 static struct thread_data threads[THREADS]; variable
81 struct thread_data *td = &threads[i]; in thread_create()
101 struct thread_data *td0 = &threads[0]; in threads_create()
110 for (i = 1; !err && i < THREADS; i++) in threads_create()
118 struct thread_data *td0 = &threads[0]; in threads_destroy()
126 for (i = 1; !err && i < THREADS; i++) in threads_destroy()
127 err = pthread_join(threads[i].pt, NULL); in threads_destroy()
162 * The threads_create will not return before all threads in mmap_events()
168 TEST_ASSERT_VAL("failed to create threads", !threads_create()); in mmap_events()
[all …]
/OK3568_Linux_fs/kernel/tools/lib/perf/
H A Dthreadmap.c47 struct perf_thread_map *threads = thread_map__alloc(1); in perf_thread_map__new_dummy() local
49 if (threads != NULL) { in perf_thread_map__new_dummy()
50 perf_thread_map__set_pid(threads, 0, -1); in perf_thread_map__new_dummy()
51 threads->nr = 1; in perf_thread_map__new_dummy()
52 refcount_set(&threads->refcnt, 1); in perf_thread_map__new_dummy()
54 return threads; in perf_thread_map__new_dummy()
57 static void perf_thread_map__delete(struct perf_thread_map *threads) in perf_thread_map__delete() argument
59 if (threads) { in perf_thread_map__delete()
62 WARN_ONCE(refcount_read(&threads->refcnt) != 0, in perf_thread_map__delete()
64 for (i = 0; i < threads->nr; i++) in perf_thread_map__delete()
[all …]
/OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-benchmark/tiobench/tiobench-0.3.3/
H A Davoid-glibc-clashes.patch38 pthread_attr_setscope(&(d->threads[i].thread_attr),
41 - d->threads[i].buffer = aligned_alloc( d->threads[i].blockSize );
42 + d->threads[i].buffer = _aligned_alloc( d->threads[i].blockSize );
43 if( d->threads[i].buffer == NULL )
49 unlink(d->threads[i].fileName);
50 - aligned_free( d->threads[i].buffer, d->threads[i].blockSize );
51 + _aligned_free( d->threads[i].buffer, d->threads[i].blockSize );
52 d->threads[i].buffer = 0;
54 pthread_attr_destroy( &(d->threads[i].thread_attr) );
/OK3568_Linux_fs/kernel/tools/lib/perf/tests/
H A Dtest-evsel.c52 struct perf_thread_map *threads; in test_stat_thread() local
60 threads = perf_thread_map__new_dummy(); in test_stat_thread()
61 __T("failed to create threads", threads); in test_stat_thread()
63 perf_thread_map__set_pid(threads, 0, 0); in test_stat_thread()
68 err = perf_evsel__open(evsel, NULL, threads); in test_stat_thread()
77 perf_thread_map__put(threads); in test_stat_thread()
84 struct perf_thread_map *threads; in test_stat_thread_enable() local
93 threads = perf_thread_map__new_dummy(); in test_stat_thread_enable()
94 __T("failed to create threads", threads); in test_stat_thread_enable()
96 perf_thread_map__set_pid(threads, 0, 0); in test_stat_thread_enable()
[all …]
H A Dtest-evlist.c85 struct perf_thread_map *threads; in test_stat_thread() local
98 threads = perf_thread_map__new_dummy(); in test_stat_thread()
99 __T("failed to create threads", threads); in test_stat_thread()
101 perf_thread_map__set_pid(threads, 0, 0); in test_stat_thread()
116 perf_evlist__set_maps(evlist, NULL, threads); in test_stat_thread()
129 perf_thread_map__put(threads); in test_stat_thread()
136 struct perf_thread_map *threads; in test_stat_thread_enable() local
151 threads = perf_thread_map__new_dummy(); in test_stat_thread_enable()
152 __T("failed to create threads", threads); in test_stat_thread_enable()
154 perf_thread_map__set_pid(threads, 0, 0); in test_stat_thread_enable()
[all …]
/OK3568_Linux_fs/kernel/Documentation/driver-api/dmaengine/
H A Ddmatest.rst63 (shared) parameters used for all threads will use the new values.
64 After the channels are specified, each thread is set as pending. All threads
72 Once started a message like " dmatest: Added 1 threads using dma0chan0" is
161 dmatest: Added 1 threads using dma0chan2
169 dmatest: Added 1 threads using dma0chan1
171 dmatest: Added 1 threads using dma0chan2
181 dmatest: Added 1 threads using dma0chan0
182 dmatest: Added 1 threads using dma0chan3
183 dmatest: Added 1 threads using dma0chan4
184 dmatest: Added 1 threads using dma0chan5
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/share/doc/gdb/
H A DThreads.html17 <title>Debugging with GDB: Threads</title>
19 <meta name="description" content="Debugging with GDB: Threads">
20 <meta name="keywords" content="Debugging with GDB: Threads">
64 <a name="Threads"></a>
70 <a name="Debugging-Programs-with-Multiple-Threads"></a>
71 <h3 class="section">4.10 Debugging Programs with Multiple Threads</h3>
73 <a name="index-threads-of-execution"></a>
74 <a name="index-multiple-threads"></a>
75 <a name="index-switching-threads"></a>
78 of threads differ from one operating system to another, but in general
[all …]
H A DAll_002dStop-Mode.html76 <em>all</em> threads of execution stop, not just the current thread. This
78 switching between threads, without worrying that things may change
81 <p>Conversely, whenever you restart the program, <em>all</em> threads start
85 <p>In particular, <small>GDB</small> cannot single-step all threads in lockstep.
87 system (not controlled by <small>GDB</small>), other threads may
89 single step. Moreover, in general other threads stop in the middle of a
99 <a name="index-switching-threads-automatically"></a>
119 threads from preempting the current thread while you are stepping, so
121 threads never get a chance to run when you step, and they are
135 <a name="index-resume-threads-of-multiple-processes-simultaneously"></a>
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/share/doc/gdb/
H A DThreads.html17 <title>Debugging with GDB: Threads</title>
19 <meta name="description" content="Debugging with GDB: Threads">
20 <meta name="keywords" content="Debugging with GDB: Threads">
64 <a name="Threads"></a>
70 <a name="Debugging-Programs-with-Multiple-Threads"></a>
71 <h3 class="section">4.10 Debugging Programs with Multiple Threads</h3>
73 <a name="index-threads-of-execution"></a>
74 <a name="index-multiple-threads"></a>
75 <a name="index-switching-threads"></a>
78 of threads differ from one operating system to another, but in general
[all …]
H A DAll_002dStop-Mode.html76 <em>all</em> threads of execution stop, not just the current thread. This
78 switching between threads, without worrying that things may change
81 <p>Conversely, whenever you restart the program, <em>all</em> threads start
85 <p>In particular, <small>GDB</small> cannot single-step all threads in lockstep.
87 system (not controlled by <small>GDB</small>), other threads may
89 single step. Moreover, in general other threads stop in the middle of a
99 <a name="index-switching-threads-automatically"></a>
119 threads from preempting the current thread while you are stepping, so
121 threads never get a chance to run when you step, and they are
135 <a name="index-resume-threads-of-multiple-processes-simultaneously"></a>
[all …]
/OK3568_Linux_fs/buildroot/dl/stressapptest/git/
H A DREADME.md14 ./stressapptest -s 20 -M 256 -m 8 -W # Test 256MB, running 8 "warm copy" threads. Exit after 20 …
20 * -m threads : number of memory copy threads to run (auto-detect to number of CPUs)
23 * --listen : run a thread to listen for and respond to network threads. (0)
32 …m 8 -C 8 -W # Allocate 256MB of memory and run 8 "warm copy" threads, and 8 cpu load threads. Exit…
33 …tmp/file2 # Run 2 file IO threads, and autodetect memory size and core count to select allocated m…
75threads doing memory copies and directIO disk read/write. It allocates a large block of memory (ty…
84 Worker threads are spawned, which draw pages from an "empty" queue and a "valid" queue, and copy th…
85 Some threads memory copy the data.
86 Some threads invert the data in place.
87 Some threads write the data to disk, and read it to the new location.
H A Dstressapptest.124 .B \-C <threads>
25 Number of memory CPU stress threads to run.
40 .B \-i <threads>
41 Number of memory invert threads to run.
48 .B \-m <threads>
49 Number of memory copy threads to run.
90 threads to operate.
123 Run threads that listen for incoming net connections.
154 .B \-\-random-threads <number>
155 Number of random threads for each disk write thread (\-d).
/OK3568_Linux_fs/kernel/Documentation/power/
H A Dfreezing-of-tasks.rst11 kernel threads are controlled during hibernation or system-wide suspend (on some
19 PF_NOFREEZE unset (all user space processes and some kernel threads) are
29 fake signal to all user space processes, and wakes up all the kernel threads.
37 frozen before kernel threads.
44 signal-handling code, but the freezable kernel threads need to call it
64 threads must call try_to_freeze() somewhere or use one of the
80 - freezes all tasks (including kernel threads) because we can't freeze
81 kernel threads without freezing userspace tasks
84 - thaws only kernel threads; this is particularly useful if we need to do
85 anything special in between thawing of kernel threads and thawing of
[all …]
/OK3568_Linux_fs/kernel/Documentation/x86/
H A Dtopology.rst24 threads, cores, packages, etc.
37 - threads
95 A core consists of 1 or more threads. It does not matter whether the threads
96 are SMT- or CMT-type threads.
105 The number of threads in a core. The number of threads in a package can be
111 Threads chapter
116 AMDs nomenclature for CMT threads is "Compute Unit Core". The kernel always
123 The cpumask contains all online threads in the package to which a thread
126 The number of online threads is also printed in /proc/cpuinfo "siblings."
130 The cpumask contains all online threads in the core to which a thread
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/
H A Dmembarrier.h34 * @MEMBARRIER_CMD_GLOBAL: Execute a memory barrier on all running threads.
36 * is ensured that all running threads have passed
40 * (non-running threads are de facto in such a
41 * state). This covers threads from all processes
44 * Execute a memory barrier on all running threads
48 * is ensured that all running threads have passed
52 * (non-running threads are de facto in such a
53 * state). This only covers threads from processes
70 * threads siblings have passed through a state
74 * (non-running threads are de facto in such a
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/
H A Dmembarrier.h34 * @MEMBARRIER_CMD_GLOBAL: Execute a memory barrier on all running threads.
36 * is ensured that all running threads have passed
40 * (non-running threads are de facto in such a
41 * state). This covers threads from all processes
44 * Execute a memory barrier on all running threads
48 * is ensured that all running threads have passed
52 * (non-running threads are de facto in such a
53 * state). This only covers threads from processes
70 * threads siblings have passed through a state
74 * (non-running threads are de facto in such a
[all …]
/OK3568_Linux_fs/kernel/include/uapi/linux/
H A Dmembarrier.h34 * @MEMBARRIER_CMD_GLOBAL: Execute a memory barrier on all running threads.
36 * is ensured that all running threads have passed
40 * (non-running threads are de facto in such a
41 * state). This covers threads from all processes
44 * Execute a memory barrier on all running threads
48 * is ensured that all running threads have passed
52 * (non-running threads are de facto in such a
53 * state). This only covers threads from processes
70 * threads siblings have passed through a state
74 * (non-running threads are de facto in such a
[all …]
/OK3568_Linux_fs/kernel/arch/powerpc/kvm/
H A Dbook3s_hv_ras.c194 * - On TB error, HMI interrupt is reported on all the threads of the core
203 * All threads need to co-ordinate before making opal hmi handler.
204 * All threads will use sibling_subcore_state->in_guest[] (shared by all
205 * threads in the core) in paca which holds information about whether
208 * subcore status. Only primary threads from each subcore is responsible
215 * primary threads to decide who takes up the responsibility.
222 * - All other threads which are in host will call
227 * - Once all primary threads clear in_guest[0-3], all of them will invoke
229 * - Now all threads will wait for TB resync to complete by invoking
233 * - All other threads will now come out of resync wait loop and proceed
[all …]
/OK3568_Linux_fs/buildroot/dl/stressapptest/git/src/
H A Dsat.h124 // Start up worker threads.
126 // Spawn worker threads.
128 // Reap worker threads.
132 // Delete worker threads.
140 // Collect error counts from threads.
199 // polling threads.
209 // cache coherency threads.
224 int file_threads_; // Threads of file IO.
225 int net_threads_; // Threads of network IO.
226 int listen_threads_; // Threads for network IO to connect.
[all …]
H A Dsat.cc151 logprintf(7, "Log: Defaulting to %d copy threads\n", memory_threads_); in CheckEnvironment()
458 // Use fill threads to do this. in InitializePages()
462 logprintf(12, "Starting Fill threads: %d threads, %d pages\n", in InitializePages()
464 // Initialize the fill threads. in InitializePages()
469 logprintf(12, "Starting Fill Threads %d: %d pages\n", in InitializePages()
474 logprintf(12, "Starting Fill Threads %d: %d pages\n", in InitializePages()
481 // Spawn the fill threads. in InitializePages()
487 // Reap the finished fill threads. in InitializePages()
701 cc_test_ = false; // Flag to trigger cc threads. in Sat()
716 // Default to autodetect number of cpus, and run that many threads. in Sat()
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/powerpc/dscr/
H A Ddscr_default_test.c6 * it's sysfs interface and then verifies that all threads
16 static unsigned long result[THREADS];
62 pthread_t threads[THREADS]; in dscr_default() local
63 unsigned long i, *status[THREADS]; in dscr_default()
74 /* Spawn all testing threads */ in dscr_default()
75 for (i = 0; i < THREADS; i++) { in dscr_default()
76 if (pthread_create(&threads[i], NULL, do_test, (void *)i)) { in dscr_default()
104 for (i = 0; i < THREADS; i++) { in dscr_default()
105 if (pthread_join(threads[i], (void **)&(status[i]))) { in dscr_default()
/OK3568_Linux_fs/kernel/tools/perf/bench/
H A Dsynthesize.c34 OPT_UINTEGER('m', "min-threads", &min_threads,
35 "Minimum number of threads in multithreaded bench"),
36 OPT_UINTEGER('M', "max-threads", &max_threads,
37 "Maximum number of threads in multithreaded bench"),
62 struct perf_thread_map *threads, in do_run_single_threaded() argument
81 target, threads, in do_run_single_threaded()
116 struct perf_thread_map *threads; in run_single_threaded() local
125 threads = thread_map__new_by_pid(getpid()); in run_single_threaded()
126 if (!threads) { in run_single_threaded()
136 err = do_run_single_threaded(session, threads, &target, false); in run_single_threaded()
[all …]
H A Dfutex-wake-parallel.c5 * Block a bunch of threads and let parallel waker threads wakeup an
47 /* all threads will block on the same futex -- hash bucket chaos ;) */
61 OPT_UINTEGER('t', "threads", &nblocked_threads, "Specify amount of threads"),
62 OPT_UINTEGER('w', "nwakers", &nwaking_threads, "Specify amount of waking threads"),
102 /* create and block all threads */ in wakeup_threads()
149 /* create and block all threads */ in block_threads()
180 printf("[Run %d]: Avg per-thread latency (waking %d/%d threads) " in print_run()
195 printf("Avg per-thread latency (waking %d/%d threads) in %.4f ms (+-%.2f%%)\n", in print_summary()
268 printf("Run summary [PID %d]: blocking on %d threads (at [%s] " in bench_futex_wake_parallel()
269 "futex %p), %d threads waking up %d at a time.\n\n", in bench_futex_wake_parallel()
[all …]

12345678910>>...91