Global deFinition: __switch_to file line0 process.c 297 struct task_struct *__switch_to(struct task_struct *prev,1 switch_to.h 44 #define __switch_to(prev,next,last) do { process.c 202 struct task_struct *__switch_to(struct task_struct *old,3 process.c 400 struct task_struct *__switch_to(struct task_struct *prev,4 process_32.c 211 __switch_to(struct task_struct *prev,struct task_struct *next)5 process.c 80 voID *__switch_to(struct task_struct *from,struct task_struct *to)6 process_32.c 248 __switch_to(struct task_struct *prev_p,struct task_struct *next_p)7 process_64.c 272 __switch_to(struct task_struct *prev_p,struct task_struct *next_p)
现在,每个arch的文件process.c都不同.如何让cscope显示完整的文件路径?
解决方法 使用args -pn运行cscope-pn display the last n file path components instead of the default (1). Use 0 not to display the file name at all.
使用cscope -p4运行并搜索__switch_to的全局定义
Global deFinition: __switch_to file line0 arch/arm64/kernel/process.c 297 struct task_struct *__switch_to(struct task_struct *prev,1 ia64/include/asm/switch_to.h 44 #define __switch_to(prev,last) do { arch/openrisc/kernel/process.c 202 struct task_struct *__switch_to(struct task_struct *old,3 arch/powerpc/kernel/process.c 400 struct task_struct *__switch_to(struct task_struct *prev,4 arch/sh/kernel/process_32.c 211 __switch_to(struct task_struct *prev,struct task_struct *next)5 arch/um/kernel/process.c 80 voID *__switch_to(struct task_struct *from,struct task_struct *to)6 arch/x86/kernel/process_32.c 248 __switch_to(struct task_struct *prev_p,struct task_struct *next_p)7 arch/x86/kernel/process_64.c 272 __switch_to(struct task_struct *prev_p,struct task_struct *next_p)总结
以上是内存溢出为你收集整理的linux – 如何在搜索过程中使cscope显示完整的文件路径全部内容,希望文章能够帮你解决linux – 如何在搜索过程中使cscope显示完整的文件路径所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)