1. 27 2月, 2021 2 次提交
  2. 22 4月, 2019 3 次提交
    • M
      csky: Add perf_arch_fetch_caller_regs support · b4bf2741
      Mao Han 提交于
      In trace events as tracepoints context are not able to
      be retrieve with task_pt_regs. Without arch caller regs
      support the pt_regs context will be all zero, perf can
      not parsing the callchain and resolving the symbols
      correctly, some time will even get into deadlock
      while handling the page fault, eg:
      
      perf kmem —page record ls
      
      Changelog
       - Add test case cmd in comment
       - Use regs_fp(regs) which is defined in abi/regdef.h
      Signed-off-by: NMao Han <han_mao@c-sky.com>
      Signed-off-by: NGuo Ren <guoren@kernel.org>
      b4bf2741
    • G
      csky: Reconstruct signal processing · bf241682
      Guo Ren 提交于
      Linux kernel has provided some apis for arch signal's implementation.
      For example:
      	restore_saved_sigmask()
      	set_current_blocked()
      	restore_altstack()
      
      But in last version of csky signal.c didn't use them and some codes are
      confusing, so reconstruct signal.c with reference to riscv's code.
      
      Now csky signal.c implementation are very close to riscv and we can
      get the following benefits:
       - Clear code structure
       - The signal code of riscv and csky can be reviewed together
       - Promoting the unification of arch's signal implementation
      
      Also modified the related code in entry.S
      Signed-off-by: NGuo Ren <ren_guo@c-sky.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      bf241682
    • G
      csky: Use in_syscall & forget_syscall instead of r11_sig · f4625ee0
      Guo Ren 提交于
      We could use regs->sr 16-24 bits to detect syscall: VEC_TRAP0 and
      r11_sig is no necessary for current implementation.
      
      In this patch, we implement the in_syscall and forget_syscall which are
      inspired from arm & nds32, but csky pt_regs has no syscall_num element
      and we just set zero to regs->sr's vector-bits-field instead.
      
      For ret_from_fork, current task was forked from parent which is in syscall
      progress and its regs->sr has been already setted with VEC_TRAP0. See:
      arch/csky/kernel/process.c: copy_thread()
      Signed-off-by: NGuo Ren <ren_guo@c-sky.com>
      f4625ee0
  3. 26 10月, 2018 1 次提交
新手
引导
客服 返回
顶部