Home
last modified time | relevance | path

Searched refs:cpu (Results 1 – 25 of 377) sorted by relevance

12345678910>>...16

/external/v8/src/base/
Dcpu-unittest.cc12 CPU cpu; in TEST() local
15 EXPECT_TRUE(!cpu.has_sse() || cpu.has_mmx()); in TEST()
16 EXPECT_TRUE(!cpu.has_sse2() || cpu.has_sse()); in TEST()
17 EXPECT_TRUE(!cpu.has_sse3() || cpu.has_sse2()); in TEST()
18 EXPECT_TRUE(!cpu.has_ssse3() || cpu.has_sse3()); in TEST()
19 EXPECT_TRUE(!cpu.has_sse41() || cpu.has_sse3()); in TEST()
20 EXPECT_TRUE(!cpu.has_sse42() || cpu.has_sse41()); in TEST()
23 EXPECT_TRUE(!cpu.has_vfp3_d32() || cpu.has_vfp3()); in TEST()
28 CPU cpu; in TEST() local
31 EXPECT_TRUE(cpu.has_fpu()); in TEST()
[all …]
/external/linux-tools-perf/src/tools/perf/scripts/python/
Dnetdev-times.py87 cpu = irq_list[0]['cpu']
101 (nsecs_secs(base_t), nsecs_nsecs(base_t)/1000, cpu)
227 def irq__softirq_entry(name, context, cpu, sec, nsec, pid, comm, vec): argument
230 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec)
233 def irq__softirq_exit(name, context, cpu, sec, nsec, pid, comm, vec): argument
236 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec)
239 def irq__softirq_raise(name, context, cpu, sec, nsec, pid, comm, vec): argument
242 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec)
245 def irq__irq_handler_entry(name, context, cpu, sec, nsec, pid, comm, argument
247 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm,
[all …]
Dsched-migration.py177 def sched_switch(self, ts_list, prev, prev_state, next, cpu): argument
178 old_rq = self.prev.rqs[cpu]
184 self.rqs[cpu] = new_rq
187 self.event_cpus = [cpu]
208 def wake_up(self, ts_list, pid, cpu, fork): argument
209 old_rq = self.prev.rqs[cpu]
217 self.rqs[cpu] = new_rq
220 self.event_cpus = [cpu]
263 def mouse_down(self, cpu, t): argument
269 rq = ts.rqs[cpu]
[all …]
/external/linux-tools-perf/src/tools/perf/tests/
Dopen-syscall-all-cpus.c9 int err = -1, fd, cpu; in test__open_syscall_event_on_all_cpus() local
42 for (cpu = 0; cpu < cpus->nr; ++cpu) { in test__open_syscall_event_on_all_cpus()
43 unsigned int ncalls = nr_open_calls + cpu; in test__open_syscall_event_on_all_cpus()
50 if (cpus->map[cpu] >= CPU_SETSIZE) { in test__open_syscall_event_on_all_cpus()
51 pr_debug("Ignoring CPU %d\n", cpus->map[cpu]); in test__open_syscall_event_on_all_cpus()
55 CPU_SET(cpus->map[cpu], &cpu_set); in test__open_syscall_event_on_all_cpus()
58 cpus->map[cpu], in test__open_syscall_event_on_all_cpus()
66 CPU_CLR(cpus->map[cpu], &cpu_set); in test__open_syscall_event_on_all_cpus()
81 for (cpu = 0; cpu < cpus->nr; ++cpu) { in test__open_syscall_event_on_all_cpus()
84 if (cpus->map[cpu] >= CPU_SETSIZE) in test__open_syscall_event_on_all_cpus()
[all …]
Dperf-record.c10 int i, cpu = -1, nrcpus = 1024; in sched__get_first_possible_cpu() local
25 if (cpu == -1) in sched__get_first_possible_cpu()
26 cpu = i; in sched__get_first_possible_cpu()
32 return cpu; in sched__get_first_possible_cpu()
60 u32 cpu; in test__PERF_RECORD() local
118 cpu = err; in test__PERF_RECORD()
183 pr_info("%" PRIu64" %d ", sample.time, sample.cpu); in test__PERF_RECORD()
195 if (sample.cpu != cpu) { in test__PERF_RECORD()
197 name, cpu, sample.cpu); in test__PERF_RECORD()
/external/google-breakpad/src/client/linux/dump_writer_common/
Dseccomp_unwinder.cc39 void SeccompUnwinder::PopSeccompStackFrame(RawContextCPU* cpu, in PopSeccompStackFrame() argument
43 uint64_t bp = cpu->rbp; in PopSeccompStackFrame()
86 cpu->rbx = seccomp_stackframe.rbx; in PopSeccompStackFrame()
87 cpu->rcx = seccomp_stackframe.rcx; in PopSeccompStackFrame()
88 cpu->rdx = seccomp_stackframe.rdx; in PopSeccompStackFrame()
89 cpu->rsi = seccomp_stackframe.rsi; in PopSeccompStackFrame()
90 cpu->rdi = seccomp_stackframe.rdi; in PopSeccompStackFrame()
91 cpu->rbp = seccomp_stackframe.rbp; in PopSeccompStackFrame()
92 cpu->rsp = top + 4*sizeof(uint64_t) + 128; in PopSeccompStackFrame()
93 cpu->r8 = seccomp_stackframe.r8; in PopSeccompStackFrame()
[all …]
/external/valgrind/tests/
Dx86_amd64_features.c71 static Bool go(char* cpu) in go() argument
76 if ( strcmp( cpu, "x86-fpu" ) == 0 ) { in go()
79 } else if ( strcmp( cpu, "x86-cmov" ) == 0 ) { in go()
82 } else if ( strcmp( cpu, "x86-mmx" ) == 0 ) { in go()
85 } else if ( strcmp( cpu, "x86-mmxext" ) == 0 ) { in go()
88 } else if ( strcmp( cpu, "x86-sse" ) == 0 ) { in go()
91 } else if ( strcmp( cpu, "x86-sse2" ) == 0 ) { in go()
94 } else if ( strcmp( cpu, "x86-sse3" ) == 0 ) { in go()
97 } else if ( strcmp( cpu, "x86-ssse3" ) == 0 ) { in go()
100 } else if ( strcmp( cpu, "x86-lzcnt" ) == 0 ) { in go()
[all …]
Ds390x_features.c201 static int go(char *feature, char *cpu) in go() argument
241 if (cpu == NULL) return 0; in go()
250 colon = strchr(cpu, ':'); in go()
254 from = to = locate_model(cpu); in go()
255 } else if (colon == cpu) { in go()
258 to = locate_model(cpu + 1); in go()
262 from = locate_model(cpu); in go()
268 from = locate_model(cpu); in go()
274 fprintf(stderr, "invalid cpu specification '%s'\n", cpu); in go()
293 static int go(char *feature, char *cpu) in go() argument
/external/webrtc/src/system_wrappers/source/
Dcpu_mac.cc48 for (unsigned int cpu= 0; cpu < cpuCount; cpu++) in CpuWrapperMac() local
53 ticks += cpuLoadInfo[cpu].cpu_ticks[state]; in CpuWrapperMac()
55 _lastTickCount[cpu] = ticks; in CpuWrapperMac()
56 _cpuUsage[cpu] = 0; in CpuWrapperMac()
120 for (unsigned int cpu = 0; cpu < cpuCount; cpu++) in Update() local
125 ticks += cpuLoadInfo[cpu].cpu_ticks[state]; in Update()
129 _cpuUsage[cpu] = 0; in Update()
131 _cpuUsage[cpu] = (WebRtc_UWord32)((1000 * in Update()
132 (ticks - _lastTickCount[cpu])) / in Update()
135 _lastTickCount[cpu] = ticks; in Update()
[all …]
/external/linux-tools-perf/src/tools/perf/
Dbuiltin-stat.c107 static int (*aggr_get_id)(struct cpu_map *m, int cpu);
345 int cpu; in read_counter() local
347 for (cpu = 0; cpu < perf_evsel__nr_cpus(counter); cpu++) { in read_counter()
348 if (__perf_evsel__read_on_cpu(counter, cpu, 0, scale) < 0) in read_counter()
351 count = counter->counts->cpu[cpu].values; in read_counter()
628 static void nsec_printout(int cpu, int nr, struct perf_evsel *evsel, double avg) in nsec_printout() argument
633 aggr_printout(evsel, cpu, nr); in nsec_printout()
677 static void print_stalled_cycles_frontend(int cpu, in print_stalled_cycles_frontend() argument
684 total = avg_stats(&runtime_cycles_stats[cpu]); in print_stalled_cycles_frontend()
696 static void print_stalled_cycles_backend(int cpu, in print_stalled_cycles_backend() argument
[all …]
Dbuiltin-timechart.c125 int cpu; member
139 int cpu; member
231 pid_put_sample(int pid, int type, unsigned int cpu, u64 start, u64 end) in pid_put_sample() argument
253 sample->cpu = cpu; in pid_put_sample()
345 static void c_state_start(int cpu, u64 timestamp, int state) in c_state_start() argument
347 cpus_cstate_start_times[cpu] = timestamp; in c_state_start()
348 cpus_cstate_state[cpu] = state; in c_state_start()
351 static void c_state_end(int cpu, u64 timestamp) in c_state_end() argument
358 pwr->state = cpus_cstate_state[cpu]; in c_state_end()
359 pwr->start_time = cpus_cstate_start_times[cpu]; in c_state_end()
[all …]
/external/linux-tools-perf/src/tools/perf/util/
Dcpumap.c49 int n, cpu, prev; in cpu_map__read() local
55 n = fscanf(file, "%u%c", &cpu, &sep); in cpu_map__read()
59 int new_max = nr_cpus + cpu - prev - 1; in cpu_map__read()
69 while (++prev < cpu) in cpu_map__read()
80 tmp_cpus[nr_cpus++] = cpu; in cpu_map__read()
82 prev = cpu; in cpu_map__read()
212 int cpu, ret; in cpu_map__get_socket() local
217 cpu = map->map[idx]; in cpu_map__get_socket()
225 mnt, cpu); in cpu_map__get_socket()
230 ret = fscanf(fp, "%d", &cpu); in cpu_map__get_socket()
[all …]
Devlist.c252 int cpu, thread; in perf_evlist__disable() local
257 for (cpu = 0; cpu < nr_cpus; cpu++) { in perf_evlist__disable()
262 ioctl(FD(pos, cpu, thread), in perf_evlist__disable()
270 int cpu, thread; in perf_evlist__enable() local
275 for (cpu = 0; cpu < nr_cpus; cpu++) { in perf_evlist__enable()
280 ioctl(FD(pos, cpu, thread), in perf_evlist__enable()
289 int cpu, thread, err; in perf_evlist__disable_event() local
294 for (cpu = 0; cpu < evlist->cpus->nr; cpu++) { in perf_evlist__disable_event()
296 err = ioctl(FD(evsel, cpu, thread), in perf_evlist__disable_event()
308 int cpu, thread, err; in perf_evlist__enable_event() local
[all …]
Dsvghelper.c37 static double cpu2slot(int cpu) in cpu2slot() argument
39 return 2 * cpu + 1; in cpu2slot()
42 static double cpu2y(int cpu) in cpu2y() argument
44 return cpu2slot(cpu) * SLOT_MULT; in cpu2y()
131 void svg_sample(int Yslot, int cpu, u64 start, u64 end) in svg_sample() argument
141 if (cpu > 9) in svg_sample()
149 time2pixels(start), Yslot * SLOT_MULT + SLOT_HEIGHT - 1, text_size, cpu + 1); in svg_sample()
236 void svg_cpu_box(int cpu, u64 __max_freq, u64 __turbo_freq) in svg_cpu_box() argument
248 cpu2y(cpu), SLOT_MULT+SLOT_HEIGHT); in svg_cpu_box()
250 sprintf(cpu_string, "CPU %i", (int)cpu+1); in svg_cpu_box()
[all …]
Drecord.c8 static int perf_do_probe_api(setup_probe_fn_t fn, int cpu, const char *str) in perf_do_probe_api() argument
23 fd = sys_perf_event_open(&evsel->attr, -1, cpu, -1, 0); in perf_do_probe_api()
30 fd = sys_perf_event_open(&evsel->attr, -1, cpu, -1, 0); in perf_do_probe_api()
48 int cpu, ret, i = 0; in perf_probe_api() local
53 cpu = cpus->map[0]; in perf_probe_api()
57 ret = perf_do_probe_api(fn, cpu, try[i++]); in perf_probe_api()
/external/blktrace/
Dblktrace.c138 int cpu, len; member
168 int cpu, nios; member
185 u32 cpu; /* for which cpu */ member
484 static inline void pdc_dr_update(struct devpath *dpp, int cpu, int data_read) in pdc_dr_update() argument
486 dpp->stats[cpu].data_read += data_read; in pdc_dr_update()
489 static inline void pdc_nev_update(struct devpath *dpp, int cpu, int nevents) in pdc_nev_update() argument
491 dpp->stats[cpu].nevents += nevents; in pdc_nev_update()
607 static int lock_on_cpu(int cpu) in lock_on_cpu() argument
613 CPU_SET(cpu, &cpu_mask); in lock_on_cpu()
856 static int net_send_header(int fd, int cpu, char *buts_name, int len) in net_send_header() argument
[all …]
Dverify_blkparse.c13 int major, minor, cpu, nr, alias; in main() local
36 if (sscanf(p, "%3d,%3d %2d %8d %lf", &major, &minor, &cpu, &seq, &this_time) != 5) in main()
47 if (cpu >= MAX_CPUS) { in main()
48 fprintf(stderr, "cpu%d too large\n", cpu); in main()
52 if (last_seq[cpu] == seq) { in main()
57 last_seq[cpu] = seq; in main()
Dblkrawverify.c114 fprintf(ofp, " %8s: %u\n", "cpu", bit->cpu); in dump_trace()
121 static int process(FILE **fp, char *devname, char *file, unsigned int cpu) in process() argument
208 if (bit->cpu != cpu) { in process()
252 fprintf(ofp, " Summary for cpu %d:\n", cpu); in process()
280 int i, cpu, nbad, rval = 0; in main() local
297 for (cpu = 0; ; cpu++) { in main()
298 sprintf(fname, "%s.blktrace.%d", devname, cpu); in main()
300 if (cpu == 0) { in main()
307 printf(" CPU %d ", cpu); fflush(stdout); in main()
308 nbad = process(&ofp, devname, fname, cpu); in main()
/external/clang/test/CodeGen/
Dpr4349.c10 struct cpu struct
14 extern struct cpu cpu; argument
22 { &((cpu.pc).w[0]) }
27 { &((cpu.pc).b[0][1]) }
32 { &((cpu.pc).w[1]) }
37 { &((cpu.pc).b[1][1]) }
/external/clang/test/Driver/
Dr600-mcpu.cl39 // R600-CHECK: "-target-cpu" "r600"
40 // RS880-CHECK: "-target-cpu" "rs880"
41 // RV670-CHECK: "-target-cpu" "rv670"
42 // RV710-CHECK: "-target-cpu" "rv710"
43 // RV730-CHECK: "-target-cpu" "rv730"
44 // RV770-CHECK: "-target-cpu" "rv770"
45 // CEDAR-CHECK: "-target-cpu" "cedar"
46 // REDWOOD-CHECK: "-target-cpu" "redwood"
47 // SUMO-CHECK: "-target-cpu" "sumo"
48 // JUNIPER-CHECK: "-target-cpu" "juniper"
[all …]
/external/fio/
Dconfigure131 cpu=""
143 --cpu=*) cpu="$optarg"
228 if test -z "$cpu" && test "$(sysctl -n hw.optional.x86_64)" = "1"; then
229 cpu="x86_64"
234 if test -z "$cpu" && test "$(isainfo -k)" = "amd64"; then
235 cpu="x86_64"
274 if test ! -z "$cpu" ; then
278 cpu="i386"
280 cpu="x86_64"
283 cpu="sparc64"
[all …]
/external/iptables/extensions/
Dlibxt_cpu.man2 [\fB!\fP] \fB\-\-cpu\fP \fInumber\fP
3 Match cpu handling this packet. cpus are numbered from 0 to NR_CPUS-1
9 iptables \-t nat \-A PREROUTING \-p tcp \-\-dport 80 \-m cpu \-\-cpu 0
12 iptables \-t nat \-A PREROUTING \-p tcp \-\-dport 80 \-m cpu \-\-cpu 1
/external/v8/tools/
Dcpu.sh6 CPUPATH=/sys/devices/system/cpu
13 echo "$1" > $CPUPATH/cpu$i/cpufreq/scaling_governor
20 echo 0 > $CPUPATH/cpu$i/online
27 echo 0 > $CPUPATH/cpu$i/online
35 echo 1 > $CPUPATH/cpu$i/online
/external/fio/os/
Dos-freebsd.h33 #define fio_cpu_clear(mask, cpu) (void) CPU_CLR((cpu), (mask)) argument
34 #define fio_cpu_set(mask, cpu) (void) CPU_SET((cpu), (mask)) argument
35 #define fio_cpu_isset(mask, cpu) CPU_ISSET((cpu), (mask)) argument
/external/llvm/test/MC/ARM/
Dcpu-test.s6 .cpu cortex-a8
9 .cpu arm9
13 .cpu foobar
15 .cpu cortex-m3

12345678910>>...16