int ftrace_init_nop(struct module *mod, struct dyn_ftrace *rec); #define ftrace_init_nop ftrace_init_nop #endif #define ftrace_return_address(n) return_address(n) /*2 changes: 1 addition & 1 deletion 2 arch/arm64/include/asm/module.h Original file line numberDiff line numberDiff lin...
ftrace_call:// tracer(pc, lr);nop// This will be replaced with "bl xxx"// where xxx can be any kind of tracer.#ifdefCONFIG_FUNCTION_GRAPH_TRACER.global ftrace_graph_call ftrace_graph_call:// ftrace_graph_caller();nop// If enabled, this will be replaced// "b ftrace_graph_caller"#...
}staticinthandler_fault(structkprobe *p,structpt_regs *regs,inttrapnr){pr_info("fault_handler: p->addr = 0x%p, trap #%dn", p->addr, trapnr);/* Return 0 because we don't handle the fault. */return0; }staticint__initkprobe_init(void){intret; kp.pre_handler = handler_pre; kp....
depends on (!FUNCTION_GRAPH_TRACER || DYNAMIC_FTRACE_WITH_REGS) help If the compiler supports the -mbranch-protection or -msign-return-address flag (e.g. GCC 7 or later), then this option will cause the kernel itself to be compiled with return address protection. In this case, ...
CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_CROSS_COMPILE="" # CONFIG_COMPILE_TEST is not set CONFIG_LOCALVERSION="-Niko-SomeVersionAfterV11-BabaNirala" CONFIG_FORCE_FAST_CHARGE=y CONFIG_DEFAULT_HOSTNAME="(none)" CONFIG_SWAP=y # CONFIG_SYSVIPC is not set ...
CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_CROSS_COMPILE="" # CONFIG_COMPILE_TEST is not set CONFIG_LOCALVERSION="-Niko-SomeVersionAfterV11-BabaNirala" CONFIG_FORCE_FAST_CHARGE=y CONFIG_DEFAULT_HOSTNAME="(none)" CONFIG_SWAP=y # CONFIG_SYSVIPC is not set # CONFIG_POSIX_MQUEUE is not set CONFIG...
CONFIG_FTRACE is not set CONFIG_CORESIGHT=y CONFIG_CORESIGHT_LINK_AND_SINK_TMC=y CONFIG_CORESIGHT_CATU=m CONFIG_CORESIGHT_SINK_TPIU=m CONFIG_CORESIGHT_SINK_ETBV10=m CONFIG_CORESIGHT_SOURCE_ETM4X=y CONFIG_CORESIGHT_STM=m CONFIG_CORESIGHT_CPU_DEBUG=m CONFIG_CORESIGHT_CTI=m CONFIG_MEM...
GDB step debug kernel module insmodded by init on ARM 2.4.2. GDB module_init 2.4.2.1. GDB module_init step into it 2.4.2.2. GDB module_init calculate entry address 2.4.2.3. GDB module_init break at the end of sys_init_module 2.4.2.4. GDB module_init add trap instruction 2.4.3. ...
kernel中使用ftrace的API,比如trace_printk,tracing_on/off()等。 还有一些前端工具,比如命令行工具trace-cmd, UI工具kernelShare等可以方便tracefs的配置和显示。 2.1 通过tracefs的使用 ftracefs的官方文档是kernel/Documentation/trace/ftrace.txt,详细介绍了ftrace的主要功能,建议仔细阅读。
int ftrace_init_nop(struct module *mod, struct dyn_ftrace *rec); #define ftrace_init_nop ftrace_init_nop #endif #define ftrace_return_address(n) return_address(n) /*2 changes: 1 addition & 1 deletion 2 arch/arm64/include/asm/module.h Original file line numberDiff line numberDiff lin...