| /OK3568_Linux_fs/kernel/tools/perf/util/ |
| H A D | thread_map.c | 1 // SPDX-License-Identifier: GPL-2.0 25 if (dir->d_name[0] == '.') in filter() 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 [all …]
|
| /OK3568_Linux_fs/kernel/tools/perf/tests/ |
| H A D | thread-map.c | 1 // SPDX-License-Identifier: GPL-2.0 11 #include "util/synthetic-events.h" 35 TEST_ASSERT_VAL("wrong nr", map->nr == 1); in test__thread_map() 42 refcount_read(&map->refcnt) == 1); in test__thread_map() 51 TEST_ASSERT_VAL("wrong nr", map->nr == 1); in test__thread_map() 52 TEST_ASSERT_VAL("wrong pid", perf_thread_map__pid(map, 0) == -1); in test__thread_map() 57 refcount_read(&map->refcnt) == 1); in test__thread_map() 67 struct perf_record_thread_map *map = &event->thread_map; in process_event() 68 struct perf_thread_map *threads; in process_event() local 70 TEST_ASSERT_VAL("wrong nr", map->nr == 1); in process_event() [all …]
|
| H A D | mmap-thread-lookup.c | 1 // SPDX-License-Identifier: GPL-2.0 17 #include "util/synthetic-events.h" 21 #define THREADS 4 macro 32 static struct thread_data threads[THREADS]; variable 40 MAP_SHARED|MAP_ANONYMOUS, -1, 0); in thread_init() 44 return -1; in thread_init() 47 td->map = map; in thread_init() 48 td->tid = syscall(SYS_gettid); in thread_init() 50 pr_debug("tid = %d, map = %p\n", td->tid, map); in thread_init() 64 ret = write(td->ready[1], &go, sizeof(int)); in thread_fn() [all …]
|
| /OK3568_Linux_fs/kernel/tools/lib/perf/ |
| H A D | threadmap.c | 1 // SPDX-License-Identifier: GPL-2.0 12 size_t size = (nr - start) * sizeof(map->map[0]); in perf_thread_map__reset() 14 memset(&map->map[start], 0, size); in perf_thread_map__reset() 15 map->err_thread = -1; in perf_thread_map__reset() 20 size_t size = sizeof(*map) + sizeof(map->map[0]) * nr; in perf_thread_map__realloc() 21 int start = map ? map->nr : 0; in perf_thread_map__realloc() 37 map->map[thread].pid = pid; in perf_thread_map__set_pid() 42 return map->map[thread].comm; in perf_thread_map__comm() 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() [all …]
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-benchmark/tiobench/tiobench-0.3.3/ |
| H A D | avoid-glibc-clashes.patch | 8 Upstream-Status: Pending 10 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> 11 --- 12 tiotest.c | 8 ++++---- 13 1 files changed, 4 insertions(+), 4 deletions(-) 15 diff --git a/tiotest.c b/tiotest.c 17 --- a/tiotest.c 19 @@ -31,7 +31,7 @@ static const char* versionStr = "tiotest v0.3.3 (C) 1999-2000 Mika Kuoppala <mik 23 -static void * aligned_alloc(ssize_t size) 28 @@ -41,7 +41,7 @@ static void * aligned_alloc(ssize_t size) [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 D | Threads.html | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dt… 3 <!-- Copyright (C) 1988-2021 Free Software Foundation, Inc. 9 Free Documentation", with the Front-Cover Texts being "A GNU Manual," 10 and with the Back-Cover Texts as in (a) below. 12 (a) The FSF's Back-Cover Text is: "You are free to copy and modify 14 developing GNU and promoting software freedom." --> 15 <!-- Created by GNU Texinfo 5.1, http://www.gnu.org/software/texinfo/ --> 17 <title>Debugging with GDB: Threads</title> 19 <meta name="description" content="Debugging with GDB: Threads"> 20 <meta name="keywords" content="Debugging with GDB: Threads"> [all …]
|
| H A D | All_002dStop-Mode.html | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dt… 3 <!-- Copyright (C) 1988-2021 Free Software Foundation, Inc. 9 Free Documentation", with the Front-Cover Texts being "A GNU Manual," 10 and with the Back-Cover Texts as in (a) below. 12 (a) The FSF's Back-Cover Text is: "You are free to copy and modify 14 developing GNU and promoting software freedom." --> 15 <!-- Created by GNU Texinfo 5.1, http://www.gnu.org/software/texinfo/ --> 17 <title>Debugging with GDB: All-Stop Mode</title> 19 <meta name="description" content="Debugging with GDB: All-Stop Mode"> 20 <meta name="keywords" content="Debugging with GDB: All-Stop Mode"> [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 D | Threads.html | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dt… 3 <!-- Copyright (C) 1988-2021 Free Software Foundation, Inc. 9 Free Documentation", with the Front-Cover Texts being "A GNU Manual," 10 and with the Back-Cover Texts as in (a) below. 12 (a) The FSF's Back-Cover Text is: "You are free to copy and modify 14 developing GNU and promoting software freedom." --> 15 <!-- Created by GNU Texinfo 5.1, http://www.gnu.org/software/texinfo/ --> 17 <title>Debugging with GDB: Threads</title> 19 <meta name="description" content="Debugging with GDB: Threads"> 20 <meta name="keywords" content="Debugging with GDB: Threads"> [all …]
|
| H A D | All_002dStop-Mode.html | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dt… 3 <!-- Copyright (C) 1988-2021 Free Software Foundation, Inc. 9 Free Documentation", with the Front-Cover Texts being "A GNU Manual," 10 and with the Back-Cover Texts as in (a) below. 12 (a) The FSF's Back-Cover Text is: "You are free to copy and modify 14 developing GNU and promoting software freedom." --> 15 <!-- Created by GNU Texinfo 5.1, http://www.gnu.org/software/texinfo/ --> 17 <title>Debugging with GDB: All-Stop Mode</title> 19 <meta name="description" content="Debugging with GDB: All-Stop Mode"> 20 <meta name="keywords" content="Debugging with GDB: All-Stop Mode"> [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/driver-api/dmaengine/ |
| H A D | dmatest.rst | 11 capability of the following: DMA_MEMCPY (memory-to-memory), DMA_MEMSET 12 (const-to-memory or memory-to-memory, when emulated), DMA_XOR, DMA_PQ. 18 Part 1 - How to build the test module 23 Device Drivers -> DMA Engine support -> DMA Test client 28 Part 2 - When dmatest is built as a module 47 Example of multi-channel test usage (new in the 5.0 kernel):: 58 For all tests, starting in the 5.0 kernel, either single- or multi-channel, 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 70 % ls -1 /sys/class/dma/ [all …]
|
| /OK3568_Linux_fs/buildroot/dl/stressapptest/git/ |
| H A D | README.md | 7 Discussion group: https://groups.google.com/d/forum/stressapptest-discuss 14 ./stressapptest -s 20 -M 256 -m 8 -W # Test 256MB, running 8 "warm copy" threads. Exit after 20 … 15 ./stressapptest --help # list the available arguments. 18 * -M mbytes : megabytes of ram to test (auto-detect all memory available) 19 * -s seconds : number of seconds to run (20) 20 * -m threads : number of memory copy threads to run (auto-detect to number of CPUs) 21 * -W : Use more CPU-stressful memory copy (false) 22 * -n ipaddr : add a network thread connecting to system at 'ipaddr'. (none) 23 * --listen : run a thread to listen for and respond to network threads. (0) 24 * -f filename : add a disk thread with tempfile 'filename' (none) [all …]
|
| H A D | stressapptest.1 | 1 .TH STRESSAPPTEST 1 2009-10-20 3 stressapptest \- stress test application for simulating high load situations 20 .B \-A 24 .B \-C <threads> 25 Number of memory CPU stress threads to run. 28 .B \-d <device> 32 .B \-f <filename> 36 .B \-F 40 .B \-i <threads> 41 Number of memory invert threads to run. [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/power/ |
| H A D | freezing-of-tasks.rst | 11 kernel threads are controlled during hibernation or system-wide suspend (on some 17 There are three per-task flags used for that, PF_NOFREEZE, PF_FROZEN 19 PF_NOFREEZE unset (all user space processes and some kernel threads) are 25 freeze_processes() (defined in kernel/power/process.c) is called. A system-wide 26 variable system_freezing_cnt (as opposed to a per-task flag) is used to indicate 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 74 ------------------------------------------------------------------------- [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/x86/ |
| H A D | topology.rst | 1 .. SPDX-License-Identifier: GPL-2.0 11 The architecture-agnostic topology definitions are in 12 Documentation/admin-guide/cputopology.rst. This file holds x86-specific 17 Needless to say, code should use the generic functions - this file is *only* 24 threads, cores, packages, etc. 35 - packages 36 - cores 37 - threads 48 Package-related topology information in the kernel: 50 - cpuinfo_x86.x86_max_cores: [all …]
|
| /OK3568_Linux_fs/kernel/tools/lib/perf/tests/ |
| H A D | test-evsel.c | 1 // SPDX-License-Identifier: GPL-2.0 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() [all …]
|
| H A D | test-evlist.c | 1 // SPDX-License-Identifier: GPL-2.0 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() [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 D | membarrier.h | 31 * enum membarrier_cmd - membarrier system call command 34 * @MEMBARRIER_CMD_GLOBAL: Execute a memory barrier on all running threads. 36 * is ensured that all running threads have passed 38 * user-space addresses match program order between 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 50 * user-space addresses match program order between 52 * (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 D | membarrier.h | 31 * enum membarrier_cmd - membarrier system call command 34 * @MEMBARRIER_CMD_GLOBAL: Execute a memory barrier on all running threads. 36 * is ensured that all running threads have passed 38 * user-space addresses match program order between 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 50 * user-space addresses match program order between 52 * (non-running threads are de facto in such a [all …]
|
| /OK3568_Linux_fs/kernel/arch/powerpc/kvm/ |
| H A D | book3s_hv_ras.c | 1 // SPDX-License-Identifier: GPL-2.0-only 20 #define SRR1_MC_LDSTERR (1ul << (63-42)) 21 #define SRR1_MC_IFETCH_SH (63-45) 24 #define SRR1_MC_IFETCH_SLBMULTI 3 /* SLB multi-hit */ 25 #define SRR1_MC_IFETCH_SLBPARMULTI 4 /* SLB parity + multi-hit */ 26 #define SRR1_MC_IFETCH_TLBMULTI 5 /* I-TLB multi-hit */ 29 #define DSISR_MC_DERAT_MULTI 0x800 /* D-ERAT multi-hit */ 30 #define DSISR_MC_TLB_MULTI 0x400 /* D-TLB multi-hit */ 32 #define DSISR_MC_SLB_MULTI 0x080 /* SLB multi-hit */ 33 #define DSISR_MC_SLB_PARMULTI 0x040 /* SLB parity + multi-hit */ [all …]
|
| /OK3568_Linux_fs/kernel/include/uapi/linux/ |
| H A D | membarrier.h | 31 * enum membarrier_cmd - membarrier system call command 34 * @MEMBARRIER_CMD_GLOBAL: Execute a memory barrier on all running threads. 36 * is ensured that all running threads have passed 38 * user-space addresses match program order between 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 50 * user-space addresses match program order between 52 * (non-running threads are de facto in such a [all …]
|
| /OK3568_Linux_fs/buildroot/dl/stressapptest/git/src/ |
| H A D | sat.h | 7 // http://www.apache.org/licenses/LICENSE-2.0 52 // This must be called from a single-threaded program. 70 // Abort Run(). Only for use by Run()-installed signal handlers. 95 // Semi-accessor to find the "nth" region to avoid replicated bit searching.. 101 num--; in region_find() 124 // Start up worker threads. 126 // Spawn worker threads. 128 // Reap worker threads. 132 // Delete worker threads. 137 // Return the worst-case (largest) cache line size of the system. [all …]
|
| H A D | sat.cc | 7 // http://www.apache.org/licenses/LICENSE-2.0 71 g_sat->Break(); in SatHandleBreak() 97 if (lseek(logfile_, 0, SEEK_END) == -1) { in InitializeLogfile() 103 Logger::GlobalLogger()->SetLogFd(logfile_); in InitializeLogfile() 120 logprintf(0, "Log: Command line option '-A' bypasses this error.\n"); in CheckEnvironment() 125 #error Build system regression - COPTS disregarded. in CheckEnvironment() 137 "--cpu_freq_threshold set to a value > 0\n"); in CheckEnvironment() 141 logprintf(0, "Process Error: The --cpu_freq_round option must be greater" in CheckEnvironment() 149 if (memory_threads_ == -1) { in CheckEnvironment() 150 memory_threads_ = os_->num_cpus(); in CheckEnvironment() [all …]
|
| /OK3568_Linux_fs/kernel/tools/perf/bench/ |
| H A D | synthesize.c | 1 // SPDX-License-Identifier: GPL-2.0 14 #include "../util/synthetic-events.h" 22 #include <subcmd/parse-options.h> 33 OPT_BOOLEAN('t', "mt", &run_mt, "Run multi-threaded benchmark"), 34 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"), 38 OPT_UINTEGER('i', "single-iterations", &single_iterations, 39 "Number of iterations used to compute single-threaded average"), [all …]
|
| H A D | futex-wake-parallel.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Block a bunch of threads and let parallel waker threads wakeup an 27 #include <subcmd/parse-options.h> 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"), 69 "perf bench futex wake-parallel <options>", 82 waker->nwoken = futex_wake(&futex, nwakes, futex_flag); in waking_workerfn() 83 if (waker->nwoken != nwakes) in waking_workerfn() 85 waker->nwoken, nwakes); in waking_workerfn() [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/powerpc/dscr/ |
| H A D | dscr_default_test.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * 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()
|