Searched refs:ncpus (Results 1 – 7 of 7) sorted by relevance
/external/linux-tools-perf/util/ |
D | evsel.h | 84 int perf_evsel__alloc_fd(struct perf_evsel *evsel, int ncpus, int nthreads); 85 int perf_evsel__alloc_id(struct perf_evsel *evsel, int ncpus, int nthreads); 86 int perf_evsel__alloc_counts(struct perf_evsel *evsel, int ncpus); 89 void perf_evsel__close_fd(struct perf_evsel *evsel, int ncpus, int nthreads); 131 int __perf_evsel__read(struct perf_evsel *evsel, int ncpus, int nthreads, 142 int ncpus, int nthreads) in perf_evsel__read() argument 144 return __perf_evsel__read(evsel, ncpus, nthreads, false); in perf_evsel__read() 155 int ncpus, int nthreads) in perf_evsel__read_scaled() argument 157 return __perf_evsel__read(evsel, ncpus, nthreads, true); in perf_evsel__read_scaled()
|
D | evsel.c | 52 int perf_evsel__alloc_fd(struct perf_evsel *evsel, int ncpus, int nthreads) in perf_evsel__alloc_fd() argument 55 evsel->fd = xyarray__new(ncpus, nthreads, sizeof(int)); in perf_evsel__alloc_fd() 58 for (cpu = 0; cpu < ncpus; cpu++) { in perf_evsel__alloc_fd() 68 int perf_evsel__alloc_id(struct perf_evsel *evsel, int ncpus, int nthreads) in perf_evsel__alloc_id() argument 70 evsel->sample_id = xyarray__new(ncpus, nthreads, sizeof(struct perf_sample_id)); in perf_evsel__alloc_id() 74 evsel->id = zalloc(ncpus * nthreads * sizeof(u64)); in perf_evsel__alloc_id() 84 int perf_evsel__alloc_counts(struct perf_evsel *evsel, int ncpus) in perf_evsel__alloc_counts() argument 87 (ncpus * sizeof(struct perf_counts_values)))); in perf_evsel__alloc_counts() 105 void perf_evsel__close_fd(struct perf_evsel *evsel, int ncpus, int nthreads) in perf_evsel__close_fd() argument 109 for (cpu = 0; cpu < ncpus; cpu++) in perf_evsel__close_fd() [all …]
|
/external/llvm/utils/lit/lit/ |
D | Util.py | 11 ncpus = os.sysconf("SC_NPROCESSORS_ONLN") 12 if isinstance(ncpus, int) and ncpus > 0: 13 return ncpus 18 ncpus = int(os.environ["NUMBER_OF_PROCESSORS"]) 19 if ncpus > 0: 20 return ncpus
|
/external/blktrace/ |
D | blktrace.c | 96 int fd, idx, ncpus; member 218 int fd, ncpus; member 277 static int ncpus; variable 866 hdr.max_cpus = ncpus; in net_send_header() 1009 cl_fds = calloc(ncpus, sizeof(*cl_fds)); in open_client_connections() 1010 for (cpu = 0; cpu < ncpus; cpu++) { in open_client_connections() 1029 for (cpu = 0, fdp = cl_fds; cpu < ncpus; cpu++, fdp++) { in close_client_connections() 1052 dpp->ncpus = ncpus; in setup_buts() 1056 dpp->stats = calloc(dpp->ncpus, sizeof(*dpp->stats)); in setup_buts() 1057 memset(dpp->stats, 0, dpp->ncpus * sizeof(*dpp->stats)); in setup_buts() [all …]
|
D | blkparse.c | 64 int ncpus; member 324 int ncpus = pdi->ncpus; in resize_cpu_info() local 338 new_start = (char *)cpus + (ncpus * sizeof(struct per_cpu_info)); in resize_cpu_info() 339 new_space = (new_count - ncpus) * sizeof(struct per_cpu_info); in resize_cpu_info() 342 pdi->ncpus = new_count; in resize_cpu_info() 345 for (new_count = 0; new_count < pdi->ncpus; new_count++) { in resize_cpu_info() 361 if (cpu >= pdi->ncpus) in get_cpu_info() 490 for (cpu = 0; cpu < pdi->ncpus; cpu++) { in collect_pdi_skips() 1786 for (pci = pdi->cpus, j = 0; j < pdi->ncpus; j++, pci++) { in show_device_and_cpu_stats()
|
/external/clang/utils/analyzer/ |
D | SATestBuild.py | 63 ncpus = os.sysconf("SC_NPROCESSORS_ONLN") 64 if isinstance(ncpus, int) and ncpus > 0: 65 return ncpus 70 ncpus = int(os.environ["NUMBER_OF_PROCESSORS"]) 71 if ncpus > 0: 72 return ncpus
|
/external/blktrace/btreplay/ |
D | btreplay.c | 145 static int ncpus = 0; // Number of CPUs in the system variable 516 for (ncpus = 0; ncpus < CPU_SETSIZE && CPU_ISSET(ncpus, &cpus); ncpus++) in get_ncpus() 518 if (ncpus == 0) { in get_ncpus() 532 assert(0 <= tip->cpu && tip->cpu < ncpus); in pin_to_cpu() 547 for (i = 0; i < ncpus; i++) in pin_to_cpu() 863 assert(0 <= cpu && cpu < ncpus); in add_input_file() 1471 if (cpus_to_use <= 0 || cpus_to_use > ncpus) { in handle_args() 1474 cpus_to_use, ncpus); in handle_args() 1566 cpus_to_use = ncpus; in handle_args()
|