Searched defs:cpus (Results 1 - 25 of 27) sorted by relevance

12

/external/chromium_org/native_client_sdk/src/libraries/third_party/pthreads-win32/
H A Dpthread_spin_init.c45 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;
H A Dimplement.h285 * 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_::__anon8938
/external/linux-tools-perf/perf-3.12.0/tools/perf/tests/
H A Dkeep-tracking.c64 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);
H A Dopen-syscall-all-cpus.c10 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
[all...]
H A Dmmap-basic.c23 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);
H A Dperf-time-to-tsc.c60 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);
H A Dcode-reading.c396 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/
H A Dpmu.h19 struct cpu_map *cpus; member in struct:perf_pmu
H A Drecord.c47 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)
H A Dcpumap.c11 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 !
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
240 cpu_map__build_map(struct cpu_map *cpus, struct cpu_map **res, int (*f)(struct cpu_map *map, int cpu)) argument
311 cpu_map__build_socket_map(struct cpu_map *cpus, struct cpu_map **sockp) argument
316 cpu_map__build_core_map(struct cpu_map *cpus, struct cpu_map **corep) argument
[all...]
H A Devlist.h46 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;
123 perf_evlist__set_maps(struct perf_evlist *evlist, struct cpu_map *cpus, struct thread_map *threads) argument
H A Devsel.h81 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,
236 * @ncpus - Number of cpus affected, from zero
249 * @ncpus - Number of cpus affected, from zero
H A Dpmu.c275 struct cpu_map *cpus; local
291 cpus = cpu_map__read(file);
293 return cpus;
321 pmu->cpus = pmu_cpumask(name);
H A Dsvghelper.c74 void open_svg(const char *filename, int cpus, int rows, u64 start, u64 end) argument
96 total_height = (1 + rows + cpu2slot(cpus)) * SLOT_MULT;
H A Devlist.c30 void perf_evlist__init(struct perf_evlist *evlist, struct cpu_map *cpus, argument
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...]
H A Dpython.c373 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
698 struct cpu_map *cpus; local
[all...]
H A Devsel.c1002 static int __perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus, argument
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:__anon25184
1124 .cpus = { -1, },
1135 int perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus, argument
1138 if (cpus == NULL) {
1140 cpus
1149 perf_evsel__open_per_cpu(struct perf_evsel *evsel, struct cpu_map *cpus) argument
[all...]
H A Dparse-events.c274 char *name, struct cpu_map *cpus)
284 evsel->cpus = cpus;
656 pmu->cpus);
272 __add_event(struct list_head *list, int *idx, struct perf_event_attr *attr, char *name, struct cpu_map *cpus) argument
/external/fio/os/
H A Dos-solaris.h111 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);
/external/chromium_org/ppapi/native_client/src/trusted/plugin/
H A Dpnacl_coordinator.cc104 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/
H A Dcpumonitor_unittest.cc74 void OnCpuLoad(int current_cpus, int cpus, float proc_load, float sys_load) { argument
76 cpus_ = cpus;
83 int cpus() const { return cpus_; } function in class:rtc::CpuLoadListener
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));
250 EXPECT_LE(proc_busy, static_cast<float>(cpus));
257 EXPECT_LE(sys_busy, static_cast<float>(cpus));
324 int cpus = sampler.GetMaxCpus(); local
[all...]
/external/fio/
H A Dserver.h100 uint32_t cpus; member in struct:cmd_probe_reply_pdu
/external/blktrace/btreplay/
H A Dbtreplay.c505 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++)
530 cpu_set_t cpus; local
534 CPU_ZERO(&cpus);
535 CPU_SET(tip->cpu, &cpus);
536 if (sched_setaffinity(getpid(), sizeof(cpus), &cpus)) {
1361 "\t[ -c <cpus>
[all...]
/external/oprofile/libpp/
H A Dxml_utils.cpp127 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) argument
187 nr_cpus = cpus;
/external/blktrace/
H A Dblkparse.c69 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_coun
[all...]

Completed in 462 milliseconds

12