/external/linux-tools-perf/util/ |
H A 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, 138 * @ncpus - Number of cpus affected, from zero 142 int ncpus, int nthreads) 144 return __perf_evsel__read(evsel, ncpus, nthreads, false); 151 * @ncpus - Number of cpus affected, from zero 155 int ncpus, in 141 perf_evsel__read(struct perf_evsel *evsel, int ncpus, int nthreads) argument 154 perf_evsel__read_scaled(struct perf_evsel *evsel, int ncpus, int nthreads) argument [all...] |
H A D | evsel.c | 52 int perf_evsel__alloc_fd(struct perf_evsel *evsel, int ncpus, int nthreads) argument 55 evsel->fd = xyarray__new(ncpus, nthreads, sizeof(int)); 58 for (cpu = 0; cpu < ncpus; cpu++) { 68 int perf_evsel__alloc_id(struct perf_evsel *evsel, int ncpus, int nthreads) argument 70 evsel->sample_id = xyarray__new(ncpus, nthreads, sizeof(struct perf_sample_id)); 74 evsel->id = zalloc(ncpus * nthreads * sizeof(u64)); 84 int perf_evsel__alloc_counts(struct perf_evsel *evsel, int ncpus) argument 87 (ncpus * sizeof(struct perf_counts_values)))); 105 void perf_evsel__close_fd(struct perf_evsel *evsel, int ncpus, int nthreads) argument 109 for (cpu = 0; cpu < ncpus; cp 159 __perf_evsel__read(struct perf_evsel *evsel, int ncpus, int nthreads, bool scale) argument [all...] |
/external/llvm/utils/lit/lit/ |
H A 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/clang/utils/analyzer/ |
H A 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/ |
H A D | blktrace.c | 96 int fd, idx, ncpus; member in struct:devpath 218 int fd, ncpus; member in struct:cl_conn 277 static int ncpus; variable 866 hdr.max_cpus = ncpus; 1009 cl_fds = calloc(ncpus, sizeof(*cl_fds)); 1010 for (cpu = 0; cpu < ncpus; cpu++) { 1029 for (cpu = 0, fdp = cl_fds; cpu < ncpus; cpu++, fdp++) { 1052 dpp->ncpus = ncpus; 1056 dpp->stats = calloc(dpp->ncpus, sizeo 2238 device_done(struct devpath *dpp, int ncpus) argument 2250 net_ch_remove(struct cl_host *ch, int ncpus) argument [all...] |
H A D | blkparse.c | 64 int ncpus; member in struct:per_dev_info 324 int ncpus = pdi->ncpus; local 338 new_start = (char *)cpus + (ncpus * sizeof(struct per_cpu_info)); 339 new_space = (new_count - ncpus) * sizeof(struct per_cpu_info); 342 pdi->ncpus = new_count; 345 for (new_count = 0; new_count < pdi->ncpus; new_count++) { 361 if (cpu >= pdi->ncpus) 490 for (cpu = 0; cpu < pdi->ncpus; cpu++) { 1786 for (pci = pdi->cpus, j = 0; j < pdi->ncpus; [all...] |
/external/blktrace/btreplay/ |
H A D | btreplay.c | 145 static int ncpus = 0; // Number of CPUs in the system variable 501 * get_ncpus - Sets up the global 'ncpus' value 516 for (ncpus = 0; ncpus < CPU_SETSIZE && CPU_ISSET(ncpus, &cpus); ncpus++) 518 if (ncpus == 0) { 532 assert(0 <= tip->cpu && tip->cpu < ncpus); 547 for (i = 0; i < ncpus; i++) 863 assert(0 <= cpu && cpu < ncpus); [all...] |