• Home
  • Raw
  • Download

Lines Matching refs:cpu

249 	int cpu;  in kgdb_roundup_cpus()  local
252 for_each_online_cpu(cpu) { in kgdb_roundup_cpus()
254 if (cpu == this_cpu) in kgdb_roundup_cpus()
257 csd = &per_cpu(kgdb_roundup_csd, cpu); in kgdb_roundup_cpus()
267 if (kgdb_info[cpu].rounding_up) in kgdb_roundup_cpus()
269 kgdb_info[cpu].rounding_up = true; in kgdb_roundup_cpus()
272 ret = smp_call_function_single_async(cpu, csd); in kgdb_roundup_cpus()
274 kgdb_info[cpu].rounding_up = false; in kgdb_roundup_cpus()
472 void kdb_dump_stack_on_cpu(int cpu) in kdb_dump_stack_on_cpu() argument
474 if (cpu == raw_smp_processor_id() || !IS_ENABLED(CONFIG_SMP)) { in kdb_dump_stack_on_cpu()
479 if (!(kgdb_info[cpu].exception_state & DCPU_IS_SLAVE)) { in kdb_dump_stack_on_cpu()
481 cpu); in kdb_dump_stack_on_cpu()
496 kgdb_info[cpu].exception_state |= DCPU_WANT_BT; in kdb_dump_stack_on_cpu()
497 while (kgdb_info[cpu].exception_state & DCPU_WANT_BT) in kdb_dump_stack_on_cpu()
593 int cpu; in kgdb_cpu_enter() local
598 kgdb_info[ks->cpu].enter_kgdb++; in kgdb_cpu_enter()
599 kgdb_info[ks->cpu].exception_state |= exception_state; in kgdb_cpu_enter()
617 cpu = ks->cpu; in kgdb_cpu_enter()
618 kgdb_info[cpu].debuggerinfo = regs; in kgdb_cpu_enter()
619 kgdb_info[cpu].task = current; in kgdb_cpu_enter()
620 kgdb_info[cpu].ret_state = 0; in kgdb_cpu_enter()
621 kgdb_info[cpu].irq_depth = hardirq_count() >> HARDIRQ_SHIFT; in kgdb_cpu_enter()
628 atomic_xchg(&kgdb_active, cpu); in kgdb_cpu_enter()
638 if (kgdb_info[cpu].exception_state & DCPU_NEXT_MASTER) { in kgdb_cpu_enter()
639 kgdb_info[cpu].exception_state &= ~DCPU_NEXT_MASTER; in kgdb_cpu_enter()
641 } else if (kgdb_info[cpu].exception_state & DCPU_WANT_MASTER) { in kgdb_cpu_enter()
643 atomic_xchg(&kgdb_active, cpu); in kgdb_cpu_enter()
646 } else if (kgdb_info[cpu].exception_state & DCPU_WANT_BT) { in kgdb_cpu_enter()
648 kgdb_info[cpu].exception_state &= ~DCPU_WANT_BT; in kgdb_cpu_enter()
649 } else if (kgdb_info[cpu].exception_state & DCPU_IS_SLAVE) { in kgdb_cpu_enter()
661 kgdb_info[cpu].debuggerinfo = NULL; in kgdb_cpu_enter()
662 kgdb_info[cpu].task = NULL; in kgdb_cpu_enter()
663 kgdb_info[cpu].exception_state &= in kgdb_cpu_enter()
665 kgdb_info[cpu].enter_kgdb--; in kgdb_cpu_enter()
683 (kgdb_info[cpu].task && in kgdb_cpu_enter()
684 kgdb_info[cpu].task->pid != kgdb_sstep_pid) && --sstep_tries) { in kgdb_cpu_enter()
695 kgdb_info[cpu].ret_state = 1; in kgdb_cpu_enter()
793 kgdb_info[cpu].ret_state = error; in kgdb_cpu_enter()
826 kgdb_info[cpu].debuggerinfo = NULL; in kgdb_cpu_enter()
827 kgdb_info[cpu].task = NULL; in kgdb_cpu_enter()
828 kgdb_info[cpu].exception_state &= in kgdb_cpu_enter()
830 kgdb_info[cpu].enter_kgdb--; in kgdb_cpu_enter()
840 return kgdb_info[cpu].ret_state; in kgdb_cpu_enter()
870 ks->cpu = raw_smp_processor_id(); in kgdb_handle_exception()
878 if (kgdb_info[ks->cpu].enter_kgdb != 0) in kgdb_handle_exception()
902 int kgdb_nmicallback(int cpu, void *regs) in kgdb_nmicallback() argument
908 kgdb_info[cpu].rounding_up = false; in kgdb_nmicallback()
911 ks->cpu = cpu; in kgdb_nmicallback()
914 if (kgdb_info[ks->cpu].enter_kgdb == 0 && in kgdb_nmicallback()
924 int kgdb_nmicallin(int cpu, int trapnr, void *regs, int err_code, in kgdb_nmicallin() argument
931 if (kgdb_info[cpu].enter_kgdb == 0) { in kgdb_nmicallin()
936 ks->cpu = cpu; in kgdb_nmicallin()