Lines Matching refs:nr_cpus
80 static int make_guest_fifos(const char *guest, int nr_cpus, mode_t mode) in make_guest_fifos() argument
86 for (i = 0; i < nr_cpus; i++) { in make_guest_fifos()
99 int nr_cpus = -1; in get_guest_cpu_count() local
108 fscanf(f, "%d", &nr_cpus); in get_guest_cpu_count()
111 return nr_cpus; in get_guest_cpu_count()
114 static int attach_guest_fifos(const char *guest, int nr_cpus) in attach_guest_fifos() argument
137 for (i = 0; i < nr_cpus; i++) { in attach_guest_fifos()
156 static void do_setup_guest(const char *guest, int nr_cpus, in do_setup_guest() argument
173 ret = make_guest_fifos(guest, nr_cpus, mode); in do_setup_guest()
178 ret = attach_guest_fifos(guest, nr_cpus); in do_setup_guest()
195 int nr_cpus = -1; in trace_setup_guest() local
221 nr_cpus = atoi(optarg); in trace_setup_guest()
245 if (nr_cpus <= 0) in trace_setup_guest()
246 nr_cpus = get_guest_cpu_count(guest); in trace_setup_guest()
248 if (nr_cpus <= 0) in trace_setup_guest()
251 do_setup_guest(guest, nr_cpus, mode, gid, attach); in trace_setup_guest()