/external/chromium_org/native_client_sdk/src/libraries/third_party/pthreads-win32/ |
pthread_spin_init.c | 45 int cpus = 0; local 53 if (0 != ptw32_getprocessors (&cpus)) 55 cpus = 1; 58 if (cpus > 1) 90 if (cpus > 1) 92 s->u.cpus = cpus;
|
implement.h | 285 * the number of cpus available to the process is checked. 288 * If the number of cpus is greater than 1 then "interlock" 290 * stored in u.cpus. This arrangement allows the spinlock 294 * "u.cpus" isn't used for anything yet, but could be used at 304 long interlock; /* Locking element for multi-cpus. */ 307 int cpus; /* No. of cpus if multi cpus, or */ member in union:pthread_spinlock_t_::__anon13563 [all...] |
/external/linux-tools-perf/perf-3.12.0/tools/perf/tests/ |
keep-tracking.c | 64 struct cpu_map *cpus = NULL; local 73 cpus = cpu_map__new(NULL); 74 CHECK_NOT_NULL__(cpus); 79 perf_evlist__set_maps(evlist, cpus, threads); 149 if (cpus) 150 cpu_map__delete(cpus);
|
open-syscall-all-cpus.c | 10 struct cpu_map *cpus; local 21 cpus = cpu_map__new(NULL); 22 if (cpus == NULL) { 35 if (perf_evsel__open(evsel, cpus, threads) < 0) { 42 for (cpu = 0; cpu < cpus->nr; ++cpu) { 47 * without CPU_ALLOC. 1024 cpus in 2010 still seems 50 if (cpus->map[cpu] >= CPU_SETSIZE) { 51 pr_debug("Ignoring CPU %d\n", cpus->map[cpu]); 55 CPU_SET(cpus->map[cpu], &cpu_set); 58 cpus->map[cpu] [all...] |
mmap-basic.c | 23 struct cpu_map *cpus; local 41 cpus = cpu_map__new(NULL); 42 if (cpus == NULL) { 48 CPU_SET(cpus->map[0], &cpu_set); 52 cpus->map[0], strerror(errno)); 62 perf_evlist__set_maps(evlist, cpus, threads); 79 if (perf_evsel__open(evsels[i], cpus, threads) < 0) { 147 cpu_map__delete(cpus);
|
perf-time-to-tsc.c | 60 struct cpu_map *cpus = NULL; local 74 cpus = cpu_map__new(NULL); 75 CHECK_NOT_NULL__(cpus); 80 perf_evlist__set_maps(evlist, cpus, threads); 173 if (cpus) 174 cpu_map__delete(cpus);
|
code-reading.c | 396 struct cpu_map *cpus = NULL; local 456 cpus = cpu_map__new(NULL); 457 if (!cpus) { 471 perf_evlist__set_maps(evlist, cpus, threads); 536 if (cpus) 537 cpu_map__delete(cpus);
|
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/ |
pmu.h | 19 struct cpu_map *cpus; member in struct:perf_pmu
|
record.c | 47 struct cpu_map *cpus; local 50 cpus = cpu_map__new(NULL); 51 if (!cpus) 53 cpu = cpus->map[0]; 54 cpu_map__delete(cpus); 88 if (evlist->cpus->map[0] < 0)
|
cpumap.c | 11 struct cpu_map *cpus; local 18 cpus = malloc(sizeof(*cpus) + nr_cpus * sizeof(int)); 19 if (cpus != NULL) { 22 cpus->map[i] = i; 24 cpus->nr = nr_cpus; 27 return cpus; 33 struct cpu_map *cpus = malloc(sizeof(*cpus) + payload_size); local 35 if (cpus != NULL) 45 struct cpu_map *cpus = NULL; local 100 struct cpu_map *cpus = NULL; local 114 struct cpu_map *cpus = NULL; local 192 struct cpu_map *cpus = malloc(sizeof(*cpus) + sizeof(int)); local [all...] |
evlist.h | 46 struct cpu_map *cpus; member in struct:perf_evlist 56 void perf_evlist__init(struct perf_evlist *evlist, struct cpu_map *cpus, 124 struct cpu_map *cpus, 127 evlist->cpus = cpus;
|
evsel.h | 81 struct cpu_map *cpus; member in struct:perf_evsel 164 struct cpu_map *cpus); 167 int perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus, 233 * perf_evsel__read - Read the aggregate results on all CPUs 236 * @ncpus - Number of cpus affected, from zero 246 * perf_evsel__read_scaled - Read the aggregate results on all CPUs, scaled 249 * @ncpus - Number of cpus affected, from zero
|
pmu.c | 275 struct cpu_map *cpus; local 291 cpus = cpu_map__read(file); 293 return cpus; 321 pmu->cpus = pmu_cpumask(name);
|
evlist.c | 30 void perf_evlist__init(struct perf_evlist *evlist, struct cpu_map *cpus, 38 perf_evlist__set_maps(evlist, cpus, threads); 254 int nr_cpus = cpu_map__nr(evlist->cpus); 272 int nr_cpus = cpu_map__nr(evlist->cpus); 294 for (cpu = 0; cpu < evlist->cpus->nr; cpu++) { 313 for (cpu = 0; cpu < evlist->cpus->nr; cpu++) { 326 int nr_cpus = cpu_map__nr(evlist->cpus); 582 evlist->nr_mmaps = cpu_map__nr(evlist->cpus); 583 if (cpu_map__empty(evlist->cpus)) 609 int nr_cpus = cpu_map__nr(evlist->cpus); 701 const struct cpu_map *cpus = evlist->cpus; local [all...] |
evsel.c | 1002 static int __perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus, 1011 perf_evsel__alloc_fd(evsel, cpus->nr, threads->nr) < 0) 1031 for (cpu = 0; cpu < cpus->nr; cpu++) { 1042 pid, cpus->map[cpu], group_fd, flags); 1046 cpus->map[cpu], 1121 int cpus[1]; member in struct:__anon29795 1124 .cpus = { -1, }, 1135 int perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus, 1138 if (cpus == NULL) { 1140 cpus = &empty_cpu_map.map [all...] |
python.c | 373 struct cpu_map *cpus; member in struct:pyrf_cpu_map 386 pcpus->cpus = cpu_map__new(cpustr); 387 if (pcpus->cpus == NULL) 394 cpu_map__delete(pcpus->cpus); 402 return pcpus->cpus->nr; 409 if (i >= pcpus->cpus->nr) 412 return Py_BuildValue("i", pcpus->cpus->map[i]); 629 struct cpu_map *cpus = NULL; local 633 static char *kwlist[] = { "cpus", "threads", "group", "inherit", NULL }; 643 cpus = ((struct pyrf_cpu_map *)pcpus)->cpus 698 struct cpu_map *cpus; local [all...] |
/external/chromium_org/ppapi/native_client/src/trusted/plugin/ |
pnacl_coordinator.cc | 104 int cpus = plugin->nacl_interface()->GetNumberOfProcessors(); local 105 coordinator->split_module_count_ = std::min(4, std::max(1, cpus));
|
/external/chromium_org/third_party/webrtc/base/ |
cpumonitor_unittest.cc | 74 void OnCpuLoad(int current_cpus, int cpus, float proc_load, float sys_load) { 76 cpus_ = cpus; 83 int cpus() const { return cpus_; } function in class:rtc::CpuLoadListener 151 // Make 2 CPUs busy 156 // Make 1 CPUs busy 171 int cpus = sampler.GetMaxCpus(); local 192 EXPECT_LE(proc_idle, static_cast<float>(cpus)); 199 EXPECT_LE(sys_idle, static_cast<float>(cpus)); 221 EXPECT_LE(proc_halfbusy, static_cast<float>(cpus)); 228 EXPECT_LE(sys_halfbusy, static_cast<float>(cpus)); 324 int cpus = sampler.GetMaxCpus(); local [all...] |
/external/fio/os/ |
os-solaris.h | 111 processorid_t *cpus; local 114 cpus = malloc(sizeof(*cpus) * max_cpus); 116 if (pset_info(*mask, NULL, &num_cpus, cpus) < 0) { 117 free(cpus); 123 if (cpus[i] == cpu) { 129 free(cpus);
|
/ndk/sources/host-tools/make-3.81/ |
getloadavg.c | 470 static unsigned int cpus = 0; 690 if (cpus == 0) 721 cpus = c; 722 samples = cpus < 2 ? 3 : (2 * cpus / 3); 745 loadavg[elem++] = load / samples / cpus; 469 static unsigned int cpus = 0; variable
|
/external/fio/ |
server.h | 100 uint32_t cpus; member in struct:cmd_probe_reply_pdu
|
/external/oprofile/libpp/ |
xml_utils.cpp | 127 size_t cpus = 0; local 128 // count number of cpus 131 if (cpu > cpus) cpus = cpu; 133 // cpus names start with 0 134 nr_cpus = cpus + 1; 185 void xml_utils::set_nr_cpus(size_t cpus) 187 nr_cpus = cpus;
|
/external/blktrace/btreplay/ |
btreplay.c | 142 static int cpus_to_use = -1; // Number of CPUs to use 145 static int ncpus = 0; // Number of CPUs in the system 505 cpu_set_t cpus; local 507 if (sched_getaffinity(getpid(), sizeof(cpus), &cpus)) { 516 for (ncpus = 0; ncpus < CPU_SETSIZE && CPU_ISSET(ncpus, &cpus); ncpus++) 519 fatal(NULL, ERR_SYSCALL, "Insufficient number of CPUs\n"); 530 cpu_set_t cpus; local 534 CPU_ZERO(&cpus); 535 CPU_SET(tip->cpu, &cpus); [all...] |
/external/qemu/ |
exec.c | 61 struct CPUTailQ cpus = QTAILQ_HEAD_INITIALIZER(cpus); variable in typeref:struct:CPUTailQ 102 /* Must be called before using the QEMU cpus. 'tb_size' is the size 178 QTAILQ_INSERT_TAIL(&cpus, cpu, node); [all...] |
/external/blktrace/ |
blkparse.c | 69 struct per_cpu_info *cpus; member in struct:per_dev_info 323 struct per_cpu_info *cpus = pdi->cpus; local 330 cpus = realloc(cpus, size); 331 if (!cpus) { 338 new_start = (char *)cpus + (ncpus * sizeof(struct per_cpu_info)); 343 pdi->cpus = cpus; 346 struct per_cpu_info *pci = &pdi->cpus[new_count] [all...] |