/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_::__anon11535 [all...] |
/external/linux-tools-perf/util/ |
cpumap.c | 9 struct cpu_map *cpus; local 16 cpus = malloc(sizeof(*cpus) + nr_cpus * sizeof(int)); 17 if (cpus != NULL) { 20 cpus->map[i] = i; 22 cpus->nr = nr_cpus; 25 return cpus; 31 struct cpu_map *cpus = malloc(sizeof(*cpus) + payload_size); local 33 if (cpus != NULL) 43 struct cpu_map *cpus = NULL; local 104 struct cpu_map *cpus = NULL; local 171 struct cpu_map *cpus = malloc(sizeof(*cpus) + sizeof(int)); local [all...] |
evlist.h | 33 struct cpu_map *cpus; member in struct:perf_evlist 38 struct perf_evlist *perf_evlist__new(struct cpu_map *cpus, 40 void perf_evlist__init(struct perf_evlist *evlist, struct cpu_map *cpus, 63 struct cpu_map *cpus, 66 evlist->cpus = cpus;
|
evlist.c | 31 void perf_evlist__init(struct perf_evlist *evlist, struct cpu_map *cpus, 39 perf_evlist__set_maps(evlist, cpus, threads); 42 struct perf_evlist *perf_evlist__new(struct cpu_map *cpus, 48 perf_evlist__init(evlist, cpus, threads); 103 int nfds = evlist->cpus->nr * evlist->threads->nr * evlist->nr_entries; 259 evlist->nr_mmaps = evlist->cpus->nr; 260 if (evlist->cpus->map[0] == -1) 285 for (cpu = 0; cpu < evlist->cpus->nr; cpu++) { 312 for (cpu = 0; cpu < evlist->cpus->nr; cpu++) { 380 const struct cpu_map *cpus = evlist->cpus local 440 const struct cpu_map *cpus = evlist->cpus; local [all...] |
evsel.c | 203 static int __perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus, 213 perf_evsel__alloc_fd(evsel, cpus->nr, threads->nr) < 0) 221 for (cpu = 0; cpu < cpus->nr; cpu++) { 231 cpus->map[cpu], 260 int cpus[1]; member in struct:__anon24166 263 .cpus = { -1, }, 274 int perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus, 277 if (cpus == NULL) { 279 cpus = &empty_cpu_map.map; 285 return __perf_evsel__open(evsel, cpus, threads, group) [all...] |
evsel.h | 92 struct cpu_map *cpus, bool group); 95 int perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus, 135 * perf_evsel__read - Read the aggregate results on all CPUs 138 * @ncpus - Number of cpus affected, from zero 148 * perf_evsel__read_scaled - Read the aggregate results on all CPUs, scaled 151 * @ncpus - Number of cpus affected, from zero
|
svghelper.h | 6 extern void open_svg(const char *filename, int cpus, int rows, u64 start, u64 end);
|
python.c | 244 struct cpu_map *cpus; member in struct:pyrf_cpu_map 257 pcpus->cpus = cpu_map__new(cpustr); 258 if (pcpus->cpus == NULL) 265 cpu_map__delete(pcpus->cpus); 273 return pcpus->cpus->nr; 280 if (i >= pcpus->cpus->nr) 283 return Py_BuildValue("i", pcpus->cpus->map[i]); 498 struct cpu_map *cpus = NULL; local 502 static char *kwlist[] = {"cpus", "threads", "group", "inherit", NULL, NULL}; 512 cpus = ((struct pyrf_cpu_map *)pcpus)->cpus 563 struct cpu_map *cpus; local [all...] |
top.c | 150 top->evlist->cpus->nr > 1 ? "s" : "", top->cpu_list); 156 top->evlist->cpus->nr, 157 top->evlist->cpus->nr > 1 ? "s" : "");
|
svghelper.c | 74 void open_svg(const char *filename, int cpus, int rows, u64 start, u64 end) 96 total_height = (1 + rows + cpu2slot(cpus)) * SLOT_MULT;
|
/external/linux-tools-perf/python/ |
twatch.py | 19 cpus = perf.cpu_map() 25 evsel.open(cpus = cpus, threads = threads); 26 evlist = perf.evlist(cpus, threads) 31 for cpu in cpus:
|
/external/linux-tools-perf/scripts/perl/ |
workqueue-stats.pl | 24 my @cpus; 32 $cpus[$common_cpu]{$thread_pid}{destroyed}++; 33 $cpus[$common_cpu]{$thread_pid}{comm} = $thread_comm; 42 $cpus[$common_cpu]{$thread_pid}{created}++; 43 $cpus[$common_cpu]{$thread_pid}{comm} = $thread_comm; 52 $cpus[$common_cpu]{$thread_pid}{executed}++; 53 $cpus[$common_cpu]{$thread_pid}{comm} = $thread_comm; 62 $cpus[$common_cpu]{$thread_pid}{inserted}++; 63 $cpus[$common_cpu]{$thread_pid}{comm} = $thread_comm; 72 foreach my $pidhash (@cpus) { [all...] |
/external/chromium_org/third_party/libjingle/source/talk/base/ |
cpumonitor_unittest.cc | 90 void OnCpuLoad(int current_cpus, int cpus, float proc_load, float sys_load) { 92 cpus_ = cpus; 99 int cpus() const { return cpus_; } function in class:talk_base::CpuLoadListener 167 // Make 2 CPUs busy 172 // Make 1 CPUs busy 187 int cpus = sampler.GetMaxCpus(); local 208 EXPECT_LE(proc_idle, static_cast<float>(cpus)); 215 EXPECT_LE(sys_idle, static_cast<float>(cpus)); 237 EXPECT_LE(proc_halfbusy, static_cast<float>(cpus)); 244 EXPECT_LE(sys_halfbusy, static_cast<float>(cpus)); 340 int cpus = sampler.GetMaxCpus(); local [all...] |
/external/linux-tools-perf/ |
builtin-test.c | 332 struct cpu_map *cpus; local 350 cpus = cpu_map__new(NULL); 351 if (cpus == NULL) { 368 if (perf_evsel__open(evsel, cpus, threads, false) < 0) { 375 for (cpu = 0; cpu < cpus->nr; ++cpu) { 380 * without CPU_ALLOC. 1024 cpus in 2010 still seems 383 if (cpus->map[cpu] >= CPU_SETSIZE) { 384 pr_debug("Ignoring CPU %d\n", cpus->map[cpu]); 388 CPU_SET(cpus->map[cpu], &cpu_set); 391 cpus->map[cpu] [all...] |
builtin-stat.c | 15 1708.761321 task-clock # 11.037 CPUs utilized 285 return perf_evsel__open_per_cpu(evsel, evsel_list->cpus, false); 340 * aggregate counts across CPUs in system-wide mode 348 if (__perf_evsel__read(counter, evsel_list->cpus->nr, 370 * do not aggregate counts across CPUs in system-wide mode 377 for (cpu = 0; cpu < evsel_list->cpus->nr; cpu++) { 500 perf_evsel__close_fd(counter, evsel_list->cpus->nr, 1); 505 perf_evsel__close_fd(counter, evsel_list->cpus->nr, 543 evsel_list->cpus->map[cpu], csv_sep); 554 fprintf(stderr, " # %8.3f CPUs utilized ", avg / avg_stats(&walltime_nsecs_stats)) [all...] |
builtin-record.c | 255 if (evlist->cpus->map[0] < 0) 278 if (perf_evsel__open(pos, evlist->cpus, evlist->threads, group) < 0) { 705 for (i = 0; i < evsel_list->cpus->nr; i++) { 768 OPT_BOOLEAN('a', "all-cpus", &system_wide, 769 "system-wide collection from all CPUs"), 773 "list of cpus to monitor"), 865 if (perf_evsel__alloc_fd(pos, evsel_list->cpus->nr,
|
/external/oprofile/libpp/ |
xml_utils.h | 36 static void set_nr_cpus(size_t cpus);
|
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;
|
/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/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/chromium/third_party/libjingle/source/talk/base/ |
linux.cc | 72 int cpus = static_cast<int>(cpu_info_.size()); local 73 for (int i = 0; i < cpus; ++i) {
|
/external/fdlibm/ |
Android.mk | 66 # little endian cpus.
|
/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...] |
/external/blktrace/btreplay/doc/ |
btreplay.tex | 171 The number of CPUs being used on the replay system can be different from 173 \texttt{--cpus} option allows one to state how many CPUs on the replay 174 system to utilize. If the number of CPUs on the replay system is less than 178 \texttt{--cpus} option.) 387 [ -c <cpus> : --cpus=<cpus> ] Default: 1 406 \texttt{--cpus}\\Set Number of CPUs to Use [all...] |