struct machine *guest_machine;
struct thread *guest_thread;
struct thread *unknown_guest_thread;
- pid_t guest_machine_pid;
bool exclude_kernel;
bool have_sample;
u64 time;
struct machine *machine;
pid_t pid = ptq->pid <= 0 ? DEFAULT_GUEST_KERNEL_ID : ptq->pid;
- if (ptq->guest_machine && pid == ptq->guest_machine_pid)
+ if (ptq->guest_machine && pid == ptq->guest_machine->pid)
return 0;
ptq->guest_machine = NULL;
return -1;
ptq->guest_machine = machine;
- ptq->guest_machine_pid = pid;
return 0;
}