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"#...
CONFIG_NOP_USB_XCEIV=y # CONFIG_USB_GPIO_VBUS is not set # CONFIG_USB_ISP1301 is not set # CONFIG_QCOM_USB_MSM_OTG is not set # CONFIG_USB_QCOM_8X16_PHY is not set # CONFIG_USB_ULPI is not set CONFIG_DUAL_ROLE_USB_INTF=y CONFIG_USB_MSM_SSPHY_QMP=y CONFIG_MSM_QUSB_PHY=...
CONFIG_ARCH_PHYS_ADDR_T_64BIT=y CONFIG_MMU=y CONFIG_DEBUG_RODATA=y CONFIG_ARM64_PAGE_SHIFT=12 CONFIG_ARM64_CONT_SHIFT=4 CONFIG_ARCH_MMAP_RND_BITS_MIN=18 CONFIG_ARCH_MMAP_RND_BITS_MAX=24 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=11 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_ILLEGAL...
.macro __ptrauth_keys_init_cpu tsk, tmp1, tmp2, tmp3 mrs \tmp1, id_aa64isar1_el1 ubfx \tmp1, \tmp1, #ID_AA64ISAR1_APA_SHIFT, #8 @@ -64,17 +79,11 @@ alternative_else_nop_endif .Lno_addr_auth\@: .endm #else /* CONFIG_ARM64_PTR_AUTH */ #else /* !CONFIG...
kernel ftrace子系统基于kprobe实现了kprobe_event,可以probe任意函数。 优点是无需写代码,方便简单的函数trace,可以获得函数参数值和返回值 缺点是不能做动态修改 使用方法参看kernel/Documentation/trace/kprobetrace.txt kprobe_event使用说明和示例 24 Synopsis of kprobe_events ...
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...
kernel中使用ftrace的API,比如trace_printk,tracing_on/off()等。 还有一些前端工具,比如命令行工具trace-cmd, UI工具kernelShare等可以方便tracefs的配置和显示。 2.1 通过tracefs的使用 ftracefs的官方文档是kernel/Documentation/trace/ftrace.txt,详细介绍了ftrace的主要功能,建议仔细阅读。
kernel ftrace子系统基于kprobe实现了kprobe_event,可以probe任意函数。 优点是无需写代码,方便简单的函数trace,可以获得函数参数值和返回值 缺点是不能做动态修改 使用方法参看kernel/Documentation/trace/kprobetrace.txt kprobe_event使用说明和示例 24Synopsis of kprobe_events25---26p[:[GRP/]EVENT] [MOD:]SYM[...