/tools/testing/selftests/rcutorture/bin/ |
D | cpus2use.sh | 17 ncpus=`grep '^processor' /proc/cpuinfo | wc -l` 21 awk -v ncpus=$ncpus '{ print ncpus * ($7 + $NF) / 100 }'` 24 idlecpus=$ncpus 26 awk -v ncpus=$ncpus -v idlecpus=$idlecpus < /dev/null '
|
D | kvm-build.sh | 45 ncpus="`getconf _NPROCESSORS_ONLN`" 46 make -j$((2 * ncpus)) $TORTURE_KMAKE_ARG > $resdir/Make.out 2>&1
|
D | kvm.sh | 336 awk < $T/cfgcpu.sort > $T/cfgcpu.pack -v ncpus=$cpus ' 454 if (ja[1] == -1 && ncpus == 0) 457 njitter = ncpus; 472 if (cpusr[jn] > ncpus && ncpus != 0) 540 nc = ncpus; 546 if (ncpus == 0) { 555 nc = ncpus; 562 if (ncpus != 0) 570 -v ncpus=$cpus \
|
D | kvm-remote.sh | 141 ncpus="`ssh $i getconf _NPROCESSORS_ONLN 2> /dev/null`" 142 echo $i: $ncpus CPUs " " `date` | tee -a "$oldrun/remote-log"
|
/tools/perf/util/ |
D | counts.c | 9 struct perf_counts *perf_counts__new(int ncpus, int nthreads) in perf_counts__new() argument 16 values = xyarray__new(ncpus, nthreads, sizeof(struct perf_counts_values)); in perf_counts__new() 24 values = xyarray__new(ncpus, nthreads, sizeof(bool)); in perf_counts__new() 58 int evsel__alloc_counts(struct evsel *evsel, int ncpus, int nthreads) in evsel__alloc_counts() argument 60 evsel->counts = perf_counts__new(ncpus, nthreads); in evsel__alloc_counts()
|
D | counts.h | 38 struct perf_counts *perf_counts__new(int ncpus, int nthreads); 43 int evsel__alloc_counts(struct evsel *evsel, int ncpus, int nthreads);
|
D | stat.c | 155 static int evsel__alloc_prev_raw_counts(struct evsel *evsel, int ncpus, int nthreads) in evsel__alloc_prev_raw_counts() argument 159 counts = perf_counts__new(ncpus, nthreads); in evsel__alloc_prev_raw_counts() 180 int ncpus = evsel__nr_cpus(evsel); in evsel__alloc_stats() local 184 evsel__alloc_counts(evsel, ncpus, nthreads) < 0 || in evsel__alloc_stats() 185 (alloc_raw && evsel__alloc_prev_raw_counts(evsel, ncpus, nthreads) < 0)) in evsel__alloc_stats() 238 int ncpus = evsel__nr_cpus(evsel); in evsel__copy_prev_raw_counts() local 242 for (int cpu = 0; cpu < ncpus; cpu++) { in evsel__copy_prev_raw_counts() 413 int ncpus = evsel__nr_cpus(counter); in process_counter_maps() local 420 for (cpu = 0; cpu < ncpus; cpu++) { in process_counter_maps()
|
D | cputopo.c | 181 long ncpus; in cpu_topology__new() local 186 ncpus = cpu__max_present_cpu(); in cpu_topology__new() 195 nr = (u32)(ncpus & UINT_MAX); in cpu_topology__new()
|
D | data-convert-bt.c | 1334 int ncpus; in setup_streams() local 1340 ncpus = ph->env.nr_cpus_avail ?: MAX_CPUS; in setup_streams() 1342 stream = zalloc(sizeof(*stream) * ncpus); in setup_streams() 1349 cw->stream_cnt = ncpus; in setup_streams()
|
D | stat-display.c | 751 int nthreads, int ncpus, in sort_aggr_thread() argument 766 for (cpu = 0; cpu < ncpus; cpu++) { in sort_aggr_thread() 805 int ncpus = perf_cpu_map__nr(counter->core.cpus); in print_aggr_thread() local 810 buf = sort_aggr_thread(counter, nthreads, ncpus, &sorted_threads, _target); in print_aggr_thread()
|
/tools/testing/selftests/powerpc/ |
D | utils.c | 91 int ncpus, cpu = -1; in pick_online_cpu() local 95 ncpus = get_nprocs_conf(); in pick_online_cpu() 96 size = CPU_ALLOC_SIZE(ncpus); in pick_online_cpu() 97 mask = CPU_ALLOC(ncpus); in pick_online_cpu() 111 for (cpu = 8; cpu < ncpus; cpu += 8) in pick_online_cpu() 116 for (cpu = ncpus - 1; cpu >= 0; cpu--) in pick_online_cpu()
|
/tools/lib/perf/ |
D | evsel.c | 49 int perf_evsel__alloc_fd(struct perf_evsel *evsel, int ncpus, int nthreads) in perf_evsel__alloc_fd() argument 51 evsel->fd = xyarray__new(ncpus, nthreads, sizeof(int)); in perf_evsel__alloc_fd() 55 for (cpu = 0; cpu < ncpus; cpu++) { in perf_evsel__alloc_fd() 68 static int perf_evsel__alloc_mmap(struct perf_evsel *evsel, int ncpus, int nthreads) in perf_evsel__alloc_mmap() argument 70 evsel->mmap = xyarray__new(ncpus, nthreads, sizeof(struct perf_mmap)); in perf_evsel__alloc_mmap() 405 int perf_evsel__alloc_id(struct perf_evsel *evsel, int ncpus, int nthreads) in perf_evsel__alloc_id() argument 407 if (ncpus == 0 || nthreads == 0) in perf_evsel__alloc_id() 413 evsel->sample_id = xyarray__new(ncpus, nthreads, sizeof(struct perf_sample_id)); in perf_evsel__alloc_id() 417 evsel->id = zalloc(ncpus * nthreads * sizeof(u64)); in perf_evsel__alloc_id()
|
/tools/lib/perf/include/internal/ |
D | evsel.h | 58 int perf_evsel__alloc_fd(struct perf_evsel *evsel, int ncpus, int nthreads); 64 int perf_evsel__alloc_id(struct perf_evsel *evsel, int ncpus, int nthreads);
|
/tools/testing/selftests/powerpc/benchmarks/ |
D | context_switch.c | 108 int pid, ncpus; in start_process_on() local 121 ncpus = get_nprocs(); in start_process_on() 122 size = CPU_ALLOC_SIZE(ncpus); in start_process_on() 123 cpuset = CPU_ALLOC(ncpus); in start_process_on()
|
/tools/perf/ |
D | builtin-sched.c | 1932 u32 ncpus = sched->max_cpu + 1; in timehist_header() local 1939 for (i = 0, j = 0; i < ncpus; ++i) { in timehist_header() 1961 printf(" %*s ", ncpus, ""); in timehist_header() 1977 printf(" %.*s ", ncpus, graph_dotted_line); in timehist_header()
|
D | builtin-script.c | 2109 int ncpus = evsel__nr_cpus(counter); in __process_stat() local 2123 for (cpu = 0; cpu < ncpus; cpu++) { in __process_stat()
|