HomeSort by relevance Sort by last modified time
    Searched refs:cpus (Results 1 - 25 of 51) sorted by null

1 2 3

  /external/linux-tools-perf/perf-3.12.0/tools/perf/tests/
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...]
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);
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);
sw-clock.c 52 evlist->cpus = cpu_map__dummy_new();
54 if (!evlist->cpus || !evlist->threads) {
task-exit.c 56 * Create maps of threads and cpus to monitor. In this case
57 * we start with all threads and cpus (-1, -1) but then in
61 evlist->cpus = cpu_map__dummy_new();
63 if (!evlist->cpus || !evlist->threads) {
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/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;
  /external/linux-tools-perf/perf-3.12.0/tools/perf/util/
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...]
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.h 19 int cpu_map__build_socket_map(struct cpu_map *cpus, struct cpu_map **sockp);
20 int cpu_map__build_core_map(struct cpu_map *cpus, struct cpu_map **corep);
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;
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...]
top.c 98 top->evlist->cpus->nr > 1 ? "s" : "",
105 top->evlist->cpus->nr,
106 top->evlist->cpus->nr > 1 ? "s" : "");
pmu.h 19 struct cpu_map *cpus; member in struct:perf_pmu
svghelper.h 6 extern void open_svg(const char *filename, int cpus, int rows, u64 start, u64 end);
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...]
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
  /external/linux-tools-perf/perf-3.12.0/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/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);
  /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/qemu/include/qom/
cpu.h 97 extern struct CPUTailQ cpus;
99 #define CPU_FOREACH(cpu) QTAILQ_FOREACH(cpu, &cpus, node)
101 QTAILQ_FOREACH_SAFE(cpu, &cpus, node, next_cpu)
102 #define first_cpu QTAILQ_FIRST(&cpus)
  /external/oprofile/libpp/
xml_utils.h 36 static void set_nr_cpus(size_t cpus);
  /external/lldb/scripts/
build-llvm.pl 146 my $cpus = `sysctl -n hw.availcpu`;
147 chomp ($cpus);
151 return min($max_cpus_by_memory, $cpus);
269 print "Building clang using $num_cpus cpus ($arch)...\n";
  /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

Completed in 894 milliseconds

1 2 3