| /OK3568_Linux_fs/kernel/tools/perf/util/ |
| H A D | thread_map.c | 35 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 …]
|
| H A D | values.c | 22 values->threads = 0; in perf_read_values_init() 54 for (i = 0; i < values->threads; i++) in perf_read_values_destroy() 93 for (i = 0; i < values->threads; i++) in perf_read_values__findnew_thread() 97 if (values->threads == values->threads_max) { in perf_read_values__findnew_thread() 103 i = values->threads; in perf_read_values__findnew_thread() 112 values->threads = i + 1; in perf_read_values__findnew_thread() 134 for (i = 0; i < values->threads; i++) { in perf_read_values__enlarge_counters() 217 for (i = 0; i < values->threads; i++) { in perf_read_values__display_pretty() 238 for (i = 0; i < values->threads; i++) { in perf_read_values__display_pretty() 261 for (i = 0; i < values->threads; i++) { in perf_read_values__display_raw() [all …]
|
| H A D | machine.c | 63 struct threads *threads = &machine->threads[i]; in machine__threads_init() local 64 threads->entries = RB_ROOT_CACHED; in machine__threads_init() 65 init_rwsem(&threads->lock); in machine__threads_init() 66 threads->nr = 0; in machine__threads_init() 67 INIT_LIST_HEAD(&threads->dead); in machine__threads_init() 68 threads->last_match = NULL; in machine__threads_init() 200 struct threads *threads = &machine->threads[i]; in machine__delete_threads() local 201 down_write(&threads->lock); in machine__delete_threads() 202 nd = rb_first_cached(&threads->entries); in machine__delete_threads() 209 up_write(&threads->lock); in machine__delete_threads() [all …]
|
| /OK3568_Linux_fs/kernel/tools/perf/tests/ |
| H A D | thread-map.c | 68 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 D | event-times.c | 62 struct perf_thread_map *threads; in attach__current_disabled() local 67 threads = thread_map__new(-1, getpid(), UINT_MAX); in attach__current_disabled() 68 if (threads == NULL) { in attach__current_disabled() 75 err = evsel__open_per_thread(evsel, threads); in attach__current_disabled() 81 perf_thread_map__put(threads); in attach__current_disabled() 88 struct perf_thread_map *threads; in attach__current_enabled() local 93 threads = thread_map__new(-1, getpid(), UINT_MAX); in attach__current_enabled() 94 if (threads == NULL) { in attach__current_enabled() 99 err = evsel__open_per_thread(evsel, threads); in attach__current_enabled() 101 perf_thread_map__put(threads); in attach__current_enabled()
|
| H A D | mmap-basic.c | 36 struct perf_thread_map *threads; in test__basic_mmap() local 49 threads = thread_map__new(-1, getpid(), UINT_MAX); in test__basic_mmap() 50 if (threads == NULL) { in test__basic_mmap() 76 perf_evlist__set_maps(&evlist->core, cpus, threads); in test__basic_mmap() 93 if (evsel__open(evsels[i], cpus, threads) < 0) { in test__basic_mmap() 162 threads = NULL; in test__basic_mmap() 166 perf_thread_map__put(threads); in test__basic_mmap()
|
| /OK3568_Linux_fs/kernel/tools/lib/perf/ |
| H A D | threadmap.c | 47 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 …]
|
| H A D | evlist.c | 56 perf_thread_map__put(evsel->threads); in __perf_evlist__propagate_maps() 57 evsel->threads = perf_thread_map__get(evlist->threads); in __perf_evlist__propagate_maps() 130 perf_thread_map__put(evlist->threads); in perf_evlist__exit() 133 evlist->threads = NULL; in perf_evlist__exit() 151 struct perf_thread_map *threads) in perf_evlist__set_maps() argument 165 if (threads != evlist->threads) { in perf_evlist__set_maps() 166 perf_thread_map__put(evlist->threads); in perf_evlist__set_maps() 167 evlist->threads = perf_thread_map__get(threads); in perf_evlist__set_maps() 182 err = perf_evsel__open(evsel, evsel->cpus, evsel->threads); in perf_evlist__open() 292 int nr_threads = perf_thread_map__nr(evlist->threads); in perf_evlist__alloc_pollfd() [all …]
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-benchmark/tiobench/tiobench-0.3.3/ |
| H A D | avoid-glibc-clashes.patch | 38 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 D | test-evsel.c | 52 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 D | test-evlist.c | 85 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 …]
|
| H A D | test-threadmap.c | 15 struct perf_thread_map *threads; in main() local 21 threads = perf_thread_map__new_dummy(); in main() 22 if (!threads) in main() 25 perf_thread_map__get(threads); in main() 26 perf_thread_map__put(threads); in main() 27 perf_thread_map__put(threads); in main()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/powerpc/math/ |
| H A D | vmx_signal.c | 95 int i, j, rc, threads; in test_signal_vmx() local 102 threads = sysconf(_SC_NPROCESSORS_ONLN) * THREAD_FACTOR; in test_signal_vmx() 103 tids = malloc(threads * sizeof(pthread_t)); in test_signal_vmx() 107 threads_starting = threads; in test_signal_vmx() 108 for (i = 0; i < threads; i++) { in test_signal_vmx() 114 printf("\tWaiting for %d workers to start... %d", threads, threads_starting); in test_signal_vmx() 124 for (j = 0; j < threads; j++) { in test_signal_vmx() 133 for (i = 0; i < threads; i++) { in test_signal_vmx()
|
| H A D | fpu_signal.c | 77 int i, j, rc, threads; in test_signal_fpu() local 81 threads = sysconf(_SC_NPROCESSORS_ONLN) * THREAD_FACTOR; in test_signal_fpu() 82 tids = malloc(threads * sizeof(pthread_t)); in test_signal_fpu() 86 threads_starting = threads; in test_signal_fpu() 87 for (i = 0; i < threads; i++) { in test_signal_fpu() 100 for (j = 0; j < threads; j++) { in test_signal_fpu() 109 for (i = 0; i < threads; i++) { in test_signal_fpu()
|
| H A D | fpu_preempt.c | 57 int i, rc, threads; in test_preempt_fpu() local 60 threads = sysconf(_SC_NPROCESSORS_ONLN) * THREAD_FACTOR; in test_preempt_fpu() 61 tids = malloc((threads) * sizeof(pthread_t)); in test_preempt_fpu() 65 threads_starting = threads; in test_preempt_fpu() 66 for (i = 0; i < threads; i++) { in test_preempt_fpu() 88 for (i = 0; i < threads; i++) { in test_preempt_fpu()
|
| H A D | vmx_preempt.c | 57 int i, rc, threads; in test_preempt_vmx() local 63 threads = sysconf(_SC_NPROCESSORS_ONLN) * THREAD_FACTOR; in test_preempt_vmx() 64 tids = malloc(threads * sizeof(pthread_t)); in test_preempt_vmx() 68 threads_starting = threads; in test_preempt_vmx() 69 for (i = 0; i < threads; i++) { in test_preempt_vmx() 91 for (i = 0; i < threads; i++) { in test_preempt_vmx()
|
| H A D | vsx_preempt.c | 92 int i, rc, threads; in test_preempt_vsx() local 97 threads = sysconf(_SC_NPROCESSORS_ONLN) * THREAD_FACTOR; in test_preempt_vsx() 98 tids = malloc(threads * sizeof(pthread_t)); in test_preempt_vsx() 102 threads_starting = threads; in test_preempt_vsx() 103 for (i = 0; i < threads; i++) { in test_preempt_vsx() 125 for (i = 0; i < threads; i++) { in test_preempt_vsx()
|
| /OK3568_Linux_fs/kernel/Documentation/driver-api/dmaengine/ |
| H A D | dmatest.rst | 63 (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/kernel/Documentation/x86/ |
| H A D | topology.rst | 24 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 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 153 threads. Many BIOSes enumerate all threads 0 first and then all threads 1. [all …]
|
| /OK3568_Linux_fs/kernel/tools/perf/bench/ |
| H A D | synthesize.c | 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() 140 err = do_run_single_threaded(session, threads, &target, true); in run_single_threaded() 143 if (threads) in run_single_threaded() 144 perf_thread_map__put(threads); in run_single_threaded()
|
| /OK3568_Linux_fs/buildroot/dl/stressapptest/git/ |
| H A D | README.md | 14 ./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… 75 …threads 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.
|
| /OK3568_Linux_fs/kernel/tools/lib/perf/Documentation/examples/ |
| H A D | counting.c | 23 struct perf_thread_map *threads; in main() local 40 threads = perf_thread_map__new_dummy(); in main() 41 if (!threads) { in main() 45 perf_thread_map__set_pid(threads, 0, 0); in main() 63 perf_evlist__set_maps(evlist, NULL, threads); in main() 81 perf_thread_map__put(threads); in main()
|
| /OK3568_Linux_fs/kernel/tools/testing/radix-tree/ |
| H A D | iteration_check.c | 15 static pthread_t threads[NUM_THREADS]; variable 178 if (pthread_create(&threads[0], NULL, tagged_iteration_fn, NULL)) { in iteration_test() 182 if (pthread_create(&threads[1], NULL, untagged_iteration_fn, NULL)) { in iteration_test() 186 if (pthread_create(&threads[2], NULL, add_entries_fn, NULL)) { in iteration_test() 190 if (pthread_create(&threads[3], NULL, remove_entries_fn, NULL)) { in iteration_test() 194 if (pthread_create(&threads[4], NULL, tag_entries_fn, NULL)) { in iteration_test() 203 if (pthread_join(threads[i], NULL)) { in iteration_test()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/powerpc/tm/ |
| H A D | tm-vmx-unavail.c | 91 int threads; in tm_vmx_unavail_test() local 98 threads = sysconf(_SC_NPROCESSORS_ONLN) * 4; in tm_vmx_unavail_test() 99 thread = malloc(sizeof(pthread_t)*threads); in tm_vmx_unavail_test() 103 for (uint64_t i = 0; i < threads; i++) in tm_vmx_unavail_test() 106 for (uint64_t i = 0; i < threads; i++) in tm_vmx_unavail_test()
|
| /OK3568_Linux_fs/external/mpp/osal/test/ |
| H A D | mpp_thread_test.c | 137 pthread_t threads[MAX_THREAD_NUM]; in main() local 149 pthread_create(&threads[i], &attr, thread_test, &pdata[i]); in main() 155 pthread_join(threads[i], &dummy); in main() 177 pthread_create(&threads[0], &attr, mutex_performance_test_loop_0, NULL); in main() 179 pthread_create(&threads[1], &attr, mutex_performance_test_loop_1, NULL); in main() 181 pthread_join(threads[0], &dummy); in main() 182 pthread_join(threads[1], &dummy); in main()
|