Home
last modified time | relevance | path

Searched refs:ks (Results 1 – 7 of 7) sorted by relevance

/kernel/debug/
Dgdbstub.c477 static void gdb_cmd_status(struct kgdb_state *ks) in gdb_cmd_status() argument
488 hex_byte_pack(&remcom_out_buffer[1], ks->signo); in gdb_cmd_status()
491 static void gdb_get_regs_helper(struct kgdb_state *ks) in gdb_get_regs_helper() argument
499 thread = kgdb_info[ks->cpu].task; in gdb_get_regs_helper()
500 local_debuggerinfo = kgdb_info[ks->cpu].debuggerinfo; in gdb_get_regs_helper()
535 static void gdb_cmd_getregs(struct kgdb_state *ks) in gdb_cmd_getregs() argument
537 gdb_get_regs_helper(ks); in gdb_cmd_getregs()
542 static void gdb_cmd_setregs(struct kgdb_state *ks) in gdb_cmd_setregs() argument
549 gdb_regs_to_pt_regs(gdb_regs, ks->linux_regs); in gdb_cmd_setregs()
555 static void gdb_cmd_memread(struct kgdb_state *ks) in gdb_cmd_memread() argument
[all …]
Ddebug_core.c515 static int kgdb_reenter_check(struct kgdb_state *ks) in kgdb_reenter_check() argument
524 addr = kgdb_arch_pc(ks->ex_vector, ks->linux_regs); in kgdb_reenter_check()
535 kgdb_skipexception(ks->ex_vector, ks->linux_regs); in kgdb_reenter_check()
543 kgdb_skipexception(ks->ex_vector, ks->linux_regs); in kgdb_reenter_check()
571 static int kgdb_cpu_enter(struct kgdb_state *ks, struct pt_regs *regs, in kgdb_cpu_enter() argument
582 kgdb_info[ks->cpu].enter_kgdb++; in kgdb_cpu_enter()
583 kgdb_info[ks->cpu].exception_state |= exception_state; in kgdb_cpu_enter()
601 cpu = ks->cpu; in kgdb_cpu_enter()
686 if (kgdb_skipexception(ks->ex_vector, ks->linux_regs)) in kgdb_cpu_enter()
704 if (ks->send_ready) in kgdb_cpu_enter()
[all …]
Ddebug_core.h67 extern int gdb_serial_stub(struct kgdb_state *ks);
71 extern int gdbstub_state(struct kgdb_state *ks, char *cmd);
75 extern int kdb_stub(struct kgdb_state *ks);
77 extern int kdb_common_init_state(struct kgdb_state *ks);
81 static inline int kdb_stub(struct kgdb_state *ks) in kdb_stub() argument
/kernel/debug/kdb/
Dkdb_debugger.c37 int kdb_common_init_state(struct kgdb_state *ks) in kdb_common_init_state() argument
40 kdb_current_task = kgdb_info[ks->cpu].task; in kdb_common_init_state()
41 kdb_current_regs = kgdb_info[ks->cpu].debuggerinfo; in kdb_common_init_state()
53 int kdb_stub(struct kgdb_state *ks) in kdb_stub() argument
57 unsigned long addr = kgdb_arch_pc(ks->ex_vector, ks->linux_regs); in kdb_stub()
62 kdb_ks = ks; in kdb_stub()
66 addr = instruction_pointer(ks->linux_regs); in kdb_stub()
68 ks->pass_exception = 0; in kdb_stub()
72 if (ks->err_code == KDB_REASON_SYSTEM_NMI && ks->signo == SIGTRAP) in kdb_stub()
82 if (addr != instruction_pointer(ks->linux_regs)) in kdb_stub()
[all …]
/kernel/module/
Dkallsyms.c26 const struct kernel_symbol *ks; in is_exported() local
29 ks = lookup_exported_symbol(name, __start___ksymtab, __stop___ksymtab); in is_exported()
31 ks = lookup_exported_symbol(name, mod->syms, mod->syms + mod->num_syms); in is_exported()
33 return ks && kernel_symbol_value(ks) == value; in is_exported()
Dversion.c97 struct kernel_symbol *ks, in module_layout() argument
Dinternal.h283 struct kernel_symbol *ks, struct tracepoint * const *tp);