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

1 2

  /external/linux-tools-perf/src/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/linux-tools-perf/src/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
pmu.c 275 struct cpu_map *cpus; local
291 cpus = cpu_map__read(file);
293 return cpus;
321 pmu->cpus = pmu_cpumask(name);
  /external/linux-tools-perf/src/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);
  /system/extras/simpleperf/
event_selection_set.cpp 61 std::vector<int> cpus = GetOnlineCpus(); local
62 if (cpus.empty()) {
66 for (auto& cpu : cpus) {
72 // As the online cpus can be enabled or disabled at runtime, we may not open event file for
73 // all cpus successfully. But we should open at least one cpu successfully.
76 << " on all 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
  /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/linux-tools-perf/src/tools/lib/traceevent/
event-parse.h 401 int cpus; member in struct:pevent
607 return pevent->cpus;
610 static inline void pevent_set_cpus(struct pevent *pevent, int cpus)
612 pevent->cpus = cpus;

Completed in 1090 milliseconds

1 2